Commit e7a14fb01e35789e78abf8c0b7e44d12ba57a37a

Authored by Antonio Terceiro
1 parent 1a8d08a3

Label the select box in a standard way

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
app/views/cms/_upload_file_form.rhtml
1 1 <% if @parent %>
2 2 <%= hidden_field_tag('parent_id', @parent.id) %>
3 3 <% else %>
4   - <h4><%= _('Choose folder to upload files:') %></h4>
5   - <%= select_tag('parent_id', options_for_select([[profile.identifier, '']] + @folders.collect {|f| [ profile.identifier + '/' + f.full_name, f.id ] })) %>
  4 + <%= labelled_form_field(_('Choose folder to upload files:'), select_tag('parent_id', options_for_select([[profile.identifier, '']] + @folders.collect {|f| [ profile.identifier + '/' + f.full_name, f.id ] }))) %>
6 5 <% end %>
7 6  
8 7 <div id='uploaded_files'>
... ...