mailr/app/views/messages/compose.html.haml

49 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

2012-03-24 13:23:34 +01:00
= content_for :sidebar do
= render :partial => "sidebar/sidebar"
= content_for :title do
2012-03-30 19:31:23 +02:00
\-
2012-03-24 13:23:34 +01:00
= t(:compose,:scope=>:compose)
= render :partial => 'common/main_navigation', :locals => { :compose => :active }
2012-03-26 20:22:01 +02:00
%form{:enctype=>"multipart/form-data",:class=>"form-horizontal",:action=>composed_path,:method=>"post"}
2012-03-24 13:23:34 +01:00
%fieldset
2012-04-15 19:51:58 +02:00
= render :partial => "common/input_form_desc_field",:locals => {:object => @message,:attr => 'to_addr',:label => nil,:example => 'joe@domain.com',:value => address_formatter(@message.to_addr,@operation),:to_class=>"span7" }
= render :partial => "common/input_form_desc_field",:locals => {:object => @message,:attr => 'cc_addr',:label => nil,:example => 'joe@domain.com',:value => address_formatter(@message.cc_addr,@operation),:to_class=>"span7" }
= render :partial => "common/input_form_desc_field",:locals => {:object => @message,:attr => 'subject',:label => nil,:example => t(:subject_of_the_message,:scope=>:compose),:value => subject_formatter(@message.subject,@operation),:to_class=>"span7" }
= render :partial => "common/area_form_desc_field",:locals => {:object => @message,:attr => 'body',:label => nil,:example => t(:write_your_message_here,:scope=>:compose),:value => body_formatter(@message.body,@operation),:to_class=>"span7",:rows=>20 }
2012-03-26 20:22:01 +02:00
- if !@olduid.nil?
= hidden_field_tag 'olduid', @olduid
.control-group
.controls
%h1
%small
= t(:attachments,:scope=>:message)
- if not @attachments.size.zero?
%table{:class=>"table table-bordered"}
%tbody
- @attachments.each do |a|
= render :partial => "messages/file_attach", :locals => {:file_attach => a }
= render :partial => "common/button", :locals => {:name=>'delete_marked',
:caption=>t('delete_marked',:scope=>'compose'),
:icon=>'icon-minus icon-white'}
= render :partial => "common/file_select", :locals => { :model_label => t(:select_file,:scope=>:compose),
:model_string => "file",
:attr => "data"}
.control-group
.controls
= render :partial => "common/button", :locals => {:name=>'upload',
:caption=>t('upload',:scope=>'compose'),
:icon=>'icon-upload icon-white'}
.control-group
.controls
= render :partial => "common/button", :locals => {:name=>'sendout',
:caption=>t('sendout',:scope=>'compose'),
:icon=>'icon-envelope icon-white'}
= render :partial => "common/button", :locals => {:name=>'save',
:caption=>t('save',:scope=>'compose'),
:icon=>'icon-folder-open icon-white'}
2012-03-24 13:23:34 +01:00