socialforge/app/views/open_source_projects/_form.html.erb

22 lines
571 B
Plaintext
Raw Normal View History

2014-03-29 10:57:36 +08:00
<%= form_for(@open_source_project) do |f| %>
<% if @open_source_project.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@open_source_project.errors.count, "error") %> prohibited this open_source_project from being saved:</h2>
<ul>
<% @open_source_project.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :String %><br />
<%= f.text_field :String %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>