Sha256: 5c4af44977087d03fa57447b403119dc83a2624d8e99d6428d13254452db743d

Contents?: true

Size: 1.65 KB

Versions: 4

Compression:

Stored size: 1.65 KB

Contents

<% provide(:page_title, "Editar") %>
<% 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 %>
            <div class="control-group">
              <label class="control-label"><%= t "Description" %></label>
              <div class="controls">
                <%= f.hidden_field :description, :id => "description-field" %>
                <div class="editable" data-placeholder = "Escriba la descripciĆ³n aquĆ­">
                  <%= @section.description.html_safe %>
                </div>
              </div>
            </div>
          <% else %>
            <%= f.text_field :description, :label => t("Description") %>
          <% end %>

          <% if @section.has_image %>
              <%= f.fields_for :images do |builder| %>
                <%= render 'image_fields', :f => builder, :model_name => @section.simple_name %>
              <% end -%>

              <%= link_to_add_fields "Agregar Imagen", f, :images, @section.simple_name %>
          <% end %>
      </div>
    </div>
    <div class = "widget-footer">
      <%= f.submit "Guardar", :disable_with => 'Submiting...', :id => "save-button" %>
    </div>
      <% end -%>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adminpanel-0.0.4 app/views/adminpanel/sections/edit.html.erb
adminpanel-0.0.3 app/views/adminpanel/sections/edit.html.erb
adminpanel-0.0.2 app/views/adminpanel/sections/edit.html.erb
adminpanel-0.0.1 app/views/adminpanel/sections/edit.html.erb