Commit 1de55ac68384c14345354968019403cdee5c3a8e

Authored by Larissa Reis
1 parent e0dc1e81

[media-panel-improvements] Uses labelled button helper

  For consistence sake, uses the `labelled_radio_button` helper instead
  of manually dealing with the label content tag.
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/cms/_media_new_folder.html.erb
... ... @@ -5,8 +5,8 @@
5 5 "type='Folder' or type='Gallery'")
6 6 %>
7 7  
8   - <%= content_tag(:label, radio_button_tag(:folder_type, 'Gallery', true) + _('Gallery')) %>
9   - <%= content_tag(:label, radio_button_tag(:folder_type, 'Folder', false) + _('Folder')) %>
  8 + <%= labelled_radio_button _('Gallery'), :folder_type, 'Gallery', true %>
  9 + <%= labelled_radio_button _('Folder'), :folder_type, 'Folder', false %>
10 10  
11 11 <%= labelled_form_field _('Name:'), text_field_tag(:new_folder, nil, 'data-url' => url_for({:action => 'new', :profile => profile.identifier})) %>
12 12 <% button_bar do %>
... ...