2010-04-17 13:01:07 +02:00
|
|
|
## -- coding: utf-8 -- \
|
2009-01-22 23:32:19 +01:00
|
|
|
<%inherit file="base.mako" />
|
2009-01-21 16:11:39 +01:00
|
|
|
<%doc>
|
|
|
|
Template for the data input form.
|
2010-04-17 12:48:31 +02:00
|
|
|
Copyright © 2009, 2010 Jan Dittberner <jan@dittberner.info>
|
2009-01-21 16:11:39 +01:00
|
|
|
|
|
|
|
This file is part of DDPortfolio service.
|
|
|
|
|
|
|
|
DDPortfolio service is free software: you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Affero General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
DDPortfolio service is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public
|
|
|
|
License along with this program. If not, see
|
|
|
|
<http://www.gnu.org/licenses/>.
|
|
|
|
</%doc>
|
2009-01-22 23:32:19 +01:00
|
|
|
<%def name="titleaddon()">
|
|
|
|
- ${_('Enter your personal information')}
|
|
|
|
</%def>
|
2009-01-23 18:03:39 +01:00
|
|
|
<%def name="extrahead()">${h.javascript_link('/javascript/jquery/jquery.js',
|
2010-05-03 20:26:07 +02:00
|
|
|
h.url(controller='showformscripts', action='index'))}</%def>
|
|
|
|
${h.form(h.url(action='urllist', controller='ddportfolio'), method='get')}
|
2009-01-22 23:32:19 +01:00
|
|
|
<fieldset id="ddportfolio">
|
2012-01-07 00:44:00 +01:00
|
|
|
<legend>${_('Debian Member Portfolio')}</legend>
|
2009-01-23 18:03:39 +01:00
|
|
|
<div id="emailfield" \
|
|
|
|
% if 'email' in c.messages['errors']:
|
|
|
|
class="witherrors" \
|
|
|
|
% endif
|
|
|
|
>
|
2009-01-22 23:32:19 +01:00
|
|
|
<label for="email">${_('Email address:')}
|
|
|
|
% if 'email' in c.messages['errors']:
|
|
|
|
<br />
|
2009-02-10 21:15:04 +01:00
|
|
|
<span class="errormsg">${c.messages['errors']['email'] | h}</span>
|
2009-01-22 23:32:19 +01:00
|
|
|
% endif
|
|
|
|
</label><br />
|
2009-02-10 21:15:04 +01:00
|
|
|
${h.text('email',
|
|
|
|
h.escape(request.params.get('email', None), True), id='email')}<br />
|
2009-01-22 23:32:19 +01:00
|
|
|
</div>
|
2010-06-11 23:40:00 +02:00
|
|
|
<div id="showallfield" class="hidden">
|
2010-06-11 23:36:16 +02:00
|
|
|
${h.checkbox('showall', value='1', checked=False, id='showall')}
|
|
|
|
<label for="showall">${_(u'Show all form fields')}</label><br />
|
|
|
|
</div>
|
2009-01-23 18:03:39 +01:00
|
|
|
<div id="namefield" \
|
|
|
|
% if 'name' in c.messages['errors']:
|
|
|
|
class="witherrors" \
|
|
|
|
% endif
|
|
|
|
>
|
2009-01-22 23:32:19 +01:00
|
|
|
<label for="name">${_('Name:')}
|
|
|
|
% if 'name' in c.messages['errors']:
|
|
|
|
<br />
|
2009-02-10 21:15:04 +01:00
|
|
|
<span class="errormsg">${c.messages['errors']['name'] | h}</span>
|
2009-01-22 23:32:19 +01:00
|
|
|
% endif
|
|
|
|
</label><br />
|
2009-02-10 21:15:04 +01:00
|
|
|
${h.text('name',
|
|
|
|
h.escape(request.params.get('name', None)), id='name')}<br />
|
2009-01-22 23:32:19 +01:00
|
|
|
</div>
|
2010-06-11 23:35:32 +02:00
|
|
|
<div id="gpgfpfield">
|
2009-01-22 23:32:19 +01:00
|
|
|
<label for="gpgfp">${_('GPG fingerprint:')}
|
|
|
|
% if 'gpgfp' in c.messages['errors']:
|
|
|
|
<br />
|
2009-02-10 21:15:04 +01:00
|
|
|
<span class="errormsg">${c.messages['errors']['gpgfp'] | h}</span>
|
2009-01-22 23:32:19 +01:00
|
|
|
% endif
|
|
|
|
</label><br />
|
2009-02-10 21:15:04 +01:00
|
|
|
${h.text('gpgfp',
|
|
|
|
h.escape(request.params.get('gpgfp', None)),
|
2010-06-11 23:35:32 +02:00
|
|
|
id='gpgfp')}<br />
|
2009-01-22 23:32:19 +01:00
|
|
|
</div>
|
2009-01-23 18:03:39 +01:00
|
|
|
<div id="usernamefield" \
|
|
|
|
% if 'username' in c.messages['errors']:
|
|
|
|
class="witherrors" \
|
|
|
|
% endif
|
|
|
|
>
|
2009-01-22 23:32:19 +01:00
|
|
|
<label for="username">${_('Debian user name:')}
|
|
|
|
% if 'username' in c.messages['errors']:
|
|
|
|
<br />
|
2009-02-10 21:15:04 +01:00
|
|
|
<span class="errormsg">${c.messages['errors']['username'] | h}</span>
|
2009-01-22 23:32:19 +01:00
|
|
|
% endif
|
|
|
|
</label><br />
|
2009-02-10 21:15:04 +01:00
|
|
|
${h.text('username',
|
|
|
|
h.escape(request.params.get('username', None)),
|
|
|
|
id='username')}<br />
|
2009-01-22 23:32:19 +01:00
|
|
|
</div>
|
2009-01-23 18:03:39 +01:00
|
|
|
<div id="nonddemailfield" \
|
|
|
|
% if 'nonddemail' in c.messages['errors']:
|
|
|
|
class="witherrors" \
|
|
|
|
% endif
|
|
|
|
>
|
2012-01-07 00:44:00 +01:00
|
|
|
<label for="nonddemail">${_('Non Debian email address:') | h}
|
2009-01-22 23:32:19 +01:00
|
|
|
% if 'nonddemail' in c.messages['errors']:
|
|
|
|
<br />
|
2009-02-10 21:15:04 +01:00
|
|
|
<span class="errormsg">${c.messages['errors']['nonddemail'] | h}</span>
|
2009-01-22 23:32:19 +01:00
|
|
|
% endif
|
|
|
|
</label><br />
|
2009-02-10 21:15:04 +01:00
|
|
|
${h.text('nonddemail',
|
|
|
|
h.escape(request.params.get('nonddemail', None)),
|
|
|
|
id='nonddemail')}<br />
|
2009-01-22 23:32:19 +01:00
|
|
|
</div>
|
2009-01-23 18:03:39 +01:00
|
|
|
<div id="aliothusernamefield" \
|
|
|
|
% if 'aliothusername' in c.messages['errors']:
|
|
|
|
class="witherrors"
|
|
|
|
% endif
|
|
|
|
>
|
2009-01-22 23:32:19 +01:00
|
|
|
<label for="aliothusername">${_('Alioth user name:')}
|
|
|
|
% if 'aliothusername' in c.messages['errors']:
|
|
|
|
<br />
|
|
|
|
<span
|
2009-02-10 21:15:04 +01:00
|
|
|
class="errormsg">${c.messages['errors']['aliothusername'] | h}</span>
|
2009-01-22 23:32:19 +01:00
|
|
|
% endif
|
|
|
|
</label><br />
|
2009-02-10 21:15:04 +01:00
|
|
|
${h.text('aliothusername',
|
|
|
|
h.escape(request.params.get('username', None)),
|
|
|
|
id='aliothusername')}<br />
|
2009-01-22 23:32:19 +01:00
|
|
|
</div>
|
2010-06-12 00:02:17 +02:00
|
|
|
<div id="wikihomepagefield" \
|
|
|
|
% if 'wikihomepage' in c.messages['errors']:
|
|
|
|
class="witherrors"
|
|
|
|
% endif
|
|
|
|
>
|
|
|
|
<label for="wikihomepage">${_('Wiki user name:')}
|
|
|
|
% if 'wikihomepage' in c.messages['errors']:
|
|
|
|
<br />
|
|
|
|
<span class="errormsg">${c.messages['errors']['wikihomepage'] | h}</span>
|
|
|
|
% endif
|
|
|
|
</label><br />
|
|
|
|
${h.text('wikihomepage',
|
|
|
|
h.escape(request.params.get('wikihomepage', None)),
|
|
|
|
id='wikihomepage')}<br />
|
|
|
|
</div>
|
|
|
|
<div id="forumsidfield" \
|
|
|
|
% if 'forumsid' in c.messages['errors']:
|
|
|
|
class="witherrors"
|
|
|
|
% endif
|
|
|
|
>
|
|
|
|
<label for="forumsid">${_('Forum user id:')}
|
|
|
|
% if 'forumsid' in c.messages['errors']:
|
|
|
|
<br />
|
|
|
|
<span class="errormsg">${c.messages['errors']['forumsid'] | h}</span>
|
|
|
|
% endif
|
|
|
|
</label><br />
|
|
|
|
${h.text('forumsid',
|
|
|
|
h.escape(request.params.get('forumsid', None)),
|
|
|
|
id='forumsid')}<br />
|
|
|
|
</div>
|
2009-01-22 23:32:19 +01:00
|
|
|
<div id="modefield">
|
|
|
|
<label for="mode_html">${_('Output format:')}
|
|
|
|
% if 'mode' in c.messages['errors']:
|
|
|
|
<br />
|
2009-02-10 21:15:04 +01:00
|
|
|
<span class="errormsg">${c.messages['errors']['mode'] | h}</span>
|
2009-01-22 23:32:19 +01:00
|
|
|
% endif
|
|
|
|
</label><br />
|
|
|
|
${_('HTML')} ${h.radio('mode', 'html',
|
|
|
|
checked=(request.params.get('mode',
|
|
|
|
'html') == 'html'))} ${_('JSON')} ${h.radio('mode',
|
|
|
|
'json', checked=(request.params.get('mode', 'html') == 'json'))}<br />
|
2012-01-07 02:10:58 +01:00
|
|
|
${h.submit('submit', value=_('Build Debian Member Portfolio URLs'))}
|
2009-01-22 23:32:19 +01:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
${h.end_form()}
|