X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/206e1309a95b498a220d8de6cf4ed5970ebd6778..757a1aaa850bf48e45ee1dd2225cda1c9fa47d73:/app/views/issues/new.html.erb diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index ea01890cf..010394c29 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -2,6 +2,15 @@

Report <%= reportable_url(@issue.reportable) %>

<% end %> +
+ +
+ <%= form_for(@issue) do |f| %> <%= f.error_messages %>
@@ -14,18 +23,16 @@

<%= t('issues.new.select') %>:

- <% @report_strings_yaml.each do |k,v| %> -
-
- <%= radio_button_tag :report_type, v[:type].to_s %> -
-
- <%= label_tag v[:details].to_s %>
-
-
-
- <% end %> +
+ <% @report_strings_yaml.each do |k,v| %> +
+ <%= radio_button_tag :report_type, v[:type].to_s %> + <%= label_tag v[:details].to_s %>
+
+ <% end %> +
+
<%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
@@ -34,4 +41,4 @@
-<% end %> \ No newline at end of file +<% end %>