Changes into page_part edition.

Can choose between 'text', 'public_r_tag' and 'widget'
This commit is contained in:
Christophe Vilayphiou committed 2012-02-16 13:09:09 +08:00
1 parent 7ea1745f73
commit e0accbecaa
25 files changed
+119 -179

No files matched your search

@@ -1 +1 @@
<%= f.select :module_app_id, @apps.collect { |t| [t.title.capitalize, t.id] }, {:include_blank => true} ,{:rel => admin_module_apps_path } %>
<%= f.select :module_app_id, @apps.collect { |t| [t.title.capitalize, t.id] }, {}, {:rel => admin_module_apps_path } %>
@@ -1,17 +0,0 @@
<%= flash_messages %>
<%= render 'language_bar' %>
<%= form_for @part, :url => admin_page_part_path(@part), :html => { :class => 'form' } do |f| %>
<%= fields_for "page_part[i18n_variable]", @i18n_variable, :index => nil do |f| %>
<% @site_valid_locales.each do |locale| %>
<div class="ckeditor_locale" style="display:<%= @part_locale.eql?(locale) ? 'block' : 'none' %>">
<%= render :partial => "admin/page_parts/form", :locals => { :f => f, :locale => locale } %>
</div>
<% end %>
<% end %>
<p>
<%= f.submit t(:update) %> <%= link_back %>
</p>
<% end %>
@@ -1,3 +0,0 @@
<%= f.error_messages %>
<%= f.cktext_area locale, :toolbar=>'Full', :width=>'700px', :height=>'200px'%>
+1 -1
View File
@@ -2,4 +2,4 @@
<%= render 'admin/items/site_map_left_bar' %>
<% end -%>
<%= render @partial %>
<%= render 'edit' %>
+1 -1
View File
@@ -1 +1 @@
$('#back_main').html("<%= escape_javascript(render(:partial => @partial)) %>");
$('#back_main').html("<%= j render(:partial => 'edit') %>");