add page theme destroy limitation

This commit is contained in:
chenjing
2023-08-25 11:46:30 +08:00
parent 4f5f7639f9
commit 94d0862868
12 changed files with 17 additions and 26 deletions
@@ -9,15 +9,15 @@
</div>
<%= form_for @page_theme, url: {controller: "page_themes", action: "#{type}"}, html: { enctype: 'multipart/form-data' } do |p| %>
<div class="modal-body">
<div class="form-group">
<label>
建站工具
</label>
<% state_options = [['hugo', "hugo"], ['jeklly', "jeklly"],['hexo',"hexo"]] %>
<%= select_tag('page_theme[language_frame]', options_for_select(state_options), class: 'form-control') %>
</div>
<% if type == "create"%>
<div class="form-group">
<label>
建站工具
</label>
<% state_options = [['hugo', "hugo"], ['jeklly', "jeklly"],['hexo',"hexo"]] %>
<%= select_tag('page_theme[language_frame]', options_for_select(state_options), class: 'form-control') %>
</div>
<% end%>
<div class="form-group">
<label>
主题名 <span class="ml10 color-orange mr20">*</span>