Implement project + remove useless config

This commit is contained in:
2025-04-02 17:16:54 +02:00
parent 3422412bbf
commit 34d1506483
18 changed files with 502 additions and 70 deletions

View File

@@ -0,0 +1,41 @@
{% extends 'base.html.twig' %}
{% block title %}Progetti | WebArchi{% endblock %}
{% block body %}
{% include 'partials/navbar.html.twig' %}
<div class="container" style="max-width: 50vw">
<h1 class="is-size-1 mt-2 has-text-centered">Progetti</h1>
<table class="table is-striped is-fulldwidth m-6 is-hoverable has-text-centered">
<tr><th class="has-text-centered">Architettura</th><th class="has-text-centered">File IFC</th><th class="has-text-centered">Data creazione</th><th class="has-text-centered">Ultima modifica</th><th class="has-text-centered">Azioni</th></tr>
{% for project in projects %}
<tr>
<td>{{ project.building.name }}</td>
<td>{{ project.ifc }}</td>
<td>{{ project.createdAt.format('Y-m-d') }}</td>
<td>{{ project.lastModified.format('Y-m-d H:i:s') }}</td>
<td>
<div class="buttons">
<button class="button is-small is-link" title="Modifica">
<span class="icon">
<i class="bi bi-pencil-fill"></i>
</span>
</button>
<button class="button is-small is-danger" title="Elimina">
<span class="icon">
<i class="bi bi-trash-fill"></i>
</span>
</button>
<button class="button is-small is-primary" title="Condividi">
<span class="icon">
<i class="bi bi-share-fill"></i>
</span>
</button>
</div>
</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}

View File

@@ -19,7 +19,7 @@
<p class="title is-4">{{ app.user.useridentifier }}</p>
<p class="subtitle is-6">
<span class="icon is-small">
<i class="fa fa-envelope"></i>
<i class="bi bi-envelope"></i>
</span>
{{ app.user.email ?? 'no email' }}
</p>
@@ -40,7 +40,7 @@
<div class="message-header">
<p>
<span class="icon is-small is-size-5 mr-3">
<i class="fa fa-info-circle"></i>
<i class="bi bi-info-circle"></i>
</span>
Permessi
</p>
@@ -48,12 +48,8 @@
<div class="message-body">
{% if 'ROLE_ADMIN' in app.user.roles %}
<p>
Administrators can create and edit users of the ArCOA data entry system,
including changing passwords and user roles, and disabling accounts.
</p>
<p>
They can perform all actions on all records and vocabularies
(create, view, edit, delete).
Gli amministratori possono creare e modificare utenti in WebArchi,
cambiare password e ruoli utente, e disabilitare account.
</p>
{% elseif 'ROLE_REVISOR' in app.user.roles %}
<p>Revisors can perform all actions (create, view, edit, delete) on all records and vocabs.</p>