[% PROCESS 'elements.html'; %]
[% text('Sequences') %]

[% text('Save') %] | [% text('Allow Input') %] | [% text('label') %] | [% text('Setting') %] | [% text('Prefix') %] | [% text('Sequence') %] | [% text('Suffix') %]
--- | --- | --- | --- | --- | --- | ---
[% count = 0 %] [% FOR seq IN sequence_list; count = loop.count %]
[% PROCESS input element_data = { type = 'checkbox' name = 'save_' _ count value = 1 } %] | [% checked = undefined; IF seq.accept_input; checked = 'CHECKED'; END; PROCESS input element_data = { type = 'checkbox' name = 'accept_input_' _ count value = 1 checked = checked } %] | [% seq.label; PROCESS input element_data = { type = 'hidden' name = 'label_' _ count value = seq.label } %] | [% PROCESS select element_data = { name = 'setting_key_' _ count options = setting_keys default_values = [seq.setting_key] text_attr = 'label', value_attr = 'name' } %] | [% PROCESS input element_data = { name = 'prefix_' _ count type = 'text' value = seq.prefix size = '10' } %] | [% PROCESS input element_data = { name = 'sequence_' _ count type = 'text' value = seq.sequence size = '10' } %] | [% PROCESS input element_data = { name = 'suffix_' _ count type = 'text' value = seq.suffix size = '10' } %]
[% END; count = count + 1 # FOR seq %]
[% PROCESS input element_data = { type = 'checkbox' name = 'save_' _ count value = 1 checked = 'CHECKED' } %] | [% PROCESS input element_data = { type = 'checkbox' name = 'accept_input_' _ count value = 1 } %] | [% PROCESS input element_data = { type = 'text' name = 'label_' _ count size = 10 class = 'control_code' } %] | [% PROCESS select element_data = { name = 'setting_key_' _ count options = setting_keys text_attr = 'label', value_attr = 'name' } %] | [% PROCESS input element_data = { name = 'prefix_' _ count type = 'text' size = '10' } %] | [% PROCESS input element_data = { name = 'sequence_' _ count type = 'text' size = '10' } %] | [% PROCESS input element_data = { name = 'suffix_' _ count type = 'text' size = '10' } %]

[% PROCESS input element_data = { name = 'count' type = 'hidden' value = count } %]
[% PROCESS button element_data = { name = '__action' value = 'save_sequences' type = 'submit' class = 'submit' text = text('Save') 'data-lsmb-doing' = text('Saving...') 'data-lsmb-done' = text('Saved') } %]