mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 03:09:43 +00:00
UX: modifies admin email template to have more space for the form (#7993)
This commit is contained in:
parent
4cd0cd2f8e
commit
731f61a818
@ -6,5 +6,11 @@ export default Ember.Controller.extend({
|
||||
this._super(...arguments);
|
||||
|
||||
this.titleSorting = ["title"];
|
||||
},
|
||||
|
||||
actions: {
|
||||
selectTemplate(template) {
|
||||
this.transitionToRoute("adminCustomizeEmailTemplates.edit", template);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1,15 +1,8 @@
|
||||
<div class='row'>
|
||||
<div class='content-list'>
|
||||
<ul>
|
||||
{{#each sortedTemplates as |et|}}
|
||||
<li>
|
||||
{{#link-to 'adminCustomizeEmailTemplates.edit' et}}{{et.title}}{{/link-to}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
{{combo-box
|
||||
content=sortedTemplates
|
||||
valueAttribute="id"
|
||||
nameProperty="title"
|
||||
onSelect=(action "selectTemplate")
|
||||
}}
|
||||
|
||||
<div class='content-editor'>
|
||||
{{outlet}}
|
||||
</div>
|
||||
</div>
|
||||
{{outlet}}
|
||||
|
@ -791,6 +791,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
.admin-customize-email-templates {
|
||||
.email-template,
|
||||
.controls {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.d-editor {
|
||||
height: 50vh;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-customize-email-style {
|
||||
.ace-wrapper {
|
||||
position: relative;
|
||||
|
Loading…
x
Reference in New Issue
Block a user