2013-01-25 10:12:25 +00:00
|
|
|
<%= 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>
|
2013-01-25 10:12:25 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :description %><br />
|
|
|
|
<%= f.text_area :description %>
|
|
|
|
</div>
|
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|