<%# Settings for redmine_qbo_labels (Administration » Plugins » Configure) %> <% s = RedmineQboLabels::Settings %> <% field = ->(key) { "settings[#{key}]" } %>

<%= link_to sprite_icon('document', l(:label_label_printer_plural)), label_printers_path, class: 'icon icon-document' %>

<%= l(:label_qbo_labels_label_settings) %>

<%= number_field_tag field.call('min_length_in'), s.min_length_in, id: 'qbo_labels_min_length', min: 0.5, max: 12, step: 0.1, style: 'width: 5em' %> – <%= number_field_tag field.call('max_length_in'), s.max_length_in, id: 'qbo_labels_max_length', min: 1, max: 12, step: 0.1, style: 'width: 5em' %> <%= l(:label_qbo_labels_inches) %> <%= l(:text_qbo_labels_length) %>

<%= hidden_field_tag field.call('uppercase'), '0', id: nil %> <%= check_box_tag field.call('uppercase'), '1', s.uppercase?, id: 'qbo_labels_uppercase' %>

<%= l(:label_qbo_labels_agent_settings) %>

<%= number_field_tag field.call('poll_seconds'), s.poll_seconds, id: 'qbo_labels_poll', min: 1, max: 60, style: 'width: 5em' %> <%= l(:text_qbo_labels_poll_seconds) %>

<%= number_field_tag field.call('job_expiry_minutes'), s.job_expiry.in_minutes.round, id: 'qbo_labels_expiry', min: 1, max: 1440, style: 'width: 5em' %> <%= l(:text_qbo_labels_job_expiry) %>

<%= hidden_field_tag field.call('log_requests'), '0', id: nil %> <%= check_box_tag field.call('log_requests'), '1', s.log_requests?, id: 'qbo_labels_log' %> <%= l(:text_qbo_labels_log_requests) %>