UX: modifies admin email template to have more space for the form (#7993)

This commit is contained in:
Joffrey JAFFEUX 2019-08-12 10:27:25 +02:00 committed by GitHub
parent 4cd0cd2f8e
commit 731f61a818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 14 deletions

View File

@ -6,5 +6,11 @@ export default Ember.Controller.extend({
this._super(...arguments); this._super(...arguments);
this.titleSorting = ["title"]; this.titleSorting = ["title"];
},
actions: {
selectTemplate(template) {
this.transitionToRoute("adminCustomizeEmailTemplates.edit", template);
}
} }
}); });

View File

@ -1,15 +1,8 @@
<div class='row'> {{combo-box
<div class='content-list'> content=sortedTemplates
<ul> valueAttribute="id"
{{#each sortedTemplates as |et|}} nameProperty="title"
<li> onSelect=(action "selectTemplate")
{{#link-to 'adminCustomizeEmailTemplates.edit' et}}{{et.title}}{{/link-to}} }}
</li>
{{/each}}
</ul>
</div>
<div class='content-editor'> {{outlet}}
{{outlet}}
</div>
</div>

View File

@ -791,6 +791,17 @@
} }
} }
.admin-customize-email-templates {
.email-template,
.controls {
margin-top: 1em;
}
.d-editor {
height: 50vh;
}
}
.admin-customize-email-style { .admin-customize-email-style {
.ace-wrapper { .ace-wrapper {
position: relative; position: relative;