themes image fix

This commit is contained in:
呱呱呱
2023-08-24 16:03:40 +08:00
parent 3dacc83e4a
commit 31bb2502b8
5 changed files with 25 additions and 10 deletions

View File

@@ -7,7 +7,7 @@
<span aria-hidden="true">&times;</span>
</button>
</div>
<%= simple_form_for(@page_theme, url: admins_page_themes_path(@page_theme)) do |p| %>
<%= 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>

View File

@@ -0,0 +1,10 @@
json.total_count @themes.size
json.themes @themes.map{|e|
{
name: e.name,
language_frame: e.language_frame,
image: e.image,
clone_url: e.clone_url,
order_index: e.order_index,
}
}