[% site_config.title = c.loc('Rewrite Rules for [_1]', set_result.name) -%]
[% c.loc('Back') %] [% back_created = 1 -%] [% UNLESS c.user.read_only -%] [% c.loc('Create Rewrite Rule') %] [% END -%]
[% IF messages -%]
[% FOREACH m IN messages -%]
[% m.text %]
[% END -%]
[% END -%]
[% MACRO show_rules BLOCK -%] [% FOR r IN m_rules %] [% END %]
[% c.loc('Match Pattern') %] [% c.loc('Replacement Pattern') %] [% c.loc('Description') %] [% c.loc('Enabled') %]
[% r.match_pattern %] [% r.replace_pattern %] [% r.description %] [% r.enabled ? c.loc('yes') : c.loc('no') %] [% UNLESS c.user.read_only -%] [% END -%]
[% END -%]
[% show_rules(m_rules = rules.caller_in) %]
[% show_rules(m_rules = rules.callee_in) %]
[% show_rules(m_rules = rules.caller_out) %]
[% show_rules(m_rules = rules.callee_out) %]
[% IF edit_flag || create_flag -%] [% PROCESS "helpers/modal.tt"; modal_header(m.name = c.loc('Rule'), m.create_flag = create_flag); translate_form(form).render(); modal_footer(); modal_script(m.close_target = rules_uri); -%] [% END -%] [% # vim: set tabstop=4 syntax=html expandtab: -%]