fix: system notification edit error

This commit is contained in:
2021-10-13 17:13:57 +08:00
parent 1b87a7a733
commit 0d60e58304
5 changed files with 10 additions and 5 deletions
@@ -1,6 +1,6 @@
<div class="box search-form-container project-list-form">
<div style="line-height: 38px;" class="flex-1"><%= type == "create" ? "新建" : "编辑" %>忽略文件</div>
<%= link_to "返回", admins_project_ignores_path, class: "btn btn-default pull-right" %>
<div style="line-height: 38px;" class="flex-1"><%= type == "create" ? "新建" : "编辑" %>系统通知</div>
<%= link_to "返回", admins_system_notifications_path, class: "btn btn-default pull-right" %>
</div>
<div class="box">
@@ -1,2 +1,2 @@
$("#admins-system-notification-content").html("<%= j render(partial: 'admins/system_notifications/form', locals: {type: 'create'}) %>")
$("#admins-system-notification-content").html("<%= j render(partial: 'admins/system_notifications/form', locals: {type: 'update'}) %>")
createMDEditor('system-notification-content-editor', { height: 500, placeholder: '请输入邮件模版' });