Moved strings to locales + Added 'Issues' button + Fixed typo in tests
[rails.git] / app / views / issues / new.html.erb
1 <% content_for :heading do %>
2     <h1>Report a new Issue for <%= reportable_url(@issue.reportable) %></h1>
3 <% end %>
4
5 <%= form_for(@issue) do |f| %>
6     <%= f.error_messages %>
7         <fieldset>
8             <div class='form-row'>
9                 <%= f.hidden_field :reportable_id %>
10                 <%= f.hidden_field :reportable_type %>
11                 <%= f.hidden_field :reported_user_id %>
12             </div>
13
14             <div class='form-row'>
15                 <p>Select one (or more) reasons for your report:</p>
16                 
17                 <div class="new-report-form">
18                     <div class="new-report-checkbox">
19                     <%= check_box_tag :spam, "[SPAM]" %>
20                     </div>
21                     <div class="new-report-string">
22                         <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.spam') %> <br/>
23                     </div>
24                 </div>
25                 <br/>
26
27                 <div class="new-report-form">
28                     <div class="new-report-checkbox">
29                     <%= check_box_tag :offensive, "[OFFENSIVE]" %>
30                     </div>
31                     <div class="new-report-string">
32                         <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.offensive') %> <br/>
33                     </div>
34                 </div>
35                 <br/>
36                 
37                 <div class="new-report-form">
38                     <div class="new-report-checkbox">
39                     <%= check_box_tag :threat, "[THREAT]" %>
40                     </div>
41                     <div class="new-report-string">
42                         <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.threat') %> <br/>
43                     </div>
44                 </div>
45                 <br/>
46
47                 <% if @issue.reportable.class.name == "User" %>
48                     <div class="new-report-form">
49                         <div class="new-report-checkbox">
50                         <%= check_box_tag :vandal, "[VANDAL]" %>
51                         </div>
52                         <div class="new-report-string">
53                         <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.vandal') %> <br/>
54                         </div>
55                     </div>
56                     <br/>
57                 <% end %>
58
59                 <div class="new-report-form">
60                     <div class="new-report-checkbox">
61                     <%= check_box_tag :other, "[OTHER]" %>
62                     </div>
63                     <div class="new-report-string">
64                         <%= label_tag t('issues.report_strings.other') %> <br/>
65                     </div>
66                 </div>
67                 <br/>
68
69                 <label class="standard-label"><b><%= t 'issue.new.message' -%>: </b></label> <br/>
70                 <%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: t('issues.new.details'), required: true %>
71             </div>
72
73             <div class='buttons'>
74                 <%= submit_tag %>
75             </div>
76         
77         </fieldset>
78 <% end %>