Commit 1de55ac68384c14345354968019403cdee5c3a8e
1 parent
e0dc1e81
Exists in
master
and in
29 other branches
[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,8 +5,8 @@ | ||
5 | "type='Folder' or type='Gallery'") | 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 | <%= labelled_form_field _('Name:'), text_field_tag(:new_folder, nil, 'data-url' => url_for({:action => 'new', :profile => profile.identifier})) %> | 11 | <%= labelled_form_field _('Name:'), text_field_tag(:new_folder, nil, 'data-url' => url_for({:action => 'new', :profile => profile.identifier})) %> |
12 | <% button_bar do %> | 12 | <% button_bar do %> |