KXStudio Website https://kx.studio/
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.

general_settings.twig 3.6KB

9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Site Configuration" | translate }{% endblock %}
  3. {% block content %}
  4. <form id="general_settings" class="split" action="{% admin "general_settings" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  5. <fieldset>
  6. <p>
  7. <label for="name">${ "Site Name" | translate }</label>
  8. <input class="text" type="text" name="name" value="${ site.name | escape }" id="name" />
  9. </p>
  10. <p>
  11. <label for="description">${ "Description" | translate }</label>
  12. <textarea name="description" rows="2" cols="40">${ site.description | escape(false, false) }</textarea>
  13. </p>
  14. <p>
  15. <label for="chyrp_url">${ "Chyrp URL" | translate }</label>
  16. <input class="text" type="text" name="chyrp_url" value="${ site.chyrp_url | escape }" id="chyrp_url" />
  17. </p>
  18. <p>
  19. <label for="url">
  20. ${ "Alternate URL" | translate }
  21. <span class="sub">${ "(optional)" | translate }</span>
  22. </label>
  23. <input class="text" type="text" name="url" value="{% if site.url != site.chyrp_url %}${ site.url | escape }{% endif %}" id="url" />
  24. <a href="{% admin "help&id=alternate_urls" %}" class="help emblem"><img src="$theme_url/images/icons/help.png" alt="help" /></a>
  25. <small>
  26. ${ "Enter an alternate address here if you want your homepage URL to be different from the URL where Chyrp is normally available." | translate }
  27. </small>
  28. </p>
  29. <p>
  30. <label for="email">${ "Contact E-Mail Address" | translate }</label>
  31. <input class="text" type="text" name="email" value="${ site.email | escape }" id="email" />
  32. </p>
  33. <p>
  34. <label for="timezone">${ "What time is it?" | translate }</label>
  35. <select name="timezone" id="timezone">
  36. {% for zone in timezones %}
  37. <option value="$zone.name"${ zone.name | option_selected(site.timezone) }>${ zone.now | strftime("%m/%d/%y %H:%M" | translate) } &mdash; ${ zone.name | replace("_", " ") | replace("St ", "St. ") }</option>
  38. {% endfor %}
  39. </select>
  40. </p>
  41. <p>
  42. <label for="locale">${ "Language" | translate }</label>
  43. <select name="locale" id="locale">
  44. {% for locale in locales %}
  45. <option value="$locale.code"${ locale.code | option_selected(site.locale) }>$locale.name</option>
  46. {% endfor %}
  47. <option value="en_US"${ "en_US" | option_selected(site.locale) }>English (US)</option>
  48. </select>
  49. </p>
  50. <p class="buttons">
  51. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Update" | translate }</button>
  52. </p>
  53. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  54. </fieldset>
  55. </form>
  56. {% endblock %}