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

30 lines
1.2 KiB
Plaintext
Raw Normal View History

<!-- added by fq -->
2013-11-22 21:55:21 +08:00
<!-- %= form_for(@forum) do |f| % -->
<div id="share_new" style = "width: 500px; margin:0 auto; " >
<%= labelled_form_for(@forum) do |f| %>
2013-11-22 10:24:15 +08:00
<% if @forum.errors.any? %>
2014-07-05 11:44:05 +08:00
<!--<div id="error_explanation">
<h2><#%= pluralize(@forum.errors.count, "error") %> prohibited this forum from being saved:</h2>
2013-11-22 10:24:15 +08:00
<ul>
2014-07-05 11:44:05 +08:00
<#% @forum.errors.full_messages.each do |msg| %>
<li><#%= msg %></li>
<#% end %>
</ul>
2014-07-05 11:44:05 +08:00
</div> -->
2013-11-22 10:24:15 +08:00
<% end %>
<div class="actions" style="margin:10px">
<div class="field">
<%= f.text_field :name, :required => true, :style => 'width: 100%;', :class => 'create-share' %>
</div>
<div class="field">
<%= f.text_area :description, :required => true, :rows => 4, :style => 'width: 100%;resize: none;', :class => 'create-share' %>
</div>
<div class="actions" style=" padding-top: 10px; float:right">
2013-12-16 19:36:50 +08:00
<%= f.submit :value=>(l :button_submit) ,:class => 'nyan-clean-gray', :style => 'font-size: 14px; padding: 0px 3px' %>
<%= link_to l(:button_back), forums_path,:class => 'nyan-clean-gray',:style => 'font-size: 14px; padding: 0px 3px; color: #000' %>
</div>
2013-11-22 10:24:15 +08:00
</div>
<% end %>
</div>