Left: | ||
Right: |
OLD | NEW |
---|---|
1 {{#settings}} | 1 {{#settings}} |
2 <div class="settings-wrapper"> | 2 <div class="settings-wrapper"> |
3 <div class="conflicted warning-message" style="display: none"> | 3 <div class="conflicted warning-message" style="display: none"> |
4 <p>This field has been changed on another system. Accept the new value?</p > | 4 <p>This field has been changed on another system. Accept the new value?</p > |
5 <p class="newval"></p> | 5 <p class="newval"></p> |
6 <button class="conflicted-confirm">Ok</button> | 6 <button class="conflicted-confirm">Ok</button> |
7 <button class="conflicted-cancel">Cancel</button> | 7 <button class="conflicted-cancel">Cancel</button> |
8 </div> | 8 </div> |
9 {{#if isBool}} | 9 {{#if isBool}} |
10 <label for="input-{{name}}">{{name}}</label> | 10 <label for="input-{{name}}">{{name}}</label> |
11 <div class="boolean"> | 11 <div class="boolean"> |
12 <input class="config-field boolean" type="checkbox" name="{{name}}" | 12 <input class="config-field boolean" type="checkbox" name="{{name}}" |
13 id="input-{{name}}" data-bind="config.{{name}}" {{value}}/> | 13 id="input-{{name}}" data-bind="{{#if ../../ghost}}options{{else}}con fig{{/if}}.{{name}}" {{value}} {{#if ../../ghost}}disabled{{/if}}/> |
rharding
2013/08/01 18:19:10
Can you newline before the data-bind and after the
jeff.pihach
2013/08/01 19:50:23
Done.
| |
14 </div> | 14 </div> |
15 {{else}} | 15 {{else}} |
16 {{#if isNumeric}} | 16 {{#if isNumeric}} |
17 <label for="input-{{name}}">{{name}} ({{type}})</label> | 17 <label for="input-{{name}}">{{name}} ({{type}})</label> |
18 <div> | 18 <div> |
19 <input class="config-field" type="text" name="{{name}}" | 19 <input class="config-field" type="text" name="{{name}}" |
20 id="input-{{name}}" value="{{value}}" data-bind="config.{{name}}"/ > | 20 id="input-{{name}}" value="{{value}}" data-bind="{{#if ../../../gh ost}}options{{else}}config{{/if}}.{{name}}" {{#if ../../../ghost}}disabled{{/if} }/> |
21 </div> | 21 </div> |
22 {{else}} | 22 {{else}} |
23 <label for="input-{{name}}">{{name}} ({{type}})</label> | 23 <label for="input-{{name}}">{{name}} ({{type}})</label> |
24 <div> | 24 <div> |
25 <textarea data-bind="config.{{name}}" class="config-field" id="input-{ {name}}" name="{{name}}">{{value}}</textarea> | 25 <textarea data-bind="{{#if ../../../ghost}}options{{else}}config{{/if} }.{{name}}" class="config-field" id="input-{{name}}" name="{{name}}" {{#if ../.. /../ghost}}disabled{{/if}}>{{value}}</textarea> |
j.c.sackett
2013/08/01 18:13:09
I'm seeing a repeated pattern here; mightn't this
jeff.pihach
2013/08/01 19:50:23
That's what I was thinking as well but a bit out o
| |
26 </div> | 26 </div> |
27 {{/if}} | 27 {{/if}} |
28 {{/if}} | 28 {{/if}} |
29 <div class="settings-description"> | 29 <div class="settings-description"> |
30 {{description}} | 30 {{description}} |
31 </div> | 31 </div> |
32 </div> | 32 </div> |
33 {{/settings}} | 33 {{/settings}} |
34 {{#unless ghost}} | 34 {{#unless ghost}} |
35 <div class="yui3-g controls"> | 35 <div class="yui3-g controls"> |
36 <div class="yui3-u-1-2"> | 36 <div class="yui3-u-1-2"> |
37 <button class="cancel">Cancel</button> | 37 <button class="cancel">Cancel</button> |
38 </div> | 38 </div> |
39 <div class="yui3-u-1-2"> | 39 <div class="yui3-u-1-2"> |
40 <button class="confirm">Confirm</button> | 40 <button class="confirm">Confirm</button> |
41 </div> | 41 </div> |
42 </div> | 42 </div> |
43 {{/unless}} | 43 {{/unless}} |
OLD | NEW |