mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 08:09:37 +00:00
81 lines
2.2 KiB
HTML
81 lines
2.2 KiB
HTML
{% extends "layout.html" %}
|
|
{% from "_macros.html" import render_roles %}
|
|
{%- block title -%}
|
|
{{ _('Profile') }}
|
|
{%- endblock -%}
|
|
{% block content %}
|
|
|
|
<h1>{{ current_user.email }}</h1>
|
|
|
|
<h2>{{ _('Profile') }}</h2>
|
|
|
|
<div class="list-group">
|
|
<a href="{{ url_for('security.change_password') }}" class="list-group-item">
|
|
{{ _fsdomain('Change password') }}
|
|
<i class="fa fa-caret-right"></i>
|
|
</a>
|
|
</div>
|
|
|
|
<h2>{{ _('Settings') }}</h2>
|
|
|
|
<div class="list-group">
|
|
<a href="{{ url_for('oauth2_tokens') }}" class="list-group-item">
|
|
{{ _('Applications') }}
|
|
<i class="fa fa-caret-right"></i>
|
|
</a>
|
|
</div>
|
|
|
|
{% if current_user.has_permission('oauth2_client:read') %}
|
|
<h2>{{ _('Developer') }}</h2>
|
|
|
|
<div class="list-group">
|
|
<a href="{{ url_for('oauth2_clients') }}" class="list-group-item">
|
|
{{ _('OAuth2 clients') }}
|
|
<i class="fa fa-caret-right"></i>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if invitations %}
|
|
<h2>{{ _('Invitations') }}</h2>
|
|
<div class="table-responsive">
|
|
<table class="table table-sm table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ _('Name') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for invitation in invitations %}
|
|
<tr>
|
|
<td><a href="{{ url_for('admin_unit_member_invitation', id=invitation.id) }}">{{ invitation.adminunit.name }}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if admin_unit_members %}
|
|
<h2>{{ _('Organizations') }}</h2>
|
|
<div class="table-responsive">
|
|
<table class="table table-sm table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ _('Name') }}</th>
|
|
<th>{{ _('Roles') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for member in admin_unit_members %}
|
|
<tr>
|
|
<td><a href="{{ url_for('manage_admin_unit', id=member.adminunit.id) }}">{{ member.adminunit.name }}</a></td>
|
|
<td>{{ render_roles(member.roles)}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %} |