From 88c5d8663194525cdb17c9fa1d8d9c28d7b8a2e2 Mon Sep 17 00:00:00 2001 From: Larissa Reis Date: Thu, 8 Oct 2015 10:00:19 -0300 Subject: [PATCH] custom_forms: Remove obsolete partials --- plugins/custom_forms/views/custom_forms_plugin_myprofile/_edit_select.html.erb | 32 -------------------------------- plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_field.html.erb | 10 ---------- plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_option.html.erb | 8 -------- 3 files changed, 0 insertions(+), 50 deletions(-) delete mode 100644 plugins/custom_forms/views/custom_forms_plugin_myprofile/_edit_select.html.erb delete mode 100644 plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_field.html.erb delete mode 100644 plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_option.html.erb diff --git a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_edit_select.html.erb b/plugins/custom_forms/views/custom_forms_plugin_myprofile/_edit_select.html.erb deleted file mode 100644 index 17317e9..0000000 --- a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_edit_select.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -
-

<%= c_('Options') %>

- - - - - - - <% option_counter = 1 %> - <% (field.choices || {}).each do |name, value| %> - <%= render :partial => 'option', :locals => {:name => name, :value => value, :counter => counter, :option_counter => option_counter} %> - <% option_counter += 1 %> - <% end %> - <%= render :partial => 'empty_option', :locals => {:counter => counter, :option_counter => option_counter} %> - - - -
<%= _('Name') %><%= _('Value') %><%= c_('Delete') %>
- <%= button(:add, _('Add a new option'), '#', :class => 'new-option', :field_id => counter)%> -
- -

<%= c_('Type') %>

- <%= labelled_radio_button 'Radio', "fields[#{counter}][kind]", 'radio', !field.multiple && !field.list %>
- <%= labelled_radio_button 'Checkbox', "fields[#{counter}][kind]", 'check_box', field.multiple && !field.list %>
- <%= labelled_radio_button 'Select', "fields[#{counter}][kind]", 'select', !field.multiple && field.list %>
- <%= labelled_radio_button 'Multiple Select', "fields[#{counter}][kind]", 'multiple_select', field.multiple && field.list %>
- - <% button_bar do %> - <%= button :ok, _('Ok'), '#', :div_id => elem_id %> - <% end %> -
- diff --git a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_field.html.erb b/plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_field.html.erb deleted file mode 100644 index 0c8d575..0000000 --- a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_field.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -> - <%= text_field "fields[#{counter}]", :name, :size => 25 %> - <%= select "fields[#{counter}]", :type, type_options, :selected => type_for_options(field.class) %> - <%= check_box "fields[#{counter}]", :mandatory %> - <%= hidden_field "fields[#{counter}]", :form_id, :value => @form.id %> - - <%= button_without_text :edit, c_('Edit'), '', :field_id => counter %> - <%= button_without_text :remove, c_('Remove'), '#', class: 'remove-field', field_id: counter, data: {confirm: _('Are you sure you want to remove this field?')} %> - - diff --git a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_option.html.erb b/plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_option.html.erb deleted file mode 100644 index ccdbfb5..0000000 --- a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_option.html.erb +++ /dev/null @@ -1,8 +0,0 @@ - option_id=<%= option_counter %> style="display: none;"> - <%= text_field_tag("fields[#{counter}][choices][#{option_counter}][name]") %> - <%= text_field_tag("fields[#{counter}][choices][#{option_counter}][value]") %> - - <%= button_without_text :remove, c_('Remove'), '#', class: 'remove-option', field_id: counter, option_id: option_counter, data: {confirm: _('Are you sure you want to remove this option?')} %> - - - -- libgit2 0.21.2