Sha256: b384daf5b77f1f46a703b341b50e0d0a1dfbcf55cf4f0d94f1f5099b607c5b52
Contents?: true
Size: 1.72 KB
Versions: 3
Compression:
Stored size: 1.72 KB
Contents
<% provide(:page_title, I18n.t('section.edit', title: @section.name)) %> <% 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> <%= adminpanel_form_for @section do |f| %> <div class = "widget-body"> <div class = "widget-forms clearfix"> <%= render 'adminpanel/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: @section.max_files } do %> <%= f.fields_for :sectionfiles do |builder| %> <%= render 'adminpanel/shared/image_fields', f: builder %> <% end -%> <% if @section.max_files != 0 && @section.max_files <= @section.sectionfiles.count %> <% visibility = 'hidden' %> <% else %> <% visibility = 'not-hidden' %> <% end %> <%= link_to_add_fields 'Agregar Imagen', f, :sectionfiles, visibility %> <% end %> <% end %> </div> </div> <div class = "widget-footer"> <%= f.submit t('action.save', resource: @section.name), data: {:disable_with => t("action.submitting")}, :id => "save-button" %> </div> <% end -%> </div> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-2.4.0 | app/views/adminpanel/sections/edit.html.erb |
adminpanel-2.3.1 | app/views/adminpanel/sections/edit.html.erb |
adminpanel-2.3.0 | app/views/adminpanel/sections/edit.html.erb |