2014-04-16 09:49:06 -04:00
|
|
|
<div class='content-list span6'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<h3>{{i18n 'admin.customize.css_html.long_title'}}</h3>
|
2014-04-16 09:49:06 -04:00
|
|
|
<ul>
|
|
|
|
{{#each model}}
|
2014-11-10 15:51:55 -05:00
|
|
|
<li><a {{action "selectStyle" this}} {{bind-attr class="this.selected:active"}}>{{this.description}}</a></li>
|
2014-04-16 09:49:06 -04:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2014-11-10 15:51:55 -05:00
|
|
|
<button {{action "newCustomization"}} class='btn'>
|
2014-12-08 16:35:49 -05:00
|
|
|
{{fa-icon "plus"}}{{i18n 'admin.customize.new'}}
|
2014-11-10 15:51:55 -05:00
|
|
|
</button>
|
2014-04-16 09:49:06 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#if selectedItem}}
|
2014-11-10 15:51:55 -05:00
|
|
|
<div class='current-style'>
|
|
|
|
{{#with selectedItem}}
|
|
|
|
{{text-field class="style-name" value=name}}
|
2014-04-16 09:49:06 -04:00
|
|
|
|
2014-11-10 15:51:55 -05:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<ul class="nav nav-pills">
|
2014-12-08 16:35:49 -05:00
|
|
|
<li><a {{bind-attr class="view.stylesheetActive:active"}} {{action "selectStylesheet" target="view"}}>{{i18n 'admin.customize.css'}}</a></li>
|
|
|
|
<li><a {{bind-attr class="view.headerActive:active"}} {{action "selectHeader" target="view"}}>{{i18n 'admin.customize.header'}}</a></li>
|
|
|
|
<li><a {{bind-attr class="view.footerActive:active"}} {{action "selectFooter" target="view"}}>{{i18n 'admin.customize.footer'}}</a></li>
|
|
|
|
<li><a {{bind-attr class="view.mobileStylesheetActive:active"}} {{action "selectMobileStylesheet" target="view"}}>{{fa-icon "mobile"}} {{i18n 'admin.customize.css'}}</a></li>
|
|
|
|
<li><a {{bind-attr class="view.mobileHeaderActive:active"}} {{action "selectMobileHeader" target="view"}}>{{fa-icon "mobile"}} {{i18n 'admin.customize.header'}}</a></li>
|
|
|
|
<li><a {{bind-attr class="view.mobileFooterActive:active"}} {{action "selectMobileFooter" target="view"}}>{{fa-icon "mobile"}} {{i18n 'admin.customize.footer'}}</a></li>
|
2014-11-10 15:51:55 -05:00
|
|
|
</ul>
|
|
|
|
</div>
|
2014-04-16 09:49:06 -04:00
|
|
|
|
2014-11-10 15:51:55 -05:00
|
|
|
<div class="admin-container">
|
|
|
|
{{#if view.stylesheetActive}}{{aceEditor content=stylesheet mode="scss"}}{{/if}}
|
|
|
|
{{#if view.headerActive}}{{aceEditor content=header mode="html"}}{{/if}}
|
|
|
|
{{#if view.footerActive}}{{aceEditor content=footer mode="html"}}{{/if}}
|
|
|
|
{{#if view.mobileStylesheetActive}}{{aceEditor content=mobile_stylesheet mode="scss"}}{{/if}}
|
|
|
|
{{#if view.mobileHeaderActive}}{{aceEditor content=mobile_header mode="html"}}{{/if}}
|
|
|
|
{{#if view.mobileFooterActive}}{{aceEditor content=mobile_footer mode="html"}}{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/with}}
|
|
|
|
<br>
|
|
|
|
<div class='status-actions'>
|
2014-12-08 16:35:49 -05: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>
|
2014-11-10 15:51:55 -05:00
|
|
|
{{#unless selectedItem.changed}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<a class='preview-link' {{bind-attr href="selectedItem.previewUrl"}} target='_blank' title="{{i18n 'admin.customize.explain_preview'}}">{{i18n 'admin.customize.preview'}}</a>
|
2014-11-10 15:51:55 -05:00
|
|
|
|
|
2014-12-08 16:35:49 -05:00
|
|
|
<a href="/?preview-style=" target='_blank' title="{{i18n 'admin.customize.explain_undo_preview'}}">{{i18n 'admin.customize.undo_preview'}}</a>
|
2014-11-10 15:51:55 -05:00
|
|
|
|
|
2014-12-08 16:35:49 -05:00
|
|
|
<a href="/?preview-style=default" target='_blank' title="{{i18n 'admin.customize.explain_rescue_preview'}}">{{i18n 'admin.customize.rescue_preview'}}</a><br>
|
2014-11-10 15:51:55 -05:00
|
|
|
{{/unless}}
|
2014-04-16 09:49:06 -04:00
|
|
|
</div>
|
|
|
|
|
2014-11-10 15:51:55 -05:00
|
|
|
<div class='buttons'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<button {{action "save"}} {{bind-attr disabled="selectedItem.disableSave"}} class='btn'>{{i18n 'admin.customize.save'}}</button>
|
2014-11-10 15:51:55 -05:00
|
|
|
<span class='saving'>{{selectedItem.savingStatus}}</span>
|
2014-12-08 16:35:49 -05:00
|
|
|
<a {{action "destroy"}} class='delete-link'>{{i18n 'admin.customize.delete'}}</a>
|
2014-11-10 15:51:55 -05:00
|
|
|
</div>
|
2014-04-16 09:49:06 -04:00
|
|
|
</div>
|
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<p class="about">{{i18n 'admin.customize.about'}}</p>
|
2014-04-16 09:49:06 -04:00
|
|
|
{{/if}}
|