${_('Built in Mercurial hooks - read only')}

% for hook in c.hooks:
${h.text(hook.ui_key,hook.ui_value,size=60,readonly="readonly")}
% endfor
${_('Hooks can be used to trigger actions on certain events such as push / pull. They can trigger Python functions or external applications.')}
% if c.visual.allow_custom_hooks_settings:

${_('Custom hooks')}

${h.form(url('admin_settings_hooks'), method='post')}
% for hook in c.custom_hooks:
${h.hidden('hook_ui_key',hook.ui_key)} ${h.hidden('hook_ui_value',hook.ui_value)} ${h.text('hook_ui_value_new',hook.ui_value,size=60)} ${_('delete')}
% endfor
${h.text('new_hook_ui_key',size=30)}
${h.text('new_hook_ui_value',size=60)}
${h.submit('save',_('Save'),class_="btn")}
${h.end_form()} % endif