2013-02-05 14:16:51 -05:00
|
|
|
|
2013-04-10 01:55:20 -04:00
|
|
|
<div class='content-list span6'>
|
|
|
|
<h3>{{i18n admin.customize.long_title}}</h3>
|
|
|
|
<ul>
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#each model}}
|
2013-05-20 14:37:05 -04:00
|
|
|
<li><a {{action selectStyle this}} {{bindAttr class="this.selected:active"}}>{{this.description}}</a></li>
|
2013-02-05 14:16:51 -05:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2013-05-20 14:37:05 -04:00
|
|
|
<button {{action newCustomization}} class='btn'>{{i18n admin.customize.new}}</button>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
|
2013-04-10 01:55:20 -04:00
|
|
|
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if selectedItem}}
|
2013-04-09 21:54:51 -04:00
|
|
|
<div class='current-style'>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<li {{bindAttr class="view.stylesheetActive:active"}}>
|
|
|
|
<a {{action selectStylesheet href="true" target="view"}}>{{i18n admin.customize.css}}</a>
|
|
|
|
</li>
|
|
|
|
<li {{bindAttr class="view.headerActive:active"}}>
|
|
|
|
<a {{action selectHeader href="true" target="view"}}>{{i18n admin.customize.header}}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2013-04-09 21:54:51 -04:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#with selectedItem}}
|
2013-05-20 12:56:36 -04:00
|
|
|
{{textField class="style-name" value=name}}
|
2013-02-05 14:16:51 -05:00
|
|
|
{{#if view.headerActive}}
|
2013-05-29 14:08:00 -04:00
|
|
|
{{aceEditor content=header mode="html"}}
|
2013-02-05 14:16:51 -05:00
|
|
|
{{/if}}
|
|
|
|
{{#if view.stylesheetActive}}
|
2013-06-19 01:18:22 -04:00
|
|
|
{{aceEditor content=stylesheet mode="scss"}}
|
2013-02-05 14:16:51 -05:00
|
|
|
{{/if}}
|
|
|
|
{{/with}}
|
|
|
|
<br>
|
|
|
|
<div class='status-actions'>
|
2013-05-20 15:27:58 -04:00
|
|
|
<span>{{i18n admin.customize.override_default}} {{view Ember.Checkbox checkedBinding="selectedItem.override_default_style"}}</span>
|
|
|
|
<span>{{i18n admin.customize.enabled}} {{view Ember.Checkbox checkedBinding="selectedItem.enabled"}}</span>
|
|
|
|
{{#unless selectedItem.changed}}
|
|
|
|
<a class='preview-link' {{bindAttr href="selectedItem.previewUrl"}} target='_blank'>{{i18n admin.customize.preview}}</a>
|
2013-04-09 21:54:51 -04:00
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
<a href="/?preview-style=" target='_blank'>{{i18n admin.customize.undo_preview}}</a><br>
|
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='buttons'>
|
2013-05-20 15:27:58 -04:00
|
|
|
<button {{action save}} {{bindAttr disabled="selectedItem.disableSave"}} class='btn'>{{i18n admin.customize.save}}</button>
|
|
|
|
<span class='saving'>{{selectedItem.savingStatus}}</span>
|
2013-05-20 14:37:05 -04:00
|
|
|
<a {{action destroy}} class='delete-link'>{{i18n admin.customize.delete}}</a>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2013-04-10 01:55:20 -04:00
|
|
|
{{else}}
|
|
|
|
<p class="about">{{i18n admin.customize.about}}</p>
|
2013-02-05 14:16:51 -05:00
|
|
|
{{/if}}
|
|
|
|
<div class='clearfix'></div>
|
|
|
|
|