Sha256: f0f8a7d44eea6766415b3a43ae8e47f003ecca4c79ac3b92a57fe2d9e6488aa5
Contents?: true
Size: 1.37 KB
Versions: 6
Compression:
Stored size: 1.37 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 = "fa fa-tasks"></i><h5><%= @section.name %></h5></div> <div class = "widget-body"> <div class = "widget-forms clearfix"> <%= adminpanel_form_for @section do |f| %> <%= render 'shared/error_messages', :object => @section %> <% if @section.has_description %> <%= f.wysiwyg_field 'description', 'label' => I18n.t('section.description') %> <% else %> <%= f.text_field 'description', :label => t("section.description") %> <% end %> <% if @section.has_image %> <%= content_tag :div, :class => 'file-collection-container', :data => {:max => 1} do %> <%= f.fields_for :images do |builder| %> <%= render 'shared/image_fields', :f => builder %> <% end -%> <%= link_to_add_fields "Agregar Imagen", f, :images %> <% end %> <% end %> </div> </div> <div class = "widget-footer"> <%= f.submit t("action.save"), data: {:disable_with => t("action.submitting")}, :id => "save-button" %> </div> <% end -%> </div> </div>
Version data entries
6 entries across 6 versions & 1 rubygems