Rework send message form using new form styles
This commit is contained in:
parent
597fb5d27f
commit
a501ad8762
1 changed files with 14 additions and 15 deletions
|
@ -4,21 +4,20 @@
|
||||||
|
|
||||||
<%= error_messages_for 'message' %>
|
<%= error_messages_for 'message' %>
|
||||||
|
|
||||||
<%= form_for :message, :url => { :action => "new", :display_name => @this_user.display_name } do |f| %>
|
<%= form_for :message, :html => { :class => 'standard-form' }, :url => { :action => "new", :display_name => @this_user.display_name } do |f| %>
|
||||||
<table>
|
<fieldset class="form-row">
|
||||||
<tr valign="top">
|
<label><%= t'message.new.subject' %></label>
|
||||||
<td class="fieldName"><%= t'message.new.subject' %></td>
|
<%= f.text_field :title, :size => 60, :value => @subject %>
|
||||||
<td><%= f.text_field :title, :size => 60, :value => @subject %></td>
|
</fieldset>
|
||||||
</tr>
|
|
||||||
<tr valign="top">
|
<fieldset class="form-row">
|
||||||
<td class="fieldName"><%= t'message.new.body' %></td>
|
<label><%= t'message.new.body' %></label>
|
||||||
<td><%= richtext_area :message, :body, :cols => 80, :value => @body %></td>
|
<%= richtext_area :message, :body, :cols => 80, :value => @body %>
|
||||||
</tr>
|
</fieldset>
|
||||||
<tr>
|
|
||||||
<td></td>
|
<fieldset class="form-row">
|
||||||
<td><%= submit_tag t('message.new.send_button') %></td>
|
<%= submit_tag t('message.new.send_button') %>
|
||||||
</tr>
|
</fieldset>
|
||||||
</table>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue