BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apply.twig 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {% from 'macro/form.twig' import selected %}
  2. <div class="thin">
  3. <div class="header">
  4. <h3>Apply for a role at {{ constant('SITE_NAME') }}</h3>
  5. {% if is_admin or is_applicant %}
  6. <div class="linkbox">
  7. {% if is_admin %}
  8. <a href="/apply.php?action=view" class="brackets">Current applications</a>
  9. <a href="/apply.php?action=view&amp;status=resolved" class="brackets">Resolved applications</a>
  10. <a href="/apply.php?action=admin" class="brackets">Manage roles</a>
  11. {% else %}
  12. <a href="/apply.php?action=view" class="brackets">View your application</a>
  13. {% endif %}
  14. </div>
  15. {% endif %}
  16. </div>
  17. {% for role_id, role in list %}
  18. {% if loop.first %}
  19. <div class="box">
  20. <div class="head">Open Roles</div>
  21. <div class="pad">
  22. <table>
  23. {% endif %}
  24. <tr>
  25. <td><div class="head">{{ role.title }}</div></td>
  26. </tr>
  27. <tr>
  28. <td><div class="pad">{{ role.description|bb_format }}</div></td>
  29. </tr>
  30. {% if loop.last %}
  31. </table>
  32. </div>
  33. </div>
  34. {% endif %}
  35. {% else %}
  36. <div class="box pad">
  37. <p>Thanks for your interest in helping {{ constant('SITE_NAME') }}! There are
  38. no openings at the moment. Keep an eye on the front page
  39. or the forum for announcements in the future.</p>
  40. </div>
  41. {% endfor %}
  42. {% if list %}
  43. {% if error %}
  44. <div class="important">{{ error }}</div>
  45. {% endif %}
  46. <form class="send_form" id="applicationform" name="apply" action="/apply.php?action=save" method="post">
  47. <div class="box">
  48. <div id="quickpost">
  49. <div class="head">Your Role at {{ constant('SITE_NAME') }}</div>
  50. <div class="pad">
  51. <div>Choose a role from the following list:</div>
  52. <select name="role">
  53. <option value="">---</option>
  54. {% for role in list %}
  55. <option value="{{ role.role_id }}"{{ selected(role.title == title) }}>{{ role.title }}</option>
  56. {% endfor %}
  57. </select>
  58. </div>
  59. <div class="head">Your cover letter</div>
  60. <div class="pad">Give us least 80 characters to convince us!
  61. {{ body.emit|raw }}
  62. </div>
  63. </div>
  64. <div class="pad preview_submit">
  65. <input type="hidden" name="auth" value="{{ auth }}" />
  66. {{ body.button|raw }}
  67. <input type="submit" value="Send Application" />
  68. </div>
  69. </div>
  70. </form>
  71. {% endif %}
  72. </div>