Project

General

Profile

RE: ezSummary plugin 0.0.1 - Send issue status summary(in... » _email_form.html.erb

Terence Mill, 2010-10-18 13:00

 
1
<%= render_mail_error(@errors) %>
2
<fieldset id="email">
3
  <legend><%= t("label_ezsummary_mail") %></legend>
4
  <% form_tag :issue_id => issue, :action => "create", :html => { :method => :post, :id => "create_email_form"} do -%>
5
      <div id="top_form">
6
        <div class="label-wrapper">
7
          <%= label_tag 'recipients', "#{t('field_recipients')}: ", :class => 'required' %>
8
          <%= text_area_tag 'recipients', attributes[:recipients] %>
9
        </div>
10
        <div class="label-wrapper">
11
          <%= label_tag 'subject', "#{t('field_subject')}: ", :class => 'required' %>
12
          <%= text_field_tag 'subject', attributes[:subject] || "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}" %>
13
        </div>
14
        <div class="label-wrapper">
15
          <%= label_tag 'mail_content', "#{t('field_content')}: " %>
16
          <textarea name="content" id="mail_content"><%= attributes[:content] %></textarea>
17
        </div>
18

    
19
      </div>
20
      <div id="bottom_form">
21
        <%= submit_tag t("button_send_mail"), :id => "ez_send_mail", :action => 'create' %>
22
        <%= link_to_remote 'Submit', { :url => { :action => 'create' }, :with => "Form.serialize($('form_id'))" }, { :class => "style_class" } -%>
23
        <%= check_box_tag 'save_flag' %><%= label_tag 'save_flag', t("text_ezsummary_save_mail_tempate"), :title => t("text_tooltip_save_mail_tempate") %>
24
        <span class="notice"><%= t("text_mail_content_desc") %></span>
25
      </div>
26
  <% end -%>
27
</fieldset>
(1-1/2)