Sha256: 0e77339e2fa3317466144fd8430dc86cf6064b1552cab8ba2b8223d1adff9d16

Contents?: true

Size: 1.18 KB

Versions: 19

Compression:

Stored size: 1.18 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| %>
      <%= f.body do %>
        <%= 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 %>
          <%= render 'adminpanel/form/adminpanel_file_field', properties: { label: 'Imágenes', max_files: @section.max_files }, f: f, attribute: 'sectionfiles' %>
        <% end %>
      <% end %>
      <%= f.footer do %>
        <%= f.submit t('action.save', resource: @section.name), data: {:disable_with => t("action.submitting")}, :id => "save-button" %>
      <% end %>
    <% end -%>
  </div>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
adminpanel-3.6.1 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.6.0 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.5.1 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.5.0 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.4.7 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.4.6 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.4.5 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.4.4 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.4.3 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.4.2 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.4.1 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.4.0 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.3.4 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.3.3 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.3.0 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.2.1 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.2.0 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.1.0 app/views/adminpanel/sections/edit.html.erb
adminpanel-3.0.0 app/views/adminpanel/sections/edit.html.erb