Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
Capitalize first letter of each checkbox label
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin committed Mar 21, 2013
1 parent 890c093 commit e13350f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/views/partials/questions/_document_type.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
<% @transaction.document_types.each do |value,label| %>
<li>
<%= label_tag "transaction_document_type_#{value}" do %>
<%
formatted_label = label
formatted_label[0] = formatted_label[0].capitalize
%>
<% formatted_label = label.dup.tap {|l| l[0] = l[0].upcase } %>
<%= radio_button_tag "transaction[document_type]", value %> <%= formatted_label %>
<% end %>
</li>
Expand Down

0 comments on commit e13350f

Please sign in to comment.