Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

104 lines
4.6KB

  1. {% extends "base.html" %}
  2. {#
  3. Template for the data input form.
  4. Copyright © 2009-2015 Jan Dittberner <jan@dittberner.info>
  5. This file is part of the Debian Member Portfolio service.
  6. Debian Member Portfolio service is free software: you can redistribute it
  7. and/or modify it under the terms of the GNU Affero General Public License as
  8. published by the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Debian Member Portfolio service is distributed in the hope that it will be
  11. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
  13. General Public License for more details.
  14. You should have received a copy of the GNU Affero General Public License along
  15. with this program. If not, see <https://www.gnu.org/licenses/>.
  16. #}
  17. {% block title %}{{ super()}} - {{ _('Enter your personal information') }}{% endblock %}
  18. {% block extrahead %}{{ super() }}<script type="text/javascript" src="{{ url_for('static', filename='javascript/jquery/jquery.js') }}"></script>
  19. <script type="text/javascript" src="{{ url_for('formhelper_js') }}"></script>
  20. {% endblock %}
  21. {% block body %}{{ super() }}
  22. <form action="{{ url_for('urllist') }}" method="get">
  23. <fieldset id="portfolio">
  24. <legend>{{ _('Debian Member Portfolio') }}</legend>
  25. <div id="emailfield"{% if form.email.errors %} class="witherrors"{% endif %}>
  26. <label for="email">{{ _('Email address:') }}
  27. {% if form.email.errors %}<br />
  28. <span class="errormsg">{{ form.email.errors|join(', ') }}</span>
  29. {% endif %}
  30. </label><br />
  31. {{ form.email }}<br />
  32. </div>
  33. <div id="showallfield" class="hidden">
  34. <input type="checkbox" id="showall" name="showall"/>
  35. <label for="showall">{{ _('Show all form fields') }}</label><br />
  36. </div>
  37. <div id="namefield"{% if form.name.errors %} class="witherrors"{% endif %}>
  38. <label for="name">{{ _('Name:') }}{% if form.name.errors %}<br />
  39. <span class="errormsg">{{ form.name.errors|join(', ') }}</span>
  40. {% endif %}
  41. </label><br />
  42. {{ form.name }}
  43. </div>
  44. <div id="gpgfpfield"{% if form.gpgfp.errors %} class="witherrors"{% endif %}>
  45. <label for="gpgfp">{{ _('GPG fingerprint:') }}{% if form.gpgfp.errors %}<br />
  46. <span class="errormsg">{{ form.gpgfp.errors|join(', ') }}</span>
  47. {% endif %}
  48. </label><br />
  49. {{ form.gpgfp }}
  50. </div>
  51. <div id="usernamefield"{% if form.username.errors %} class="witherrors"{% endif %}>
  52. <label for="username">{{ _('Debian user name:') }}{% if form.username.errors %}<br />
  53. <span class="errormsg">{{ form.username.errors|join(', ') }}</span>
  54. {% endif %}
  55. </label><br />
  56. {{ form.username }}
  57. </div>
  58. <div id="nonddemailfield"{% if form.nonddemail.errors %} class="witherrors"{% endif %}>
  59. <label for="nonddemail">{{ _('Non Debian email address:') }}{% if form.nonddemail.errors %}<br />
  60. <span class="errormsg">{{ form.nonddemail.errors|join(', ') }}</span>
  61. {% endif %}
  62. </label><br />
  63. {{ form.nonddemail }}
  64. </div>
  65. <div id="salsausernamefield"{% if form.salsausername.errors %} class="witherrors"{% endif %}>
  66. <label for="salsausername">{{ _('Salsa user name:') }}{% if form.salsausername.errors %}<br />
  67. <span class="errormsg">{{ form.salsausername.errors|join(', ') }}</span>
  68. {% endif %}
  69. </label><br />
  70. {{ form.salsausername }}
  71. </div>
  72. <div id="wikihomepagefield"{% if form.wikihomepage.errors %} class="witherrors"{% endif %}>
  73. <label for="wikihomepage">{{ _('Wiki user name:') }}{% if form.wikihomepage.errors %}<br />
  74. <span class="errormsg">{{ form.wikihomepage.errors|join(', ') }}</span>
  75. {% endif %}
  76. </label><br />
  77. {{ form.wikihomepage }}
  78. </div>
  79. <div id="forumsidfield"{% if form.forumsid.errors %} class="witherrors"{% endif %}>
  80. <label for="forumsid">{{ _('Forum user id:') }}{% if form.forumsid.erros %}<br />
  81. <span class="errormsg">{{ form.forumsid.errors|join(', ') }}</span>
  82. {% endif %}
  83. </label><br />
  84. {{ form.forumsid }}
  85. </div>
  86. <div id="modefield"{% if form.mode.errors %} class="witherrors"{% endif %}>
  87. <label for="mode">{{ _('Output format:') }}{% if form.mode.errors %}<br />
  88. <span class="errormsg">{{ form.mode.errors|join(', ') }}</span>
  89. {% endif %}
  90. </label><br />
  91. {% for subfield in form.mode %}
  92. {{ subfield.label }}&#160;{{ subfield }}
  93. {% endfor %}<br />
  94. <input type="submit" value="{{ _('Build Debian Member Portfolio URLs') }}" />
  95. </div>
  96. </fieldset>
  97. </form>
  98. {% endblock %}