Files
@ 664a5b8c551a
Branch filter:
Location: kallithea/pylons_app/templates/admin/settings/settings.html - annotation
664a5b8c551a
1.7 KiB
text/html
Added application settings, are now customizable from database
fixed all instances of sqlachemy to be removed() after execution.
fixed all instances of sqlachemy to be removed() after execution.
51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b 51362853ac3b e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd 664a5b8c551a e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd 664a5b8c551a e8fc875467bd e8fc875467bd e8fc875467bd 664a5b8c551a e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd e8fc875467bd 51362853ac3b 51362853ac3b | ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Settings administration')}
</%def>
<%def name="breadcrumbs()">
${h.link_to(u'Admin',h.url('admin_home'))}
/
${_('Settings')}
</%def>
<%def name="page_nav()">
${self.menu('admin')}
${self.submenu('settings')}
</%def>
<%def name="main()">
<div>
<h2>${_('Settings administration')}</h2>
${h.form(url('admin_setting', id='mapping'),method='put')}
<table class="table_disp">
<tr class="header">
<td colspan="2">${_('Remap and rescan repositories')}</td>
</tr>
<tr align="right">
<td><span class="tooltip" tooltip_title="${h.tooltip(_('In case a repository was deleted from filesystem and there are leftovers in the database check this option to scan obsolete data in database and remove it.'))}">
${_('destroy old data')}</span> ${h.checkbox('destroy',True)}</td>
<td>${h.submit('rescan','rescan repositories')}</td>
</table>
${h.end_form()}
<br/>
${h.form(url('admin_setting', id='global'),method='put')}
<table class="table_disp">
<tr class="header">
<td colspan="3">${_('Global application settings')}</td>
</tr>
<tr>
<td>${_('Application name')}</td>
<td>${h.text('app_title',size=30)}${self.get_form_error('app_title')}</td>
</tr>
<tr>
<td>${_('Realm text')}</td>
<td>${h.text('app_auth_realm',size=30)}${self.get_form_error('app_auth_realm')}</td>
</tr>
<tr>
<td></td>
<td>${h.submit('save','save settings')}</td>
</tr>
</table>
${h.end_form()}
</div>
</%def>
|