## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="title()"> ${_('Settings administration')} - ${c.rhodecode_name} <%def name="breadcrumbs_links()"> ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Settings')} <%def name="page_nav()"> ${self.menu('admin')} <%def name="main()">
${self.breadcrumbs()}

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

% for hook in c.hooks:
${h.text(hook.ui_key,hook.ui_value,size=60,readonly="readonly")}
% endfor

${_('Custom hooks')}

${h.form(url('admin_setting', setting_id='hooks'),method='put')}
% 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)} ${_('remove')}
% endfor
${h.text('new_hook_ui_key',size=30)}
${h.text('new_hook_ui_value',size=60)}
${h.submit('save','Save',class_="ui-button")}
${h.end_form()}