2017-04-12 22:52:52 +08:00
|
|
|
<div class="current-style {{if maximized 'maximized'}}">
|
|
|
|
<div class='wrapper'>
|
2019-02-19 20:56:01 +08:00
|
|
|
<h2>{{i18n 'admin.customize.theme.edit_css_html'}} {{#link-to showRouteName model.id replace=true}}{{model.name}}{{/link-to}}</h2>
|
2017-04-12 22:52:52 +08:00
|
|
|
|
2019-02-19 20:56:01 +08:00
|
|
|
{{admin-theme-editor
|
|
|
|
theme=model
|
|
|
|
editRouteName=editRouteName
|
|
|
|
currentTargetName=currentTargetName
|
|
|
|
fieldName=fieldName
|
|
|
|
fieldAdded=(action 'fieldAdded')
|
|
|
|
maximized=maximized
|
|
|
|
onlyOverriddenChanged=(action 'onlyOverriddenChanged')
|
|
|
|
}}
|
|
|
|
|
2017-04-12 22:52:52 +08:00
|
|
|
<div class='admin-footer'>
|
|
|
|
<div class='status-actions'>
|
|
|
|
{{#unless model.changed}}
|
|
|
|
<a class='preview-link' href={{previewUrl}} target='_blank' title="{{i18n 'admin.customize.explain_preview'}}">{{i18n 'admin.customize.preview'}}</a>
|
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='buttons'>
|
2019-01-10 18:06:01 +08:00
|
|
|
{{#d-button action=(action "save") disabled=saveDisabled class='btn-primary'}}
|
2017-04-12 22:52:52 +08:00
|
|
|
{{saveButtonText}}
|
|
|
|
{{/d-button}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|