RSS Git Download  Clone
Raw Blame History
[% # returns array built from followup_options hash, sorted by 'position' col:
    option_list = [];
    FOREACH o IN followup_options; # INCLUDE dumper.tt dump = o;
        # array index = value of position col minus 1:
        array_index = o.value.position - 1; # INCLUDE dumper.tt dump = array_index;
        option_list.${array_index} = {
            label => o.value.label,
            id    => o.key,
        };
    END; # INCLUDE dumper.tt dump = option_list;
%]