Open-Source-Access-Control-.../app/views/certifications/_form.html.erb

30 lines
778 B
Plaintext
Raw Normal View History

<%= form_for(@certification) do |f| %>
<% if @certification.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@certification.errors.count, "error") %> prohibited this certification from being saved:</h2>
<ul>
<% @certification.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
2014-02-23 12:55:00 +00:00
<div class="field">
<%= f.label :slug, "Slug (lowercase, single-word identifier)" %><br />
<%= f.text_field :slug %>
</div>
<div class="field">
<%= f.label :description %><br />
<%= f.text_area :description %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>