This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/templates/misaki/settings/general.options.twig

19 lines
1.1 KiB
Twig
Raw Normal View History

<form enctype="multipart/form-data" method="post" action="{{ sakura.currentPage }}" class="box">
2016-03-27 22:15:51 +00:00
<input type="hidden" name="sessid" value="{{ session_id() }}" />
<input type="hidden" name="timestamp" value="{{ date().timestamp }}" />
<input type="hidden" name="mode" value="options" />
{% for field in options.fields %}
<div>
<div>
<h2>{{ field.option_name }}</h2>
<h4>{{ field.option_description }}</h4>
</div>
<div>
<input type="{{ field.option_type }}" name="option_{{ field.option_id }}" class="inputStyling"{% if user.optionFields[field.option_id] %}{% if field.option_type == 'checkbox' and user.optionFields[field.option_id] %} checked="checked" value="option_{{ field.option_id }}"{% else %} value="{{ user.optionFields[field.option_id] }}"{% endif %}{% endif %} />
2015-08-21 22:07:45 +00:00
</div>
</div>
{% endfor %}
<input type="submit" value="Save" name="submit" class="inputStyling" />
<input type="reset" value="Reset" name="reset" class="inputStyling" />
</form>