Sha256: 9937aee755eed4ae9a5e91924ca81d8576adcbe7c85f41eab8f96864dad7dcd1
Contents?: true
Size: 1.62 KB
Versions: 6
Compression:
Stored size: 1.62 KB
Contents
<% provide(:page_title, t("section.edit")) %> <% breadcrumb_add('Secciones', sections_path) %> <% breadcrumb_add(@section.name, section_path(@section)) %> <div class="row-fluid"> <div class = "widget widget-padding span12"> <div class = "widget-header"><i class = "icon-tasks"></i><h5><%= @section.name %></h5></div> <div class = "widget-body"> <div class = "widget-forms clearfix"> <%= custom_form_for(@section, :url => section_path(@section)) do |f| %> <%= render 'shared/error_messages', :object => @section %> <% if @section.has_description %> <%= f.hidden_field 'description', :id => "description-field", :value => @section.description %> <%= f.wysiwyg_field 'description', 'label' => I18n.t('section.description'), :name => 'description' %> <%= content_for :scripts do %> <script type="text/javascript"> <%= render "shared/init_editor", :field_var => 'description', :label => 'description' %> </script> <% end %> <% else %> <%= f.text_field 'description', :label => t("section.description") %> <% end %> <% if @section.has_image %> <%= f.fields_for :images do |builder| %> <%= render 'shared/image_fields', :f => builder %> <% end -%> <%= link_to_add_fields "Agregar Imagen", f, :images %> <% end %> </div> </div> <div class = "widget-footer"> <%= f.submit t("action.save"), :disable_with => t("action.submitting"), :id => "save-button" %> </div> <% end -%> </div> </div>
Version data entries
6 entries across 6 versions & 1 rubygems