mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
34 lines
1.3 KiB
Handlebars
34 lines
1.3 KiB
Handlebars
<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>
|
|
<button class='btn cancel' {{action cancel this target="controller"}}><i class='icon-remove'></i></button
|
|
</div>
|
|
{{else}}
|
|
{{#if overridden}}
|
|
<button class='btn' href='#' {{action resetDefault this target="controller"}}>{{i18n admin.site_settings.reset}}</button>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/with}}
|
|
{{/collection}}
|