Produced by Araxis Merge on 9/27/2017 9:44:47 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | adk\adk\product\production\demo_files\feature_forms | F662.js | Wed Jun 7 14:02:28 2017 UTC |
| 2 | adk\adk\product\production\demo_files\feature_forms | F662.js | Tue Sep 26 13:01:45 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 262 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | define([ | |
| 2 | 'backb one', | |
| 3 | 'mario nette', | |
| 4 | 'jquer y', | |
| 5 | 'handl ebars', | |
| 6 | ], functio n(Backbone , Marionet te, $, Han dlebars) { | |
| 7 | ||
| 8 | //==== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ===== | |
| 9 | // PLE ASE DO NOT COPY AND PASTE THIS FULL FILE . PLEASE J UST USE AS A REFEREN CE AND COP Y PARTS TH AT ARE NEE DED | |
| 10 | // for more info rmation on how to la yout this form for y our applet please ch eckout the following link: | |
| 11 | // http:// IP /documenta tion/#/adk /conventio ns#Writeba ck | |
| 12 | //==== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ===== | |
| 13 | ||
| 14 | var F6 62 = { | |
| 15 | // DO NOT US E CREATE F ORM FUNCTI ON --- THI S IS FOR D EMO PURPOS ES ONLY!!! | |
| 16 | cr eateForm: function() { | |
| 17 | // ***** ********** ********** ********** ********** ** FIELDS ********** ********** ********** ********** ********** * | |
| 18 | var F662 Fields = [ { | |
| 19 | cont rol: "cont ainer", | |
| 20 | extr aClasses: ["modal-bo dy"], | |
| 21 | item s: [{ | |
| 22 | control: " container" , | |
| 23 | extraClass es: ["cont ainer-flui d"], | |
| 24 | items: [{ | |
| 25 | contro l: "contai ner", | |
| 26 | extraC lasses: [" row"], | |
| 27 | items: [{ | |
| 28 | co ntrol: "co ntainer", | |
| 29 | ex traClasses : ["col-xs -12"], | |
| 30 | it ems: [{ | |
| 31 | control: "multisel ectSideByS ide", | |
| 32 | name: "r oles", | |
| 33 | label: " Roles" | |
| 34 | }] | |
| 35 | }] | |
| 36 | }] | |
| 37 | }] | |
| 38 | }, { | |
| 39 | cont rol: "cont ainer", | |
| 40 | extr aClasses: ["modal-fo oter"], | |
| 41 | item s: [{ | |
| 42 | control: " container" , | |
| 43 | extraClass es: ["row" ], | |
| 44 | items: [{ | |
| 45 | contro l: "contai ner", | |
| 46 | extraC lasses: [" col-md-12" , "text-ri ght"], | |
| 47 | items: [{ | |
| 48 | co ntrol: "bu tton", | |
| 49 | ex traClasses : ["btn-de fault", "b tn-sm"], | |
| 50 | la bel: "Canc el", | |
| 51 | na me: "cance l", | |
| 52 | ty pe: "butto n" | |
| 53 | }, { | |
| 54 | co ntrol: "bu tton", | |
| 55 | ex traClasses : ["btn-pr imary", "b tn-sm"], | |
| 56 | la bel: "Done ", | |
| 57 | na me: "done" , | |
| 58 | ty pe: "butto n" | |
| 59 | }] | |
| 60 | }] | |
| 61 | }] | |
| 62 | }]; | |
| 63 | // ***** ********** ********** ********** ********** ** END OF FIELDS *** ********** ********** ********** ********** * | |
| 64 | ||
| 65 | // ***** ********** ********** ********** ********** ** MODEL * ********** ********** ********** ********** ********** * | |
| 66 | // Okay to copy an d paste - Please Add additiona l items to prepopula te the fie lds | |
| 67 | var Form Model = Ba ckbone.Mod el.extend( { | |
| 68 | defa ults: { | |
| 69 | roles: new Backbone. Collection ([{label: "1", value : true, id : "1"}, {l abel: "2", value: tr ue, id: "2 "}, {label : "3", val ue: true, id: "3"}]) | |
| 70 | } | |
| 71 | }); | |
| 72 | // ***** ********** ********** ********** ********** ** END OF MODEL **** ********** ********** ********** ********** * | |
| 73 | ||
| 74 | // ***** ********** ********** ********** ********** ** VIEWS * ********** ********** ********** ********** ***** | |
| 75 | // Okay to copy an d paste - WITH 1 EXC EPTION (se e below) | |
| 76 | ||
| 77 | var form View = ADK .UI.Form.e xtend({ | |
| 78 | ui: { }, | |
| 79 | fiel ds: F662Fi elds, | |
| 80 | onIn itialize: function() { | |
| 81 | this.initi alRoles = this.model .get("role s"); | |
| 82 | }, | |
| 83 | even ts: { | |
| 84 | "click .ca ncel butto n": functi on(e){ | |
| 85 | ADK.UI .Workflow. hide(); | |
| 86 | }, | |
| 87 | "click .do ne button" : function (e) { | |
| 88 | e.prev entDefault (); | |
| 89 | if (!t his.model. isValid()) | |
| 90 | th is.model.s et("formSt atus", { | |
| 91 | status: "error", | |
| 92 | message: self.mode l.validati onError | |
| 93 | }) ; | |
| 94 | else { | |
| 95 | th is.model.u nset("form Status"); | |
| 96 | va r saveAler tView = ne w ADK.UI.N otificatio n({ | |
| 97 | title: ' Role Modif ied', | |
| 98 | icon: 'f a-check', | |
| 99 | message: 'The role has been successful ly modifie d with no errors.', | |
| 100 | type: "s uccess" | |
| 101 | }) ; | |
| 102 | sa veAlertVie w.show(); | |
| 103 | AD K.UI.Workf low.hide() ; | |
| 104 | } | |
| 105 | } | |
| 106 | }, | |
| 107 | mode lEvents: { } | |
| 108 | }); | |
| 109 | // ***** ********** ********** ********** ********** ** END OF FORM VIEW ********** ********** ********** ********** * | |
| 110 | ||
| 111 | // ***** ********** ********** ********** ********** ** MODEL A ND WORKFLO W INSTANCE ********* ********** ********** * | |
| 112 | // Okay to copy an d paste | |
| 113 | var form Model = ne w FormMode l(); | |
| 114 | ||
| 115 | var work flowOption s = { | |
| 116 | size : "medium" , | |
| 117 | titl e: "Select Roles", | |
| 118 | show Progress: false, | |
| 119 | keyb oard: true , | |
| 120 | step s: [{ | |
| 121 | view: form View, | |
| 122 | viewModel: formModel , | |
| 123 | stepTitle: 'Step 1' | |
| 124 | }] | |
| 125 | }; | |
| 126 | var work flow = new ADK.UI.Wo rkflow(wor kflowOptio ns); | |
| 127 | workflow .show(); | |
| 128 | // ***** ********** ********** ********** ********** ** END OF MODEL AND WORKFLOW I NSTANCE ** ********** ********** * | |
| 129 | } | |
| 130 | }; | |
| 131 | return F662; | |
| 132 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.