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/resources/views/yuuno/settings/account/ranks.twig

25 lines
1.3 KiB
Twig
Raw Normal View History

{% extends 'settings/account/master.twig' %}
{% set mode = 'Ranks' %}
{% block description %}
<p>Manage what ranks you're in and what is set as your main rank. Your main rank is highlighted. You get the permissions of all of the ranks you're in combined.</p>
{% endblock %}
{% block settingsContent %}
2016-11-12 01:52:51 +00:00
<div style="text-align: center">
2016-09-09 22:47:14 +00:00
{% for rank in user.ranks %}
2016-11-12 01:52:51 +00:00
<form method="post" action="{{ route('settings.account.ranks') }}" class="friend-box {% if rank.id == user.mainRankId %}friend-box--active{% endif %}">
2016-09-09 22:47:14 +00:00
<input type="hidden" name="session" value="{{ session_id() }}">
<input type="hidden" name="rank" value="{{ rank.id }}">
2016-11-12 01:52:51 +00:00
<button class="friend-box__container" name="mode" value="main">
<div class="friend-box__name" style="color: {{ rank.colour }}">{{ rank.name }}</div>
2016-09-09 22:47:14 +00:00
</button>
2016-11-12 01:52:51 +00:00
<div class="friend-box__actions">
<button title="{% if rank.id in locked %}You can't leave this rank{% else %}Leave rank{% endif %}" class="friend-box__action friend-box__action--red fa fa-{% if rank.id in locked %}shield{% else %}remove{% endif %}" name="mode" value="remove" {% if rank.id in locked %}disabled{% endif %}></button>
2016-09-09 22:47:14 +00:00
</div>
</form>
{% endfor %}
</div>
{% endblock %}