<%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:settings, scope: :print_invoice) %> <% end %> <%= form_tag(admin_print_invoice_settings_path, method: :put) do %>
<%= Spree.t(:pdf_legend, scope: :print_invoice) %>
<%= check_box_tag('preferences[use_footer]', Spree::PrintInvoice::Config[:use_footer], type: :boolean) %> <%= label_tag Spree.t(:use_footer, scope: [:print_invoice, :preferences]) %>
<%= check_box_tag('preferences[use_page_numbers]', Spree::PrintInvoice::Config[:use_page_numbers], type: :boolean) %> <%= label_tag Spree.t(:use_page_numbers, scope: [:print_invoice, :preferences]) %>
<%= label_tag Spree.t(:print_logo_path, scope: [:print_invoice, :preferences]) %>
<%= text_field_tag('preferences[print_invoice_logo_path]', Spree::PrintInvoice::Config[:print_invoice_logo_path], class: 'fullwidth') %>
<%= label_tag Spree.t(:print_buttons, scope: [:print_invoice, :preferences]) %>
<%= text_field_tag('preferences[print_buttons]', Spree::PrintInvoice::Config[:print_buttons], class: 'fullwidth') %> <%= Spree.t(:print_buttons_info, scope: [:print_invoice, :preferences]) %>
<%= label_tag Spree.t(:print_invoice_next_number, scope: [:print_invoice, :preferences]) %>
<%= number_field_tag('preferences[print_invoice_next_number]', Spree::PrintInvoice::Config[:print_invoice_next_number], class: 'fullwidth') %>
<%= label_tag Spree.t(:page_size, scope: [:print_invoice, :preferences]) %>
<%= select_tag('preferences[page_size]', options_for_select(Spree::PrintInvoice::Config.page_sizes, Spree::PrintInvoice::Config[:page_size]), class: 'fullwidth select2') %>
<%= label_tag Spree.t(:page_layout, scope: [:print_invoice, :preferences]) %>
<%= select_tag('preferences[page_layout]', options_for_select(Spree::PrintInvoice::Config.page_layouts, Spree::PrintInvoice::Config[:page_layout]), class: 'fullwidth select2') %>
<%= Spree.t(:invoice_slip_legend, scope: :print_invoice) %>
<%= label_tag Spree.t(:footer_left, scope: [:print_invoice, :preferences]) %>
<%= text_area_tag('preferences[footer_left]', Spree::PrintInvoice::Config[:footer_left], class: 'fullwidth') %> <%= Spree.t(:footer_left_info, scope: [:print_invoice, :preferences]) %>
<%= label_tag Spree.t(:footer_right, scope: [:print_invoice, :preferences]) %>
<%= text_area_tag('preferences[footer_right]', Spree::PrintInvoice::Config[:footer_right], class: 'fullwidth') %> <%= Spree.t(:footer_right_info, scope: [:print_invoice, :preferences]) %>
<%= label_tag Spree.t(:return_message, scope: [:print_invoice, :preferences]) %>
<%= text_area_tag('preferences[return_message]', Spree::PrintInvoice::Config[:return_message], class: 'fullwidth') %>
<%= label_tag Spree.t(:anomaly_message, scope: [:print_invoice, :preferences]) %>
<%= text_area_tag('preferences[anomaly_message]', Spree::PrintInvoice::Config[:anomaly_message], class: 'fullwidth') %>
<%= button Spree.t('actions.update'), 'icon-refresh' %>
<% end %>