|
- {% extends "layout.twig" %}
-
- {% block title %}${ "Site Configuration" | translate }{% endblock %}
-
- {% block content %}
- <form id="general_settings" class="split" action="{% admin "general_settings" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
- <fieldset>
- <p>
- <label for="name">${ "Site Name" | translate }</label>
- <input class="text" type="text" name="name" value="${ site.name | escape }" id="name" />
- </p>
- <p>
- <label for="description">${ "Description" | translate }</label>
- <textarea name="description" rows="2" cols="40">${ site.description | escape(false, false) }</textarea>
- </p>
- <p>
- <label for="chyrp_url">${ "Chyrp URL" | translate }</label>
- <input class="text" type="text" name="chyrp_url" value="${ site.chyrp_url | escape }" id="chyrp_url" />
- </p>
- <p>
- <label for="url">
- ${ "Alternate URL" | translate }
- <span class="sub">${ "(optional)" | translate }</span>
- </label>
- <input class="text" type="text" name="url" value="{% if site.url != site.chyrp_url %}${ site.url | escape }{% endif %}" id="url" />
- <a href="{% admin "help&id=alternate_urls" %}" class="help emblem"><img src="$theme_url/images/icons/help.png" alt="help" /></a>
- <small>
- ${ "Enter an alternate address here if you want your homepage URL to be different from the URL where Chyrp is normally available." | translate }
- </small>
- </p>
- <p>
- <label for="email">${ "Contact E-Mail Address" | translate }</label>
- <input class="text" type="text" name="email" value="${ site.email | escape }" id="email" />
- </p>
- <p>
- <label for="timezone">${ "What time is it?" | translate }</label>
- <select name="timezone" id="timezone">
- {% for zone in timezones %}
- <option value="$zone.name"${ zone.name | option_selected(site.timezone) }>${ zone.now | strftime("%m/%d/%y %H:%M" | translate) } — ${ zone.name | replace("_", " ") | replace("St ", "St. ") }</option>
- {% endfor %}
- </select>
- </p>
- <p>
- <label for="locale">${ "Language" | translate }</label>
- <select name="locale" id="locale">
- {% for locale in locales %}
- <option value="$locale.code"${ locale.code | option_selected(site.locale) }>$locale.name</option>
- {% endfor %}
- <option value="en_US"${ "en_US" | option_selected(site.locale) }>English (US)</option>
- </select>
- </p>
-
- <p class="buttons">
- <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Update" | translate }</button>
- </p>
-
- <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
- </fieldset>
- </form>
- {% endblock %}
|