30 lines
778 B
Plaintext
Executable File
30 lines
778 B
Plaintext
Executable File
<%= 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>
|
|
<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 %>
|