modified V,C,M related with layout and have bug between layout and design
This commit is contained in:
1 parent
c8d58e30aa
commit
706ec745c3
9 files changed
+37
-33
No files matched your search
@@ -24,7 +24,15 @@
|
||||
<% end %>
|
||||
</p>
|
||||
<p>
|
||||
<%= render :partial => 'design_file' ,:locals => { :fieldname=>"stylesheet",:object=>@design ,:f=>f,:rtype=>'stylesheets',:item_destroy=>true,:item_editable=>true } %>
|
||||
<%= f.label "structure_css", t('admin.structure_css') %>
|
||||
<% if @design.structure_css.blank? %>
|
||||
<%= f.file_field :structure_css %>
|
||||
<% else%>
|
||||
<%= File.basename (Design.all.last.structure_css.url) %>
|
||||
<% end %>
|
||||
</p>
|
||||
<p>
|
||||
<%= render :partial => 'design_file' ,:locals => { :fieldname=>"themes",:object=>@design ,:f=>f,:rtype=>'stylesheets',:item_destroy=>true,:item_editable=>true } %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<%= f.label :layout_id, t('admin.layout_name') %>
|
||||
<%= f.select :layout_id, Layout.all.map{ |l| [l.description, l.id] } %>
|
||||
<%= f.label :design_id, t('admin.design_name') %>
|
||||
<%= f.select :design_id, Design.all.map{ |l| [l.title, l.id] } %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
history.pushState(null, document.title, "<%= escape_javascript(admin_page_url(@item)) %>");
|
||||
history.pushState(null, document.title, "<%= escape_javascript(admin_page_url(@item)) %>");
|
||||
Reference in new issue
Block a user