[%- IF SELF.profile.id %]
[%- LxERP.t8('Current profile') %]: |
[%- HTML.escape(SELF.profile.name) %] |
[%- END %]
[%- IF SELF.all_profiles.size %]
[%- LxERP.t8('Existing profiles') %]: |
[% L.select_tag('profile.id', L.options_for_select(SELF.all_profiles, title => 'name', default => SELF.profile.id), style => 'width: 300px') %]
|
[% L.submit_tag('action_new', LxERP.t8('Load profile')) %]
[% L.submit_tag('action_destroy', LxERP.t8('Delete profile'), confirm => LxERP.t8('Do you really want to delete this object?')) %]
|
[%- END %]
[%- LxERP.t8('Save settings as') %]: |
[% L.input_tag('profile.name', '', style => 'width: 300px') %]
[% L.checkbox_tag('profile.is_default', label => LxERP.t8('Make default profile')) %]
|
[% L.submit_tag('action_save', LxERP.t8('Save profile')) %] |
[%- LxERP.t8('Number format') %]: |
[% SET options = L.options_for_select([ '1.000,00', '1000,00', '1,000.00', '1000.00' ], default => SELF.profile.get('numberformat')) %]
[% L.select_tag('settings.numberformat', options, style => 'width: 300px') %]
|
[%- LxERP.t8('Charset') %]: |
[% L.select_tag('settings.charset', L.options_for_select(SELF.all_charsets, default => SELF.profile.get('charset')), style => 'width: 300px') %] |
[%- LxERP.t8('Separator') %]: |
[% SET custom_sep_char = SELF.sep_char %]
[% FOREACH entry = SELF.all_sep_chars %]
[% IF SELF.sep_char == entry.first %] [% SET custom_sep_char = '' %] [%- END %]
[% L.radio_button_tag('sep_char', value => entry.first, label => entry.last, checked => SELF.sep_char == entry.first) %]
|
[%- END %]
[% L.radio_button_tag('sep_char', value => 'custom', checked => custom_sep_char != '') %]
[% L.input_tag('custom_sep_char', custom_sep_char, size => 3, maxlength => 1) %]
|
[%- LxERP.t8('Quote character') %]: |
[% SET custom_quote_char = SELF.quote_char %]
[% FOREACH entry = SELF.all_quote_chars %]
[% IF SELF.quote_char == entry.first %] [% SET custom_quote_char = '' %] [%- END %]
[% L.radio_button_tag('quote_char', value => entry.first, label => entry.last, checked => SELF.quote_char == entry.first) %]
|
[%- END %]
[% L.radio_button_tag('quote_char', value => 'custom', checked => custom_quote_char != '') %]
[% L.input_tag('custom_quote_char', custom_quote_char, size => 3, maxlength => 1) %]
|
[%- LxERP.t8('Escape character') %]: |
[% SET custom_escape_char = SELF.escape_char %]
[% FOREACH entry = SELF.all_escape_chars %]
[% IF SELF.escape_char == entry.first %] [% SET custom_escape_char = '' %] [%- END %]
[% L.radio_button_tag('escape_char', value => entry.first, label => entry.last, checked => SELF.escape_char == entry.first) %]
|
[%- END %]
[% L.radio_button_tag('escape_char', value => 'custom', checked => custom_escape_char != '') %]
[% L.input_tag('custom_escape_char', custom_escape_char, size => 3, maxlength => 1) %]
|
[% L.submit_tag('action_test', LxERP.t8('Gogogo')) %]