2013-11-24 20:02:53 +08:00
|
|
|
<!-- added by fq -->
|
2013-11-22 21:55:21 +08:00
|
|
|
<!-- %= form_for(@forum) do |f| % -->
|
2013-12-02 17:27:15 +08:00
|
|
|
<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? %>
|
2013-12-02 17:27:15 +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
|
|
|
|
2013-12-02 17:27:15 +08:00
|
|
|
<ul>
|
2013-11-22 10:24:15 +08:00
|
|
|
<% @forum.errors.full_messages.each do |msg| %>
|
2013-12-02 17:27:15 +08:00
|
|
|
<li><%= msg %></li>
|
2013-11-22 10:24:15 +08:00
|
|
|
<% end %>
|
2013-12-02 17:27:15 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
2013-11-22 10:24:15 +08:00
|
|
|
<% end %>
|
2013-12-02 17:27:15 +08:00
|
|
|
<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' %>
|
2013-12-02 17:27:15 +08:00
|
|
|
<%= 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>
|
2013-12-02 17:27:15 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|