From e7a14fb01e35789e78abf8c0b7e44d12ba57a37a Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 8 Aug 2011 23:38:32 -0700 Subject: [PATCH] Label the select box in a standard way --- app/views/cms/_upload_file_form.rhtml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/cms/_upload_file_form.rhtml b/app/views/cms/_upload_file_form.rhtml index 2e3b0f8..8c4c3ff 100644 --- a/app/views/cms/_upload_file_form.rhtml +++ b/app/views/cms/_upload_file_form.rhtml @@ -1,8 +1,7 @@ <% if @parent %> <%= hidden_field_tag('parent_id', @parent.id) %> <% else %> -

<%= _('Choose folder to upload files:') %>

- <%= select_tag('parent_id', options_for_select([[profile.identifier, '']] + @folders.collect {|f| [ profile.identifier + '/' + f.full_name, f.id ] })) %> + <%= 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 ] }))) %> <% end %>
-- libgit2 0.21.2