phpcomposeryggdrasilbittorrentjs-lessalt-websymfonysphinxsocial-networkcatalogtorrentmagnetwikidistributedfederatedsqlitetracker
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.
140 lines
7.0 KiB
140 lines
7.0 KiB
1 year ago
|
{% extends 'default/layout.html.twig' %}
|
||
1 year ago
|
{% block title %}{{ 'Settings' | trans }} - {{ name }}{% endblock %}
|
||
1 year ago
|
{% block main_content %}
|
||
1 year ago
|
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
|
||
1 year ago
|
<form name="profile" action="{{ path('user_settings') }}" method="post">
|
||
|
<h1>{{ 'Settings' | trans }} </h1>
|
||
1 year ago
|
<table class="width-100">
|
||
|
<tbody>
|
||
|
<tr>
|
||
1 year ago
|
<td class="padding-b-8-px border-bottom-default text-right" colspan="2">
|
||
|
{{ 'Interface' | trans }}
|
||
1 year ago
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="padding-t-16-px">
|
||
1 year ago
|
{{ 'Theme' | trans }}
|
||
1 year ago
|
</td>
|
||
1 year ago
|
<td class="padding-t-16-px">
|
||
|
<select name="theme">
|
||
|
{% for theme in themes %}
|
||
|
{% if theme == user.theme %}
|
||
|
<option value="{{ theme }}" selected="selected">
|
||
|
{{ theme | u.title }}
|
||
|
</option>
|
||
|
{% else %}
|
||
|
<option value="{{ theme }}">
|
||
|
{{ theme | u.title }}
|
||
|
</option>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</select>
|
||
1 year ago
|
</td>
|
||
1 year ago
|
</tr>
|
||
|
<tr>
|
||
1 year ago
|
<td class="padding-t-16-px">{{ 'Language' | trans }}</td>
|
||
1 year ago
|
<td class="padding-t-16-px">
|
||
|
<select name="locale">
|
||
|
{% for locale in locales %}
|
||
|
{% if locale == user.locale %}
|
||
|
<option value="{{ locale }}" selected="selected">
|
||
|
{{ locale|locale_name(locale)|u.title }}
|
||
|
</option>
|
||
|
{% else %}
|
||
|
<option value="{{ locale }}">
|
||
|
{{ locale|locale_name(locale)|u.title }}
|
||
|
</option>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
1 year ago
|
<td class="padding-b-8-px border-bottom-default text-right" colspan="2">
|
||
|
{{ 'Search' | trans }}
|
||
1 year ago
|
</td>
|
||
1 year ago
|
</tr>
|
||
|
<tr>
|
||
|
<td class="padding-t-16-px">
|
||
|
{{ 'Languages' | trans }}
|
||
|
</td>
|
||
|
<td class="padding-t-16-px">
|
||
1 year ago
|
{% for locale in locales %}
|
||
1 year ago
|
<div class="padding-y-4-px">
|
||
|
{% if locale in user.locales %}
|
||
|
<input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" checked="checked" />
|
||
|
{% else %}
|
||
|
<input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" />
|
||
|
{% endif %}
|
||
|
<label for="{{ locale }}">
|
||
1 year ago
|
{{ locale|locale_name(locale)|u.title }}
|
||
1 year ago
|
</label>
|
||
|
</div>
|
||
1 year ago
|
{% endfor %}
|
||
1 year ago
|
</td>
|
||
|
</tr>
|
||
1 year ago
|
<tr>
|
||
1 year ago
|
<td class="padding-t-8-px">
|
||
|
{{ 'Sensitive' | trans }}
|
||
1 year ago
|
</td>
|
||
|
<td>
|
||
1 year ago
|
<div class="padding-t-8-px">
|
||
1 year ago
|
{% if user.sensitive %}
|
||
|
<input name="sensitive" type="checkbox" value="true" checked="checked" />
|
||
|
{% else %}
|
||
|
<input name="sensitive" type="checkbox" value="true" />
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
1 year ago
|
<tr>
|
||
|
<td class="padding-b-8-px border-bottom-default text-right" colspan="2">
|
||
|
{{ 'Events' | trans }}
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% for group, event in events %}
|
||
|
<tr>
|
||
|
<td class="padding-t-16-px">
|
||
|
{{ group }}
|
||
|
</td>
|
||
|
<td class="padding-t-16-px">
|
||
|
{% for key, value in event %}
|
||
|
<span class="margin-r-8-px">
|
||
|
{% if value in user.events %}
|
||
|
<input name="events[]" id="event-{{ value }}" type="checkbox" value="{{ value }}" checked="checked" />
|
||
|
{% else %}
|
||
|
<input name="events[]" id="event-{{ value }}" type="checkbox" value="{{ value }}" />
|
||
|
{% endif %}
|
||
|
<label for="event-{{ value }}">
|
||
|
{{ key }}
|
||
|
</label>
|
||
|
</span>
|
||
|
{% endfor %}
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
<tr>
|
||
|
<td class="padding-b-8-px border-bottom-default text-right" colspan="2">
|
||
|
{{ 'Downloads' | trans }}
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="padding-y-16-px">
|
||
|
{{ 'Yggdrasil filter' | trans }}
|
||
|
</td>
|
||
|
<td class="padding-y-16-px">
|
||
|
{% if user.yggdrasil %}
|
||
|
<input name="yggdrasil" type="checkbox" value="true" checked="checked" />
|
||
|
{% else %}
|
||
|
<input name="yggdrasil" type="checkbox" value="true" />
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
</tr>
|
||
1 year ago
|
</tbody>
|
||
|
</table>
|
||
|
<div class="text-right">
|
||
1 year ago
|
<input class="button-green" type="submit" value="{{ 'Save' | trans }}" />
|
||
1 year ago
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
1 year ago
|
{% endblock %}
|