before switch to turbo

This commit is contained in:
2022-11-10 13:48:29 +01:00
parent 219f4097ff
commit 23139a5835
35 changed files with 731 additions and 139 deletions

View File

@@ -21,8 +21,15 @@
{% if is_granted('ROLE_USER') %}
<li class="nav-item dropdown me-auto">
<button type="button" id="navbar-dropdown" data-bs-target="#dropdown-menu" data-bs-toggle="dropdown"
class="btn btn-primary dropdown-toggle button-login">
{{ app.user.username }}
class="btn btn-outline-dark dropdown-toggle button-login">
{% if app.user.avatar %}
<img class="rounded-circle"
width="50px"
src="{{ avatar_asset(app.user.avatar)|imagine_filter('squared_thumbnail_small') }}"
alt="profile image"/>
{% else %}
{{ app.user.username }}
{% endif %}
</button>
<div class="dropdown-menu dropdown-menu-dark dropdown-menu-end" id="dropdown-menu"

View File

@@ -70,20 +70,22 @@
</nav>
<div class="container-fluid" id="content">
{% for message in app.flashes('success') %}
<div class="alert alert-success">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class="alert alert-danger">
{{ message }}
</div>
{% endfor %}
<div class="col m-3" id="main_content">
{% for message in app.flashes('success') %}
<div class="alert alert-success">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class="alert alert-danger">
{{ message }}
</div>
{% endfor %}
{% block body %}
<div class="m-5">
<h1 class="title-show">Quote of the Moment</h1>

View File

@@ -32,10 +32,14 @@
{% for developer in project.developer %}
<a class="align-left blog-details"
href="{{ path('app_profile', { 'username':developer.username }) }}">
<img class="article-author-img rounded-circle"
src="{{ asset('build/images/tracer_schmolle.png') }}"
alt="profile"></a>
<a href="{{ path('app_profile', { 'username':developer.username }) }}">{{ developer.username }}</a>
{% if developer.avatar is not null %}
<img class="rounded-circle mt-5 mb-4 ms-5"
src="{{ avatar_asset(developer.avatar)|imagine_filter('squared_thumbnail_small') }}" alt="profile image"/>
<br>
{% endif %}
<div class="ms-5 mb-4">
<a href="{{ path('app_profile', { 'username':developer.username }) }}">{{ developer.username }}</a>
</div>
{% endfor %}
</div>

View File

@@ -0,0 +1,20 @@
{% extends '@default/base.html.twig' %}
{% block title %}Verify eMail{% endblock %}
{% block body %}
<div class="container">
<div class="row">
<div class="login-form bg-dark mt-4 p-4">
<h1 class="h3 mb-3 font-weight-normal">Verify your Email</h1>
<p>
A verification email was sent - please check it to enable your
account before logging in.
</p>
<form method="POST">
<button type="submit" class="btn btn-primary">Re-send Email</button>
</form>
</div>
</div>
</div>
{% endblock %}

View File

@@ -7,31 +7,42 @@
{% block body %}
<div class="container box rounded bg-dark mt-5 mb-5">
<div class="row">
<div class="col-md-3 border-right">
<div class="d-flex flex-column align-items-center text-center p-3 py-5">
<img class="rounded-circle mt-5"
width="150px"
src=" {{ asset('build/images/tracer_schmolle150x150.png') }}" alt="profile image">
{% if user.avatar is not null %}
<img class="rounded-circle mt-5 mb-4"
src="{{ avatar_asset(user.avatar)|imagine_filter('squared_thumbnail_small') }}"
alt="profile image"/>
{% endif %}
{# {{ form_row(userForm.avatarName, { 'label': false }) }} #}
<form
action="{{ path('user_upload_avatar', { id: user.id}) }}"
method="POST"
enctype="multipart/form-data"
class="dropzone" id="dropzoneForm">
</form>
<div id="preview-content">{{ avatar_asset(user.avatar)|imagine_filter('squared_thumbnail_small') }}</div>
<span class="font-weight-bold">{{ user.username }}</span>
<span class="text-white-50"><span class="fa fa-lg fa-envelope me-1"></span>{{ user.email }}</span>
</div>
</div>
<div class="col-md-5 border-right">
{{ form_start(userForm) }}
<div class="col-md-8 border-right">
<div class="p-3 py-5">
<div class="d-flex justify-content-between align-items-center mb-3">
<h4 class="text-right">User Profile</h4>
</div>
<div class="row mt-2">
{{ form_start(userForm) }}
{{ form_row(userForm.username) }}
{{ form_row(userForm.firstName) }}
{{ form_row(userForm.lastName) }}
{{ form_row(userForm.email) }}
{{ form_row(userForm.newPassword.first) }}
{{ form_row(userForm.newPassword.second) }}
{{ form_rest(userForm) }}
{{ form_rest(userForm) }}
{{ form_end(userForm) }}
</div>
<div class="mb-5 text-center float-end">
<button class="btn btn-primary profile-button" type="submit">Save Profile</button>
@@ -41,5 +52,4 @@
</div>
</div>
{% endblock %}

View File

@@ -10,9 +10,10 @@
<div class="row">
<div class="col-md-3 border-right">
<div class="d-flex flex-column align-items-center text-center p-3 py-5">
<img class="rounded-circle mt-5"
width="150px"
src=" {{ asset('/uploads/avatars/' ~ user.avatar) }}" alt="profile image">
{% if user.avatar is not null %}
<img class="rounded-circle mt-5 mb-4"
src="{{ avatar_asset(user.avatar)|imagine_filter('squared_thumbnail_small') }}" alt="profile image"/>
{% endif %}
<span class="font-weight-bold">{{ user.username }}</span>
{% if is_granted('ROLE_ADMIN') %}
<span class="font-weight-bold">