2020-04-14 14:18:49 +08:00
|
|
|
<div class="current-style {{if maximized "maximized"}}">
|
|
|
|
<div class="wrapper">
|
|
|
|
<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
|
|
|
|
2020-03-07 00:35:18 +08:00
|
|
|
{{admin-theme-editor
|
|
|
|
theme=model
|
|
|
|
editRouteName=editRouteName
|
2019-02-19 20:56:01 +08:00
|
|
|
currentTargetName=currentTargetName
|
|
|
|
fieldName=fieldName
|
2020-04-14 14:18:49 +08:00
|
|
|
fieldAdded=(action "fieldAdded")
|
2019-02-19 20:56:01 +08:00
|
|
|
maximized=maximized
|
2020-04-14 14:18:49 +08:00
|
|
|
onlyOverriddenChanged=(action "onlyOverriddenChanged")
|
2019-02-19 20:56:01 +08:00
|
|
|
}}
|
2020-03-07 00:35:18 +08:00
|
|
|
|
2020-04-14 14:18:49 +08:00
|
|
|
<div class="admin-footer">
|
|
|
|
<div class="status-actions">
|
2017-04-12 22:52:52 +08:00
|
|
|
{{#unless model.changed}}
|
2020-04-14 14:18:49 +08:00
|
|
|
<a href={{previewUrl}} rel="noopener" title={{i18n "admin.customize.explain_preview"}} class="preview-link" target="_blank">
|
|
|
|
{{i18n "admin.customize.preview"}}
|
2020-03-07 00:35:18 +08:00
|
|
|
</a>
|
2017-04-12 22:52:52 +08:00
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
|
2020-04-14 14:18:49 +08:00
|
|
|
<div class="buttons">
|
|
|
|
{{#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>
|