Rename manual modal template

This commit is contained in:
Patrick Jentsch 2023-03-20 16:02:12 +01:00
parent 685db81c85
commit f2bbcdc441
3 changed files with 36 additions and 3 deletions

View File

@ -8,7 +8,6 @@
</div>
<div class="col s12 m4">
<h2>{{ user.username }}</h2>
<p id="description">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,</p>
<a class="waves-effect waves-light btn" href="{{ url_for('.users') }}"><i class="material-icons left">arrow_back</i>Back to Users</a>
</div>
@ -26,7 +25,19 @@
<li>Confirmed status: {{ user.confirmed }}</li>
<li>Last seen: {{ user.last_seen }}</li>
<li>Permissions as Int: {{ user.role.permissions }}</li>
<li>Role name: {{ user.role.name }}</li>
<li>Role: {{ user.role.name }}</li>
<li>Permissions:
<ul style="margin-left: 25px;">
{% for permission in ['ADMINISTRATE', 'CONTRIBUTE', 'USE_API'] %}
<li>
<label>
<input type="checkbox" {{ 'checked' if user.can(permission) }}>
<span>{{ permission|capitalize }}</span>
</label>
</li>
{% endfor %}
</ul>
</li>
</ul>
</div>
<div class="card-action right-align">
@ -53,6 +64,28 @@
</div>
</div>
</div>
<div class="col s12">
<h2>Contributions</h2>
</div>
<div class="col s12 l6">
<h3>SpaCy NLP Pipeline Models</h3>
<div class="card">
<div class="card-content">
<div class="spacy-nlp-pipeline-model-list" data-user-id="{{ user.hashid }}"></div>
</div>
</div>
</div>
<div class="col s12 l6">
<h3>Tesseract OCR Pipeline Models</h3>
<div class="card">
<div class="card-content">
<div class="tesseract-ocr-pipeline-model-list" data-user-id="{{ user.hashid }}"></div>
</div>
</div>
</div>
</div>
</div>
{% endblock page_content %}

View File

@ -34,7 +34,7 @@
{% block page_content %}{% endblock page_content %}
<div id="modals">
{% block modals %}
{% include "main/_manual_modal_contents.html.j2" %}
{% include "main/_manual_modal.html.j2" %}
{# {% if current_user.is_authenticated %}
{% include "_roadmap.html.j2" %}
{% endif %} #}