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

% for hook in c.hooks:
${h.text(hook.ui_key,hook.ui_value,size=59,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.')}

${_('Custom hooks')}

% if c.visual.allow_custom_hooks_settings: ${h.secure_form(h.url('admin_settings_hooks'), request=request)}
% 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=59)} ${_('Delete')}
% endfor
${h.text('new_hook_ui_key',size=30)}
${h.text('new_hook_ui_value',size=59)}
${h.submit('save',_('Save'),class_="btn")}
${h.end_form()} %else: DISABLED % endif