-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lung
committed
Dec 9, 2023
1 parent
9892041
commit 797ce80
Showing
9 changed files
with
182 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "_layout.twig" %} | ||
|
||
{% block content %} | ||
<div class="card card-half paid-theme"> | ||
<h2>{% trans %}stats-admin.changeRole{% endtrans %}</h2> | ||
<div> | ||
<h4>{{ person.getFullName }}</h4> | ||
{% trans %}detail.email{% endtrans %}: <b>{{ person.getEmail }}</b><br/> | ||
{% trans %}detail.notice{% endtrans %}: <b>{{ person.getNotes }}</b><br/> | ||
{% include 'widgets/adminNotice.twig' with {'participantId': person.id} %}<br/> | ||
</div> | ||
<form | ||
method="POST" | ||
action="{{ url_for('admin-change-role', {'eventSlug': event.slug, 'participantId': person.id}) }}" | ||
class="form-group" | ||
> | ||
<div class="form-group"> | ||
<label for="country">{% trans %}stats-admin.role{% endtrans %}:</label> | ||
<select | ||
id="role" | ||
class="form-control form-wide" | ||
name="role" | ||
> | ||
{% for role in roles %} | ||
<option | ||
value="{{ role.value }}" | ||
{% if person.role == role %} selected="selected"{% endif %} | ||
>{{ dump }} | ||
{{ ('role.' ~ role.value)|trans }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<input class="btn" type="submit" value="{% trans %}stats-admin.changeRole{% endtrans %}"> | ||
</form> | ||
<a href="{{ url_for('admin-show-open', {'eventSlug': event.slug}) }}" | ||
class="btn btn-grey btn-small">{% trans %}changeDetails.back{% endtrans %}</a> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters