[%# Produces a single quick edit table. Parameters: table_ident - the table which owns all the fields fields - array of fields for this table view.data needs at least these keys (like do_main provides): statements %]
Field Quick Edit [% FOREACH statement IN view.data.statements.field.statements %] [% IF statement.quick_label %] [% END %] [% END %] [% FOREACH field IN fields %] [% NEXT UNLESS field.type == 'field' %] [% NEXT IF field.name == 'id' %] [% FOREACH statement IN view.data.statements.field.statements %] [% IF statement.quick_label %] [% END %] [% END %] [% END %]
Column Name [% statement.quick_label %]
[% n_of_fields = 0 n_of_set_fields = 0 %] [% IF statement.type == 'boolean' %] [%# count the checked boxes %] [% FOREACH field IN fields %] [% NEXT UNLESS field.type == 'field' %] [% NEXT IF field.name == 'id' %] [% n_of_fields = n_of_fields + 1 %] [% IF field.statements.${statement.keyword}.get_first_arg %] [% n_of_set_fields = n_of_set_fields + 1 %] [% END %] [% END %] [% END %]
[% IF statement.type == 'boolean' %] [% ELSE %] [% END %]