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.

site-option.twig 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <div class="header">
  2. <h1>Site Options</h1>
  3. </div>
  4. <table width="100%">
  5. <tr class="colhead">
  6. <td>Name</td>
  7. <td>Value</td>
  8. <td>Comment</td>
  9. {% if is_admin %}
  10. <td>Manage</td>
  11. {% endif %}
  12. </tr>
  13. {% if is_admin %}
  14. <tr class="rowa">
  15. <form class="create_form" name="site_option" action="" method="post">
  16. <td title="Words must be separated by dashes or underscores">
  17. <input type="text" size="40" name="name" />
  18. </td>
  19. <td>
  20. <input type="text" size="20" name="value" />
  21. </td>
  22. <td>
  23. <input type="text" size="75" name="comment" />
  24. </td>
  25. <td>
  26. <input type="hidden" name="action" value="site_options" />
  27. <input type="hidden" name="auth" value="{{ auth }}" />
  28. <input type="submit" name="submit" value="Create" />
  29. </td>
  30. </form>
  31. </tr>
  32. {% endif %}
  33. {% for opt in list %}
  34. <tr class="row{{ cycle(['a', 'b'], loop.index0) }}">
  35. {% if is_admin %}
  36. <form class="manage_form" name="site_option" action="" method="post">
  37. <td><input type="text" size="40" name="name" value="{{ opt.name }}" /></td>
  38. <td><input type="text" size="20" name="value" value="{{ opt.value }}" /></td>
  39. <td><input type="text" size="75" name="comment" value="{{ opt.comment }}" /></td>
  40. <td>
  41. <input type="hidden" name="action" value="site_options" />
  42. <input type="hidden" name="auth" value="{{ auth }}" />
  43. <input type="hidden" name="id" value="{{ opt.id }}" />
  44. <input type="submit" name="submit" value="Edit" />
  45. <input type="submit" name="submit" value="Delete" />
  46. </td>
  47. </form>
  48. {% else %}
  49. <td>{{ opt.name }}</td>
  50. <td>{{ opt.value }}</td>
  51. <td>{{ opt.comment }}</td>
  52. {% endif %}
  53. </tr>
  54. {% endfor %}
  55. </table>