Skip to content

Commit

Permalink
Merge pull request spree-contrib#11 from alexshuhin/label-fixes
Browse files Browse the repository at this point in the history
Removed plain html label tags in favor of label helpers
  • Loading branch information
greendog committed Jul 12, 2011
2 parents 8dd504c + e3f746a commit 9ed8385
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/views/admin/authentication_methods/_form.html.erb
Expand Up @@ -11,13 +11,11 @@

<p>
<%= f.check_box :active, {:style => "vertical-align:middle;"} %>
<label>
<%= t('social_enable_provider') %>
</label>
<%= f.label :active, t('social_enable_provider') %>
</p>

<p>
<label><%= t('social_provider') %></label><br />
<%= f.label :preferred_provider, t('social_provider') %><br />
<%= f.select :preferred_provider, SpreeSocial::OAUTH_PROVIDERS, {:include_blank => true} %>
<br/>
<span class="info">
Expand All @@ -26,7 +24,7 @@
</p>

<p>
<label><%= t('social_api_key') %></label><br />
<%= f.label :preferred_api_key, t('social_api_key') %><br />
<%= f.text_field :preferred_api_key, :size => 40, :maxlength => 256 %>
<br/>
<span class="info">
Expand All @@ -35,7 +33,7 @@
</p>

<p>
<label><%= t('social_api_secret') %></label><br />
<%= f.label :preferred_api_secret, t('social_api_secret') %><br />
<%= f.text_field :preferred_api_secret, :size => 40, :maxlength => 256 %>
<br/>
<span class="info">
Expand Down

0 comments on commit 9ed8385

Please sign in to comment.