parent
b4fb17a467
commit
0609c5c7ea
@ -1,20 +1,32 @@
|
||||
<!-- added by fq -->
|
||||
<!-- %= form_for(@forum) do |f| % -->
|
||||
<%= labelled_form_for(@forum) do |f| %>
|
||||
<div id="share_new" style = "width: 500px; margin:0 auto; " >
|
||||
<%= labelled_form_for(@forum) do |f| %>
|
||||
<% if @forum.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@forum.errors.count, "error") %> prohibited this forum from being saved:</h2>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@forum.errors.count, "error") %> prohibited this forum from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<ul>
|
||||
<% @forum.errors.full_messages.each do |msg| %>
|
||||
<li><%= msg %></li>
|
||||
<li><%= msg %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="actions">
|
||||
<p><%= f.text_field :name, :required => true %></p>
|
||||
<p><%= f.text_field :description, :required => true, :size => 80 %></p>
|
||||
<%= f.submit :value => (l :label_board_new) %>
|
||||
<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">
|
||||
<%= f.submit :value=>(l :label_board_new) ,: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>
|
||||
<p><%#= f.text_field :name, :required => true %></p>
|
||||
<p><%#= f.text_field :description, :required => true, :size => 80 %></p>
|
||||
<%#= f.submit :value => (l :label_board_new) %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!-- added by fq -->
|
||||
<h1><%= l :label_board_new%></h1>
|
||||
<h3><%= l :label_forum_new %></h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to l(:button_back), forums_path %>
|
||||
<%#= link_to l(:button_back), forums_path %>
|
||||
|
Loading…
Reference in new issue