Update twigs
This commit is contained in:
parent
00c915d7f8
commit
9a0b4db460
@ -17,7 +17,7 @@
|
||||
<link
|
||||
href="/assets/css/nucleo-svg.css" rel="stylesheet"/>
|
||||
<!-- Font Awesome Icons -->
|
||||
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
|
||||
<script src="https://kit.fontawesome.com/f15a79324f.js" crossorigin="anonymous"></script>
|
||||
<!-- Material Icons -->
|
||||
<link
|
||||
rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0"/>
|
||||
|
44
templates/internal/admin-dashboard.html.twig
Normal file
44
templates/internal/admin-dashboard.html.twig
Normal file
@ -0,0 +1,44 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Admin Dashboard
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{{ block('nav', 'internal/libs/nav.html.twig') }}
|
||||
|
||||
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
|
||||
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
|
||||
<div class="container-fluid py-2">
|
||||
<div class='row'>
|
||||
<div class='ms-3'>
|
||||
<h3 class='mb-0 h4 font-weight-bolder'>Admin Dashboard</h3>
|
||||
<p class='mb-4'>
|
||||
Check activity in the last 24 hours
|
||||
</p>
|
||||
</div>
|
||||
<div class='col-xl-3 col-sm-6 mb-xl-0 mb-4'>
|
||||
<div class='card'>
|
||||
<div class='card-header p-2 ps-3'>
|
||||
<div class='d-flex justify-content-between'>
|
||||
<div>
|
||||
<p class='text-sm mb-0 text-capitalize'>Yesterday's Visits</p>
|
||||
<h4 class='mb-0'></h4>
|
||||
</div>
|
||||
<div class="icon icon-md icon-shape bg-gradient-dark shadow-dark shadow text-center border-radius-lg">
|
||||
<i class="material-symbols-rounded opacity-10">weekend</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class='dark horizontal my-0'>
|
||||
<div class='card-footer p-2 ps-3'>
|
||||
<p class='mb-0 text-sm'>
|
||||
<span class='text-info font-weight-bolder'></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
{% endblock %}
|
@ -3,4 +3,10 @@
|
||||
{% block title %}Dashboard
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}{% endblock %}
|
||||
{% block body %}
|
||||
{{ block('nav', 'internal/libs/nav.html.twig') }}
|
||||
|
||||
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
|
||||
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
12
templates/internal/libs/breadcrumb.html.twig
Normal file
12
templates/internal/libs/breadcrumb.html.twig
Normal file
@ -0,0 +1,12 @@
|
||||
{% block breadcrumb %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb bg-transparent mb-0 pb-0 pt-1 px-0 me-sm-6 me-5">
|
||||
{% for crumb in breadcrumbs %}
|
||||
<li class="breadcrumb-item text-sm">
|
||||
<a class="opacity-5 text-dark" href="javascript:;">{{ crumb }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{#<li class="breadcrumb-item text-sm text-dark active" aria-current="page">Tables</li>#}
|
||||
</ol>
|
||||
</nav>
|
||||
{% endblock %}
|
91
templates/internal/libs/nav.html.twig
Normal file
91
templates/internal/libs/nav.html.twig
Normal file
@ -0,0 +1,91 @@
|
||||
{% block nav %}
|
||||
<aside class="sidenav navbar navbar-vertical navbar-expand-xs border-radius-lg fixed-start ms-2 bg-white my-2" id="sidenav-main">
|
||||
<div class="sidenav-header">
|
||||
<i class="fas fa-times p-3 cursor-pointer text-dark opacity-5 position-absolute end-0 top-0 d-none d-xl-none" aria-hidden="true" id="iconSidenav"></i>
|
||||
<a class="navbar-brand px-4 py-3 m-0" href="/index.php/dashboard " target="_blank">
|
||||
<img src="/assets/img/logo-ct-dark.png" class="navbar-brand-img" width="26" height="26" alt="main_logo">
|
||||
<span class="ms-1 text-sm text-dark">CM Tracker</span>
|
||||
</a>
|
||||
</div>
|
||||
<hr class='horizontal dark mt-0 mb-2'>
|
||||
<div class='sidenav-header'>
|
||||
<p class='text-xs text-center'>
|
||||
{{ app.user.company|raw }}
|
||||
</p>
|
||||
</div>
|
||||
<hr class="horizontal dark mt-0 mb-2">
|
||||
<div class="collapse navbar-collapse w-auto " id="sidenav-collapse-main">
|
||||
<ul class="navbar-nav">
|
||||
{% if app.user.job.name == 'ADMIN' %}
|
||||
<li class='nav-item'>
|
||||
<a class="{{ admin_dashboard }}" href="/index.php/admin-dashboard">
|
||||
<i class="material-symbols-rounded opacity-5">dashboard</i>
|
||||
<span class="nav-link-text ms-1">Admin Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="{{ user_dashboard }}" href="/index.php/dashboard">
|
||||
<i class="material-symbols-rounded opacity-5">dashboard</i>
|
||||
<span class="nav-link-text ms-1">Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
{#
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="../pages/tables.html">
|
||||
<i class="material-symbols-rounded opacity-5">table_view</i>
|
||||
<span class="nav-link-text ms-1">Tables</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="../pages/billing.html">
|
||||
<i class="material-symbols-rounded opacity-5">receipt_long</i>
|
||||
<span class="nav-link-text ms-1">Billing</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="../pages/virtual-reality.html">
|
||||
<i class="material-symbols-rounded opacity-5">view_in_ar</i>
|
||||
<span class="nav-link-text ms-1">Virtual Reality</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="../pages/notifications.html">
|
||||
<i class="material-symbols-rounded opacity-5">notifications</i>
|
||||
<span class="nav-link-text ms-1">Notifications</span>
|
||||
</a>
|
||||
</li>
|
||||
#}
|
||||
<li class="nav-item mt-3">
|
||||
<h6 class="ps-4 ms-2 text-uppercase text-xs text-dark font-weight-bolder opacity-5">Account pages</h6>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="{{ profile }}" href="/index.php/profile">
|
||||
<i class="material-symbols-rounded opacity-5">person</i>
|
||||
<span class="nav-link-text ms-1">Profile</span>
|
||||
</a>
|
||||
</li>
|
||||
{% if app.user.job.value == 'ADMIN' %}
|
||||
<li class="nav-item">
|
||||
<a class="{{ user_list }}" href="/index.php/list-users">
|
||||
<i class="material-symbols-rounded opacity-5">assignment</i>
|
||||
<span class="nav-link-text ms-1">User List</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class='nav-item'>
|
||||
<a class='text-dark nav-link' href='/index.php/add-user'>
|
||||
<i class='material-symbols-rounded opacity-5'>person</i>
|
||||
<span class='nav-link-text ms-1'>Add User</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidenav-footer position-absolute w-100 bottom-0 ">
|
||||
<div class="mx-3">
|
||||
<a class="btn btn-outline-dark mt-4 w-100" href="https://www.creative-tim.com/learning-lab/bootstrap/overview/material-dashboard?ref=sidebarfree" type="button">Documentation</a>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
{% endblock %}
|
147
templates/internal/libs/top-nav.html.twig
Normal file
147
templates/internal/libs/top-nav.html.twig
Normal file
@ -0,0 +1,147 @@
|
||||
{% block topnav %}
|
||||
<nav class="navbar navbar-main navbar-expand-lg px-0 mx-3 shadow-none border-radius-xl" id="navbarBlur" data-scroll="true">
|
||||
<div class="container-fluid py-1 px-3">
|
||||
{{ block('breadcrumb', 'internal/libs/breadcrumb.html.twig') }}
|
||||
<div class="collapse navbar-collapse mt-sm-0 mt-2 me-md-0 me-sm-4" id="navbar">
|
||||
<div class="ms-md-auto pe-md-3 d-flex align-items-center">
|
||||
<div class="input-group input-group-outline">
|
||||
<label class="form-label">Case Search...</label>
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<ul
|
||||
class="navbar-nav d-flex align-items-center justify-content-end">
|
||||
{#
|
||||
<li class="nav-item d-flex align-items-center">
|
||||
<a class="btn btn-outline-primary btn-sm mb-0 me-3" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-material-dashboard">Online Builder</a>
|
||||
</li>
|
||||
<li class="mt-1">
|
||||
<a class="github-button" href="https://github.com/creativetimofficial/material-dashboard" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star creativetimofficial/material-dashboard on GitHub">Star</a>
|
||||
</li>
|
||||
<li class="nav-item d-xl-none ps-3 d-flex align-items-center">
|
||||
<a href="javascript:;" class="nav-link text-body p-0" id="iconNavbarSidenav">
|
||||
<div class="sidenav-toggler-inner">
|
||||
<i class="sidenav-toggler-line"></i>
|
||||
<i class="sidenav-toggler-line"></i>
|
||||
<i class="sidenav-toggler-line"></i>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
#}
|
||||
{% if app.user.job.name == 'ADMIN' %}
|
||||
<li class="nav-item px-3 d-flex align-items-center" title="Site Settings">
|
||||
<a href="javascript:;" class="nav-link text-body p-0">
|
||||
<i class="material-symbols-rounded fixed-plugin-button-nav">settings</i>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="nav-item dropdown pe-3 d-flex align-items-center" title="Notifications">
|
||||
<a href="javascript:;" class="nav-link text-body p-0" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="material-symbols-rounded">notifications</i>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end px-2 py-3 me-sm-n4" aria-labelledby="dropdownMenuButton">
|
||||
{% for note in notifications %}
|
||||
<li class='mb-2'>
|
||||
<a class='dropdown-item border-radius-md' href="javascript:openNotification('{{ note.id }}');">
|
||||
<div class='d-flex py-1'>
|
||||
<div class='my-auto'>
|
||||
<img src='' class='avatar avatar-sm me-3'>
|
||||
</div>
|
||||
<div class='d-flex flex-column justify-content-center'>
|
||||
<h6 class='text-sm font-weight-normal mb-1'>
|
||||
<span class='font-weight-bold'>{{ note.title }}</span>
|
||||
{{ note.from }}
|
||||
</h6>
|
||||
<p>{{ note.message }}</p>
|
||||
<p class='text-xs text-secondary mb-0'>
|
||||
<i class='fa fa-clock me-1'></i>
|
||||
{{ note.timestamp|format_datetime('short', 'short', timezone: 'America/Indiana/Indianapolis') }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{#
|
||||
<li class="mb-2">
|
||||
<a class="dropdown-item border-radius-md" href="javascript:;">
|
||||
<div class="d-flex py-1">
|
||||
<div class="my-auto">
|
||||
<img src="../assets/img/team-2.jpg" class="avatar avatar-sm me-3 ">
|
||||
</div>
|
||||
<div class="d-flex flex-column justify-content-center">
|
||||
<h6 class="text-sm font-weight-normal mb-1">
|
||||
<span class="font-weight-bold">New message</span>
|
||||
from Laur
|
||||
</h6>
|
||||
<p class="text-xs text-secondary mb-0">
|
||||
<i class="fa fa-clock me-1"></i>
|
||||
13 minutes ago
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="mb-2">
|
||||
<a class="dropdown-item border-radius-md" href="javascript:;">
|
||||
<div class="d-flex py-1">
|
||||
<div class="my-auto">
|
||||
<img src="../assets/img/small-logos/logo-spotify.svg" class="avatar avatar-sm bg-gradient-dark me-3 ">
|
||||
</div>
|
||||
<div class="d-flex flex-column justify-content-center">
|
||||
<h6 class="text-sm font-weight-normal mb-1">
|
||||
<span class="font-weight-bold">New album</span>
|
||||
by Travis Scott
|
||||
</h6>
|
||||
<p class="text-xs text-secondary mb-0">
|
||||
<i class="fa fa-clock me-1"></i>
|
||||
1 day
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item border-radius-md" href="javascript:;">
|
||||
<div class="d-flex py-1">
|
||||
<div class="avatar avatar-sm bg-gradient-secondary me-3 my-auto">
|
||||
<svg width="12px" height="12px" viewbox="0 0 43 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>credit-card</title>
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g transform="translate(-2169.000000, -745.000000)" fill="#FFFFFF" fill-rule="nonzero">
|
||||
<g transform="translate(1716.000000, 291.000000)">
|
||||
<g transform="translate(453.000000, 454.000000)">
|
||||
<path class="color-background" d="M43,10.7482083 L43,3.58333333 C43,1.60354167 41.3964583,0 39.4166667,0 L3.58333333,0 C1.60354167,0 0,1.60354167 0,3.58333333 L0,10.7482083 L43,10.7482083 Z" opacity="0.593633743"></path>
|
||||
<path class="color-background" d="M0,16.125 L0,32.25 C0,34.2297917 1.60354167,35.8333333 3.58333333,35.8333333 L39.4166667,35.8333333 C41.3964583,35.8333333 43,34.2297917 43,32.25 L43,16.125 L0,16.125 Z M19.7083333,26.875 L7.16666667,26.875 L7.16666667,23.2916667 L19.7083333,23.2916667 L19.7083333,26.875 Z M35.8333333,26.875 L28.6666667,26.875 L28.6666667,23.2916667 L35.8333333,23.2916667 L35.8333333,26.875 Z"></path>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="d-flex flex-column justify-content-center">
|
||||
<h6 class="text-sm font-weight-normal mb-1">
|
||||
Payment successfully completed
|
||||
</h6>
|
||||
<p class="text-xs text-secondary mb-0">
|
||||
<i class="fa fa-clock me-1"></i>
|
||||
2 days
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
#}
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-item d-flex align-items-center" title="Profile">
|
||||
<a href="/index.php/profile" class="nav-link text-body font-weight-bold px-0">
|
||||
<i class="material-symbols-rounded">account_circle</i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<!-- End Navbar -->
|
||||
{% endblock %}
|
12
templates/internal/profile.html.twig
Normal file
12
templates/internal/profile.html.twig
Normal file
@ -0,0 +1,12 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Profile
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{{ block('nav', 'internal/libs/nav.html.twig') }}
|
||||
|
||||
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
|
||||
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
|
||||
</main>
|
||||
{% endblock %}
|
@ -1,52 +1,56 @@
|
||||
{% block nav %}
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-lg blur border-radius-xl top-0 z-index-3 shadow position-absolute my-3 py-2 start-0 end-0 mx-4">
|
||||
<div class="container-fluid ps-2 pe-0">
|
||||
<a class="navbar-brand font-weight-bolder ms-lg-0 ms-3 " href="../pages/dashboard.html">
|
||||
CM Tracker
|
||||
</a>
|
||||
<button class="navbar-toggler shadow-none ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon mt-2">
|
||||
<span class="navbar-toggler-bar bar1"></span>
|
||||
<span class="navbar-toggler-bar bar2"></span>
|
||||
<span class="navbar-toggler-bar bar3"></span>
|
||||
</span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navigation">
|
||||
<ul class="navbar-nav mx-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex align-items-center me-2 active" aria-current="page" href="/index.php/">
|
||||
<i class="fa fa-chart-pie opacity-6 text-dark me-1"></i>
|
||||
Dashboard
|
||||
</a>
|
||||
</li>
|
||||
<!-- @todo only display when logged in -->
|
||||
<li class="nav-item">
|
||||
<a class="nav-link me-2" href="/index.php/profile">
|
||||
<i class="fa fa-user opacity-6 text-dark me-1"></i>
|
||||
Profile
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link me-2" href="/index.php/">
|
||||
<i class="fas fa-key opacity-6 text-dark me-1"></i>
|
||||
Sign In
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav d-lg-flex d-none">
|
||||
<!--
|
||||
replace with other link
|
||||
<li class="nav-item d-flex align-items-center">
|
||||
<a class="btn btn-outline-primary btn-sm mb-0 me-2" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-material-dashboard">Online Builder</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="https://www.creative-tim.com/product/material-dashboard" class="btn btn-sm mb-0 me-1 bg-gradient-dark">Free download</a>
|
||||
</li>
|
||||
-->
|
||||
</ul>
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-lg blur border-radius-xl top-0 z-index-3 shadow position-absolute my-3 py-2 start-0 end-0 mx-4">
|
||||
<div class="container-fluid ps-2 pe-0">
|
||||
<a class="navbar-brand font-weight-bolder ms-lg-0 ms-3 " href="../pages/dashboard.html">
|
||||
CM Tracker
|
||||
</a>
|
||||
<button class="navbar-toggler shadow-none ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon mt-2">
|
||||
<span class="navbar-toggler-bar bar1"></span>
|
||||
<span class="navbar-toggler-bar bar2"></span>
|
||||
<span class="navbar-toggler-bar bar3"></span>
|
||||
</span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navigation">
|
||||
<ul class="navbar-nav mx-auto">
|
||||
<!-- @todo only display when logged in -->
|
||||
{% if app.user %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link d-flex align-items-center me-2 active" aria-current="page" href="/index.php/">
|
||||
<i class="fa fa-chart-pie opacity-6 text-dark me-1"></i>
|
||||
Dashboard
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link me-2" href="/index.php/profile">
|
||||
<i class="fa fa-user opacity-6 text-dark me-1"></i>
|
||||
Profile
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if not app.user %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link me-2" href="/index.php/">
|
||||
<i class="fas fa-key opacity-6 text-dark me-1"></i>
|
||||
Sign In
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<ul
|
||||
class="navbar-nav d-lg-flex d-none"><!--
|
||||
replace with other link
|
||||
<li class="nav-item d-flex align-items-center">
|
||||
<a class="btn btn-outline-primary btn-sm mb-0 me-2" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-material-dashboard">Online Builder</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="https://www.creative-tim.com/product/material-dashboard" class="btn btn-sm mb-0 me-1 bg-gradient-dark">Free download</a>
|
||||
</li>
|
||||
-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<!-- End Navbar -->
|
||||
{% endblock %}
|
||||
</nav>
|
||||
<!-- End Navbar -->
|
||||
{% endblock %}
|
||||
|
@ -49,32 +49,6 @@
|
||||
<button type="submit" class="btn btn-lg bg-gradient-dark btn-lg w-100 mt-4 mb-0">Sign Up</button>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
|
||||
<!--
|
||||
<form role="form" name="registration_form" method="post">
|
||||
<div class="input-group input-group-outline mb-3">
|
||||
<label class="form-label" for="registration_form_name">Name</label>
|
||||
<input type="text" id="registration_form_name" name="registration_form[name]" required="required" class="form-control">
|
||||
</div>
|
||||
<div class='input-group input-group-outline mb-3'>
|
||||
<label class='form-label' for="registration_form_username">Username</label>
|
||||
<input type='text' id="registration_form_username" name="registration_form[username]" autocomplete="username" required="required" class='form-control'>
|
||||
</div>
|
||||
<div class="input-group input-group-outline mb-3">
|
||||
<label class="form-label" for="registration_form_email">Email</label>
|
||||
<input type="email" id="registration_form_email" name="registration_form[email]" required="required" class="form-control">
|
||||
</div>
|
||||
<div class="input-group input-group-outline mb-3">
|
||||
<label class="form-label" for="registration_form_plainPassword">Password</label>
|
||||
<input type="password" id="registration_form_plainPassword" name="registration_form[plainPassword]" autocomplete="current-password" required="required" class="form-control">
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<input type='hidden' name='registration_form[_token]' id='registration_form__token' value='{{ csrf_token("registration") }}'/>
|
||||
|
||||
<button type="submit" class="btn btn-lg bg-gradient-dark btn-lg w-100 mt-4 mb-0">Sign Up</button>
|
||||
</div>
|
||||
</form>
|
||||
-->
|
||||
</div>
|
||||
<div class="card-footer text-center pt-0 px-lg-2 px-1">
|
||||
<p class="mb-2 text-sm mx-auto">
|
||||
@ -89,5 +63,4 @@
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<!-- Core JS Files -->
|
||||
{% endblock %}
|
||||
|
@ -4,59 +4,22 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{#
|
||||
<form method="post">
|
||||
{% if error %}
|
||||
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if app.user %}
|
||||
<div class="mb-3">
|
||||
You are logged in as
|
||||
{{ app.user.userIdentifier }},
|
||||
<a href="{{ path('app_logout') }}">Logout</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
|
||||
<label for="username">Username</label>
|
||||
<input type="text" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="username" required autofocus>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>
|
||||
|
||||
<input
|
||||
type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
||||
|
||||
{#
|
||||
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
|
||||
See https://symfony.com/doc/current/security/remember_me.html
|
||||
|
||||
<div class="checkbox mb-3">
|
||||
<input type="checkbox" name="_remember_me" id="_remember_me">
|
||||
<label for="_remember_me">Remember me</label>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-lg btn-primary" type="submit">
|
||||
Sign in
|
||||
</button>
|
||||
</form>
|
||||
#}
|
||||
<!--
|
||||
=========================================================
|
||||
* Material Dashboard 3 - v3.2.0
|
||||
=========================================================
|
||||
=========================================================
|
||||
* Material Dashboard 3 - v3.2.0
|
||||
=========================================================
|
||||
|
||||
* Product Page: https://www.creative-tim.com/product/material-dashboard
|
||||
* Copyright 2024 Creative Tim (https://www.creative-tim.com)
|
||||
* Licensed under MIT (https://www.creative-tim.com/license)
|
||||
* Coded by Creative Tim
|
||||
* Product Page: https://www.creative-tim.com/product/material-dashboard
|
||||
* Copyright 2024 Creative Tim (https://www.creative-tim.com)
|
||||
* Licensed under MIT (https://www.creative-tim.com/license)
|
||||
* Coded by Creative Tim
|
||||
|
||||
=========================================================
|
||||
=========================================================
|
||||
|
||||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
-->
|
||||
<div class="container position-sticky z-index-sticky top-0"> <div class="row">
|
||||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
-->
|
||||
<div class="container position-sticky z-index-sticky top-0">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ block("nav", "libs/nav.html.twig") }}
|
||||
</div>
|
||||
@ -74,23 +37,6 @@
|
||||
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
|
||||
<div class="bg-gradient-dark shadow-dark border-radius-lg py-3 pe-1">
|
||||
<h4 class="text-white font-weight-bolder text-center mt-2 mb-0">Sign in</h4>
|
||||
<div class="row mt-3">
|
||||
<div class="col-2 text-center ms-auto">
|
||||
<a class="btn btn-link px-3" href="javascript:;">
|
||||
<i class="fa fa-facebook text-white text-lg"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-2 text-center px-1">
|
||||
<a class="btn btn-link px-3" href="javascript:;">
|
||||
<i class="fa fa-github text-white text-lg"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-2 text-center me-auto">
|
||||
<a class="btn btn-link px-3" href="javascript:;">
|
||||
<i class="fa fa-google text-white text-lg"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
Loading…
Reference in New Issue
Block a user