Sha256: 6ee6acc39cd5efc5e6292f4051e31953eb7fbf008d400df54ea866ef54966572

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

<%= simple_form_for([@site, @section, @category]) do |f| %>
  <% if @category.errors.any? %>
    <div id="error_explanation">
      <h2>Ocorreram alguns erros:</h2>

      <ul>
        <% @category.errors.full_messages.each do |message| %>
          <li><%= message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <%= f.input :name %>

  <div class="actions">
    <%= f.submit "Salvar", id: 'submit' %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 app/views/cas/sites/sections/categories/_form.html.erb
cas-cms-1.0.0.alpha1 app/views/cas/sites/sections/categories/_form.html.erb
cas-cms-0.1.3 app/views/cas/sites/sections/categories/_form.html.erb
cas-cms-0.1.2 app/views/cas/sites/sections/categories/_form.html.erb
cas-cms-0.1.1 app/views/cas/sites/sections/categories/_form.html.erb