]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/new.html.erb
removed end tag ("source" is a self-closing tag)
[rails.git] / app / views / user_blocks / new.html.erb
index c92fe74ec5649b7564203f922e3fc9a7f6fd2ca3..bd492a354b00d38a736330899340cd02c565d329 100644 (file)
@@ -13,7 +13,7 @@
   </p>
   <p>
     <%= label_tag "user_block_period", t(".period") %><br />
   </p>
   <p>
     <%= label_tag "user_block_period", t(".period") %><br />
-    <%= select_tag("user_block_period", options_for_select(UserBlock::PERIODS.collect { |h| [t("user_blocks.period", :count => h), h.to_s] }, params[:user_block_period])) %>
+    <%= select_tag("user_block_period", options_for_select(UserBlock::PERIODS.collect { |h| [block_duration_in_words(h.hours), h.to_s] }, params[:user_block_period])) %>
   </p>
   <p>
     <%= f.check_box :needs_view %>
   </p>
   <p>
     <%= f.check_box :needs_view %>
@@ -21,7 +21,7 @@
   </p>
   <p>
     <%= hidden_field_tag "display_name", @user.display_name %>
   </p>
   <p>
     <%= hidden_field_tag "display_name", @user.display_name %>
-    <%= f.submit t(".submit") %>
+    <%= f.submit %>
   </p>
 <% end %>
 
   </p>
 <% end %>