Skip to content

Commit da06e1b

Browse files
committed
base line with workflow
1 parent 2a6fc94 commit da06e1b

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

VIEWMODEL/viewmodel.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<div class="ms-Grid">
2+
<div class="ms-Grid-row">
3+
<div class="ms-u-lg12 ms-u-md12 ms-u-sm12 ms-Grid-col">
4+
<p>Lorem ipsum dolores</p>
5+
<component-workflow id="e338c326-36c8-bfc3-8a6c-d452223d036e" params="'ID':'ManagerApproval','NextID':'OECApproval','StepName':'Manager Approval Needed','ApproverType':'User','ApproverAccountID':'sphurley','FirstStep':'true','closeonclick':true"
6+
class=""></component-workflow>
7+
<component-workflow id="b0ea7ade-099f-a7bd-605d-6c02262ebbe8" params="'ID':'OECApproval','NextID':'','StepName':'OEC Approval Needed','ApproverType':'User','ApproverAccountID':'sphurley','FirstStep':'false','closeonclick':true"
8+
class=""></component-workflow>
9+
</div>
10+
</div>
11+
<div class="ms-Grid-row">
12+
<div class="ms-u-lg12 ms-u-md12 ms-u-sm12 ms-Grid-col">
13+
<p>Lorem ipsum dolores</p>
14+
<component-textbox id="92002e8f-dc11-24a7-83b8-cb4003ce7222" params="'InternalName':'Title','Title':'Title','Description':''" class=""></component-textbox>
15+
</div>
16+
</div>
17+
<div class="ms-Grid-row">
18+
<div class="ms-u-lg12 ms-u-md12 ms-u-sm12 ms-Grid-col">
19+
<p>Lorem ipsum dolores</p>
20+
<component-buttons id="64896b71-a29f-469e-9c75-70da34f93a66" params="'visible':true,'closeonclick':true,'save':true,'cancel':true,'deletesubmitted':true,'moderation':'Draft','uniqueid':'Counter'" class=""></component-buttons>
21+
<component-messagebox id="ce22adb6-66d3-4ef6-4594-8353151ceae1" params="'message':'COMPLETED SUCCESSFULLY. MY FORMS VIEW WILL REFLECT CHANGES WITH 5 MIN DELAY'" class=""></component-messagebox>
22+
</div>
23+
</div>
24+
</div>

VIEWMODEL/viewmodel.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
define([ 'text!./viewmodel.html'], function( htmlString) {
2+
//define([], function() {
3+
function viewModel(params) {
4+
// +++ EDIT MODEL BELOW TO DESIGN YOUR CUSTOM SPA FORM
5+
var self = this;
6+
self.attachmentRequired = ko.observable(false);
7+
//self.Title = ko.observable(); // commented out because of params.get
8+
this.mytitle = ko.observable().extend({ listItem: "Title" });
9+
10+
}
11+
// Use prototype to declare any public methods
12+
//viewModel.prototype.doSomething = function() { ... };
13+
//viewModel.prototype.MyButtonClick = function () {
14+
// var model = this;
15+
// debugger;
16+
//};
17+
18+
19+
// Return model definition
20+
//return viewModel;
21+
return { viewModel: viewModel, template: htmlString };
22+
});

project.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)