45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
|
= content_for :sidebar do
|
||
|
= render :partial => "sidebar/sidebar"
|
||
|
|
||
|
= content_for :title do
|
||
|
= t(:compose,:scope=>:compose)
|
||
|
|
||
|
= render :partial => 'common/main_navigation', :locals => { :compose => :active }
|
||
|
|
||
|
%form{:multipart => 'true',:class=>"form-horizontal",:action=>composed_path,:method=>"post"}
|
||
|
.well{:style=>"padding: 5px 3pt;"}
|
||
|
%h3
|
||
|
= t(:new_message,:scope=>:compose)
|
||
|
%fieldset
|
||
|
= render :partial => "common/input_form_desc_field",:locals => {:object => @user,:attr => 'login',:label => nil,:example => 'joe.doe',:value => params[:user] ? params[:user][:login] : "" }
|
||
|
|
||
|
|
||
|
|
||
|
-#
|
||
|
<div class="params">
|
||
|
<%= raw form_field( @message,
|
||
|
"to_addr",
|
||
|
nil,
|
||
|
"joe@domain.com"+', '+ t(:not_contain_at,:scope=>:compose),
|
||
|
address_formatter(@message.to_addr,@operation)
|
||
|
) %>
|
||
|
<%= raw form_field( @message,
|
||
|
"subject",
|
||
|
nil,
|
||
|
t(:subject_of_the_message,:scope=>:compose),
|
||
|
subject_formatter(@message.subject,@operation)
|
||
|
) %>
|
||
|
<%= raw area_field( @message,
|
||
|
"body",
|
||
|
nil,
|
||
|
t(:write_your_message_here,:scope=>:compose),
|
||
|
body_formatter(@message.body,@operation),
|
||
|
80,
|
||
|
20
|
||
|
) %>
|
||
|
</div>
|
||
|
<% if !@olduid.nil? %>
|
||
|
<%= hidden_field_tag 'olduid', @olduid %>
|
||
|
<% end %>
|
||
|
<%= raw group_action(@buttons) %>
|