2013-02-05 14:16:51 -05:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<div class='span15 search controls'>
|
|
|
|
<label>
|
|
|
|
{{view Ember.Checkbox checkedBinding="controller.onlyOverridden"}}
|
|
|
|
{{i18n admin.site_settings.show_overriden}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class='span5 controls'>
|
|
|
|
{{view Discourse.TextField valueBinding="controller.filter" placeholderKey="type_to_filter"}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#collection contentBinding="filteredContent" classNames="form-horizontal settings" itemClass="row setting"}}
|
|
|
|
{{#with view.content}}
|
|
|
|
<div class='span4 offset1'>
|
|
|
|
{{unbound setting}}
|
|
|
|
</div>
|
|
|
|
<div {{bindAttr class=":span11 overridden:overridden"}}>
|
|
|
|
{{view Ember.TextField valueBinding="value" classNames="input-xxlarge"}}
|
|
|
|
<div class='desc'>{{unbound description}}</div>
|
|
|
|
</div>
|
|
|
|
{{#if dirty}}
|
|
|
|
<div class='span3'>
|
|
|
|
<button class='btn ok' {{action save this target="controller"}}><i class='icon-ok'></i></button>
|
2013-03-01 02:44:58 -05:00
|
|
|
<button class='btn cancel' {{action cancel this target="controller"}}><i class='icon-remove'></i></button>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{#if overridden}}
|
|
|
|
<button class='btn' href='#' {{action resetDefault this target="controller"}}>{{i18n admin.site_settings.reset}}</button>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{/with}}
|
|
|
|
{{/collection}}
|