Commit 306ba534 authored by dj3c1t's avatar dj3c1t

maj base twig

parent 045bf5be
{% extends '::base.html.twig' %}
{% block main %}
<section id="account_configuration">
<header>
<h1>Compte</h1>
</header>
<div class="main">
{% block content_header %}
{{ parent() }}
<h1>Compte</h1>
{% endblock %}
{{ render(controller('Dj3c1tAppBundle:View/Messages:display')) }}
{% block main %}
{{ parent() }}
<div class="row">
<div class="col-xs-6 col-xs-offset-3">
{{ form_start(form, {attr: {novalidate: 'novalidate'}}) }}
<div class="error">{{ form_errors(form) }}</div>
<div class="form-group">
{{ form_label(form.username) }}
<div class="error">{{ form_errors(form.username) }}</div>
{{ form_widget(form.username, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.email) }}
<div class="error">{{ form_errors(form.email) }}</div>
{{ form_widget(form.email, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
<div class="error">{{ form_errors(form.changePassword) }}</div>
{{ form_widget(form.changePassword, {attr: {class: 'change_password'}}) }}
{{ form_label(form.changePassword) }}
</div>
<div id="password_div"{% if not form.changePassword.vars.data %} style="display: none;"{% endif %}>
<div class="form-group">
{{ form_label(form.password.first) }}
<div class="error">{{ form_errors(form.password) }}</div>
<div class="error">{{ form_errors(form.password.first) }}</div>
{{ form_widget(form.password.first, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.password.second) }}
<div class="error">{{ form_errors(form.password.second) }}</div>
{{ form_widget(form.password.second, {attr: {class: 'form-control'}}) }}
</div>
</div>
<button type="submit" class="btn btn-primary pull-right">Enregistrer</button>
{{ form_end(form) }}
<div class="row">
<div class="col-xs-6 col-xs-offset-3">
{{ form_start(form, {attr: {novalidate: 'novalidate'}}) }}
<div class="error">{{ form_errors(form) }}</div>
<div class="form-group">
{{ form_label(form.username) }}
<div class="error">{{ form_errors(form.username) }}</div>
{{ form_widget(form.username, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.email) }}
<div class="error">{{ form_errors(form.email) }}</div>
{{ form_widget(form.email, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
<div class="error">{{ form_errors(form.changePassword) }}</div>
{{ form_widget(form.changePassword, {attr: {class: 'change_password'}}) }}
{{ form_label(form.changePassword) }}
</div>
<div id="password_div"{% if not form.changePassword.vars.data %} style="display: none;"{% endif %}>
<div class="form-group">
{{ form_label(form.password.first) }}
<div class="error">{{ form_errors(form.password) }}</div>
<div class="error">{{ form_errors(form.password.first) }}</div>
{{ form_widget(form.password.first, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.password.second) }}
<div class="error">{{ form_errors(form.password.second) }}</div>
{{ form_widget(form.password.second, {attr: {class: 'form-control'}}) }}
</div>
</div>
<button type="submit" class="btn btn-primary pull-right">Enregistrer</button>
{{ form_end(form) }}
</div>
</section>
</div>
{% endblock %}
......
{% extends '::base.html.twig' %}
{% block content_header %}
{{ parent() }}
<h1>Configuration générale</h1>
{% endblock %}
{% block main %}
{{ parent() }}
<section id="admin_configuration">
<header>
<h1>Configuration générale</h1>
</header>
<div class="main">
{{ render(controller('Dj3c1tAppBundle:View/Messages:display')) }}
<div class="row">
<div id="admin_configuration_form_container" class="col-xs-12">
<form action="{{ path('admin_configuration') }}" method="post">
......@@ -20,7 +20,4 @@
</div>
</div>
</div>
</section>
{% endblock %}
{% extends '::base.html.twig' %}
{% block main %}
{% block content_header %}
{{ parent() }}
<h1>Ajouter un utilisateur</h1>
{% endblock %}
<section id="admin_user_add">
<header>
<h1>Ajouter un utilisateur</h1>
</header>
<div class="main">
{% block main %}
{{ parent() }}
{{ include('Dj3c1tAppBundle:Admin:User/menu.html.twig') }}
{{ render(controller('Dj3c1tAppBundle:View/Messages:display')) }}
<div class="row">
<div class="col-xs-6 col-xs-offset-3">
{{ form_start(form, {attr: {novalidate: 'novalidate'}}) }}
<div class="error">{{ form_errors(form) }}</div>
<div class="form-group">
{{ form_label(form.username) }}
<div class="error">{{ form_errors(form.username) }}</div>
{{ form_widget(form.username, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.email) }}
<div class="error">{{ form_errors(form.email) }}</div>
{{ form_widget(form.email, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.roles) }}
<div class="error">{{ form_errors(form.roles) }}</div>
<ul class="list-unstyled col-xs-offset-1">
{% for role in form.roles %}
<li>
{{ form_widget(role) }}
{{ form_label(role) }}
</li>
{% endfor %}
</ul>
</div>
<div class="form-group">
{{ form_label(form.password.first) }}
<div class="error">{{ form_errors(form.password.first) }}</div>
{{ form_widget(form.password.first, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.password.second) }}
<div class="error">{{ form_errors(form.password.second) }}</div>
{{ form_widget(form.password.second, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
<div class="error">{{ form_errors(form.isActive) }}</div>
{{ form_widget(form.isActive) }}
{{ form_label(form.isActive) }}
</div>
<button type="submit" class="btn btn-primary pull-right">Ajouter l'utilisateur</button>
{{ form_end(form) }}
</div>
<div class="row">
<div class="col-xs-6 col-xs-offset-3">
{{ form_start(form, {attr: {novalidate: 'novalidate'}}) }}
<div class="error">{{ form_errors(form) }}</div>
<div class="form-group">
{{ form_label(form.username) }}
<div class="error">{{ form_errors(form.username) }}</div>
{{ form_widget(form.username, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.email) }}
<div class="error">{{ form_errors(form.email) }}</div>
{{ form_widget(form.email, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.roles) }}
<div class="error">{{ form_errors(form.roles) }}</div>
<ul class="list-unstyled col-xs-offset-1">
{% for role in form.roles %}
<li>
{{ form_widget(role) }}
{{ form_label(role) }}
</li>
{% endfor %}
</ul>
</div>
<div class="form-group">
{{ form_label(form.password.first) }}
<div class="error">{{ form_errors(form.password.first) }}</div>
{{ form_widget(form.password.first, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.password.second) }}
<div class="error">{{ form_errors(form.password.second) }}</div>
{{ form_widget(form.password.second, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
<div class="error">{{ form_errors(form.isActive) }}</div>
{{ form_widget(form.isActive) }}
{{ form_label(form.isActive) }}
</div>
<button type="submit" class="btn btn-primary pull-right">Ajouter l'utilisateur</button>
{{ form_end(form) }}
</div>
</section>
</div>
{% endblock %}
{% extends '::base.html.twig' %}
{% block main %}
{% block content_header %}
{{ parent() }}
<h1>Modifier l'utilisateur {{ form.username.vars.data }}</h1>
{% endblock %}
<section id="admin_user_add">
<header>
<h1>Modifier l'utilisateur {{ form.username.vars.data }}</h1>
</header>
<div class="main">
{% block main %}
{{ parent() }}
{{ include('Dj3c1tAppBundle:Admin:User/menu.html.twig') }}
{{ render(controller('Dj3c1tAppBundle:View/Messages:display')) }}
<div class="row">
<div class="col-xs-6 col-xs-offset-3">
{{ form_start(form, {attr: {novalidate: 'novalidate'}}) }}
<div class="error">{{ form_errors(form) }}</div>
<div class="form-group">
{{ form_label(form.username) }}
<div class="error">{{ form_errors(form.username) }}</div>
{{ form_widget(form.username, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.email) }}
<div class="error">{{ form_errors(form.email) }}</div>
{{ form_widget(form.email, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.roles) }}
<div class="error">{{ form_errors(form.roles) }}</div>
<ul class="list-unstyled col-xs-offset-1">
{% for role in form.roles %}
<li>
{{ form_widget(role) }}
{{ form_label(role) }}
</li>
{% endfor %}
</ul>
</div>
<div class="form-group">
<div class="error">{{ form_errors(form.changePassword) }}</div>
{{ form_widget(form.changePassword, {attr: {class: 'change_password'}}) }}
{{ form_label(form.changePassword) }}
</div>
<div id="password_div"{% if not form.changePassword.vars.data %} style="display: none;"{% endif %}>
<div class="form-group">
{{ form_label(form.password.first) }}
<div class="error">{{ form_errors(form.password) }}</div>
<div class="error">{{ form_errors(form.password.first) }}</div>
{{ form_widget(form.password.first, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.password.second) }}
<div class="error">{{ form_errors(form.password.second) }}</div>
{{ form_widget(form.password.second, {attr: {class: 'form-control'}}) }}
</div>
</div>
<div class="form-group">
{{ form_errors(form.isActive) }}
{{ form_widget(form.isActive) }}
{{ form_label(form.isActive) }}
</div>
<button type="submit" class="btn btn-primary pull-right">Enregistrer l'utilisateur</button>
{{ form_end(form) }}
<div class="row">
<div class="col-xs-6 col-xs-offset-3">
{{ form_start(form, {attr: {novalidate: 'novalidate'}}) }}
<div class="error">{{ form_errors(form) }}</div>
<div class="form-group">
{{ form_label(form.username) }}
<div class="error">{{ form_errors(form.username) }}</div>
{{ form_widget(form.username, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.email) }}
<div class="error">{{ form_errors(form.email) }}</div>
{{ form_widget(form.email, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.roles) }}
<div class="error">{{ form_errors(form.roles) }}</div>
<ul class="list-unstyled col-xs-offset-1">
{% for role in form.roles %}
<li>
{{ form_widget(role) }}
{{ form_label(role) }}
</li>
{% endfor %}
</ul>
</div>
<div class="form-group">
<div class="error">{{ form_errors(form.changePassword) }}</div>
{{ form_widget(form.changePassword, {attr: {class: 'change_password'}}) }}
{{ form_label(form.changePassword) }}
</div>
<div id="password_div"{% if not form.changePassword.vars.data %} style="display: none;"{% endif %}>
<div class="form-group">
{{ form_label(form.password.first) }}
<div class="error">{{ form_errors(form.password) }}</div>
<div class="error">{{ form_errors(form.password.first) }}</div>
{{ form_widget(form.password.first, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-group">
{{ form_label(form.password.second) }}
<div class="error">{{ form_errors(form.password.second) }}</div>
{{ form_widget(form.password.second, {attr: {class: 'form-control'}}) }}
</div>
</div>
<div class="form-group">
{{ form_errors(form.isActive) }}
{{ form_widget(form.isActive) }}
{{ form_label(form.isActive) }}
</div>
<button type="submit" class="btn btn-primary pull-right">Enregistrer l'utilisateur</button>
{{ form_end(form) }}
</div>
</section>
</div>
{% endblock %}
......
{% extends '::base.html.twig' %}
{% block main %}
{% block content_header %}
{{ parent() }}
<h1>Utilisateurs</h1>
{% endblock %}
<section id="admin_users">
<header>
<h1>Utilisateurs</h1>
</header>
<div class="main">
{% block main %}
{{ parent() }}
{{ include('Dj3c1tAppBundle:Admin:User/menu.html.twig') }}
{{ render(controller('Dj3c1tAppBundle:View/Messages:display')) }}
<div class="row">
<div class="row">
<table class="table">
<thead>
<tr>
<th>{{ knp_pagination_sortable(pagination, 'Login', 'u.username') }}</th>
<th>{{ knp_pagination_sortable(pagination, 'Email', 'u.email') }}</th>
<th>Roles</th>
<th>{{ knp_pagination_sortable(pagination, 'Actif', 'u.isActive') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
{% for user in pagination %}
<tr{% if loop.index is even %} class="even"{% endif %}>
<td>{{ user.username }}</td>
<td>{{ user.email }}</td>
<td>
{% for role in user.getRolesEntities() %}
<span class="simple_tag">{{ role.name }}</span>
{% endfor %}
</td>
<td>
<a class="btn btn-default"
href="{{ path('admin_user_toogle_active', {'user': user.id}) }}">
<span class="glyphicon glyphicon-ok-circle green{% if user.isActive %} active{% endif %}" aria-hidden="true"></span>
</a>
</td>
<td>
<a class="btn btn-default" href="{{ path('admin_user_edit', {'user': user.id}) }}">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
</a>
</td>
<td>
<a class="btn btn-default bb_confirm"
data-message="Effacer cet Utilisateur ?"
href="{{ path('admin_user_delete', {'user': user.id}) }}">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</a>
</td>
</tr>
<table class="table">
<thead>
<tr>
<th>{{ knp_pagination_sortable(pagination, 'Login', 'u.username') }}</th>
<th>{{ knp_pagination_sortable(pagination, 'Email', 'u.email') }}</th>
<th>Roles</th>
<th>{{ knp_pagination_sortable(pagination, 'Actif', 'u.isActive') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
{% for user in pagination %}
<tr{% if loop.index is even %} class="even"{% endif %}>
<td>{{ user.username }}</td>
<td>{{ user.email }}</td>
<td>
{% for role in user.getRolesEntities() %}
<span class="simple_tag">{{ role.name }}</span>
{% endfor %}
</tbody>
</table>
<div class="navigation">
{{ knp_pagination_render(pagination) }}
</div>
</div>
</td>
<td>
<a class="btn btn-default"
href="{{ path('admin_user_toogle_active', {'user': user.id}) }}">
<span class="glyphicon glyphicon-ok-circle green{% if user.isActive %} active{% endif %}" aria-hidden="true"></span>
</a>
</td>
<td>
<a class="btn btn-default" href="{{ path('admin_user_edit', {'user': user.id}) }}">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
</a>
</td>
<td>
<a class="btn btn-default bb_confirm"
data-message="Effacer cet Utilisateur ?"
href="{{ path('admin_user_delete', {'user': user.id}) }}">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="navigation">
{{ knp_pagination_render(pagination) }}
</div>
</section>
</div>
{% endblock %}
{% extends '::base.html.twig' %}
{% block main %}
<section id="admin_users">
<header>
<h1>Accueil</h1>
</header>
<div class="main">
</div>
</section>
{% block content_header %}
{{ parent() }}
<h1>Accueil</h1>
{% endblock %}
{% extends '::base.html.twig' %}
{% block content_header %}
{{ parent() }}
<h1>Connexion</h1>
{% endblock %}
{% block main %}
{{ parent() }}
<section id="login">
<header>
<h1>Connexion</h1>
</header>
<div class="main">
{{ render(controller('Dj3c1tAppBundle:View/Messages:display')) }}
<div class="row">
<div id="login_form_container" class="col-xs-6 col-xs-offset-3">
<form action="{{ path('login_check') }}" method="post">
......@@ -29,9 +28,6 @@
</div>
</div>
</div>
</section>
{% endblock %}
{% block body_end %}
......
......@@ -13,6 +13,13 @@
<!-- sidebar -->
<div class="col-xs-2" id="sidebar">
{% block sidebar %}
{{ render(controller(
'Dj3c1tAppBundle:View/Colonne:display',
{
'route': app.request.attributes.get('_route'),
'parameters': app.request.attributes.get('_route_params')
}
)) }}
{% endblock %}
</div>
......@@ -22,6 +29,7 @@
<div class="row" id="header">
<div class="content">
{% block header %}
{{ render(controller('Dj3c1tAppBundle:View/Header:display')) }}
{% endblock %}
</div>
</div>
......@@ -29,8 +37,17 @@
<!-- main -->
<div class="row" id="main">
<div class="content">
{% block main %}
{% endblock %}
<section id="{{ app.request.attributes.get('_route') }}">
<header>
{% block content_header %}
{% endblock %}
</header>
<div class="main">
{{ render(controller('Dj3c1tAppBundle:View/Messages:display')) }}
{% block main %}
{% endblock %}
</div>
</section>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment