This commit is contained in:
2024-12-26 17:45:58 +01:00
parent 9a2e4755e1
commit 4b798fd1f9
39 changed files with 1445 additions and 71 deletions

View File

@ -40,32 +40,25 @@
{% if usemenu is defined and usemenu %}
<nav class="navbar navbar-expand-lg bg-dark" data-bs-theme="dark">
<div class="container-fluid">
<a class="navbar-brand" href="{{ path('app_home') }}"><img src="{{asset("medias/logo/logo.png")}}"> {{appName}}</a>
<a class="navbar-brand" href="{{ path('app_home') }}">
{% if app.session.get('company') %}
<img src="{{asset(app.session.get('company').logo)}}"> Compagnie = {{app.session.get('company').title}}
{% else %}
<img src="{{asset("medias/logo/logo.png")}}"> {{appName}}
{% endif %}
</a>
<div class="collapse navbar-collapse" id="navbarColor02">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a href="{{path('app_user_accounting')}}" class="nav-link" href="#">Plan Comptable</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a href="{{path('app_user_operation')}}" class="nav-link" href="#">Grand Livre</a>
</li>
<li class="nav-item">
<a href="{{path('app_user_accounting')}}" class="nav-link" href="#">Plan Comptable</a>
</li>
<li class="nav-item">
<a href="{{path('app_user_year')}}" class="nav-link" href="#">Exercices</a>
</li>
</ul>
</div>

View File

@ -0,0 +1 @@
{% extends 'base.html.twig' %}

View File

@ -3,7 +3,8 @@
{% block body %}
<div class="d-flex justify-content-center">
<div class="d-flex justify-content-center mt-5">
{% for accounting in accountings %}
<div class="card" style="width:400px">
<div class="card-body d-flex align-items-center">
@ -11,7 +12,19 @@
<i class="fas {{accounting.icon}} fa-4x"></i>
</div>
<div class="p-3 fs-1">{{accounting.title}}</div>
<div class="p-3 fs-1 d-flex flex-column flex-grow-1 align-items-center">
<div>{{accounting.title}}</div>
<div>{{accounting.solde}}€</div>
<div class="d-flex ">
<a class="p-3" href="{{path('app_user_operation_submitwithaccounting',{id:accounting.id,direction:'credit'})}}">
<i class="fas fa-minus bg-danger text-white rounded-circle fa-fw" style="height:60px; padding-top:7px;"></i>
</a>
<a class="p-3" href="{{path('app_user_operation_submitwithaccounting',{id:accounting.id,direction:'debit'})}}">
<i class="fas fa-plus bg-success text-white rounded-circle fa-fw" style="height:60px; padding-top:7px;"></i>
</a>
</div>
</div>
</div>
</div>
{% endfor %}

View File

@ -1 +1,4 @@
<h2>Veuillez selectionner une compagnie</h2>
{% extends 'base.html.twig' %}
{%block body%}
<h2>Veuillez selectionner une compagnie</h2>
{%endblock%}

View File

@ -0,0 +1,40 @@
{% extends 'base.html.twig' %}
{% block title %} = {{title}}{% endblock %}
{% block body %}
<h1>{{title}}</h1>
{{ form_start(form) }}
{{ form_widget(form.submit) }}
<a href="{{ path(routecancel) }}" class="btn btn-secondary ms-1">Annuler</a>
{%if mode=="update" %}<a href="{{ path(routedelete,{id:form.vars.value.id}) }}" class="btn btn-danger float-end" onclick="return confirm('Confirmez-vous la suppression de cet enregistrement ?')">Supprimer</a>{%endif%}
{% include('include/error.html.twig') %}
<div class="row">
<div class="col-md-6 mx-auto">
<div class="card mt-3">
<div class="card-header">Information</div>
<div class="card-body">
{{ form_row(form.date) }}
{{ form_row(form.title) }}
{{ form.debit is defined ? form_row(form.debit):"" }}
{{ form.credit is defined ? form_row(form.credit):"" }}
{{ form_row(form.montant) }}
</div>
</div>
</div>
</div>
{{ form_end(form) }}
{% endblock %}
{% block localscript %}
<script>
$(document).ready(function() {
$("#operation_title").focus();
});
</script>
{% endblock %}

View File

@ -0,0 +1,48 @@
{% extends 'base.html.twig' %}
{% block title %} = {{title}}{% endblock %}
{% block body %}
<h1>{{title}}</h1>
<a href="{{ path(routesubmit) }}" class="btn btn-success">Ajouter</a>
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
<thead>
<tr>
<th width="70px" class="no-sort">Action</th>
<th width="70px" class="no-sort">Date</th>
<th>Titre</th>
<th>Débit</th>
<th>Crédit</th>
<th width="150px">Montant</th>
</tr>
</thead>
<tbody>
{% for operation in operations %}
<tr>
<td><a href="{{ path(routeupdate,{id:operation.id}) }}"><i class="fas fa-file fa-2x"></i></a></td>
<td>{{operation.date|date("d/m/y")}}</td>
<td>{{operation.title}}</td>
<td>{{operation.debit.num01}}-{{operation.debit.num02}} = {{operation.debit.title}}</td>
<td>{{operation.credit.num01}}-{{operation.credit.num02}} = {{operation.credit.title}}</td>
<td>{{operation.montant}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
{% block localscript %}
<script>
$(document).ready(function() {
$('#dataTables').DataTable({
columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ],
responsive: true,
iDisplayLength: 100,
order: [[ 1, "asc" ]]
});
});
</script>
{% endblock %}

View File

@ -44,9 +44,9 @@
}
function reportThumb() {
window.parent.$("#user_avatar").val("{{thumb}}");
window.parent.$("#{{reportThumb}}").val("{{thumb}}");
url="{{ asset(thumb) }}";
window.parent.$("#user_avatar_img").attr("src",url);
window.parent.$("#{{reportThumb}}_img").attr("src",url);
closeModal();
}

View File

@ -0,0 +1,37 @@
{% extends 'base.html.twig' %}
{% block title %} = {{title}}{% endblock %}
{% block body %}
<h1>{{title}}</h1>
{{ form_start(form) }}
{{ form_widget(form.submit) }}
<a href="{{ path(routecancel) }}" class="btn btn-secondary ms-1">Annuler</a>
{%if mode=="update" %}<a href="{{ path(routedelete,{id:form.vars.value.id}) }}" class="btn btn-danger float-end" onclick="return confirm('Confirmez-vous la suppression de cet enregistrement ?')">Supprimer</a>{%endif%}
{% include('include/error.html.twig') %}
<div class="row">
<div class="col-md-6 mx-auto">
<div class="card mt-3">
<div class="card-header">Information</div>
<div class="card-body">
{{ form_row(form.dateStart) }}
{{ form_row(form.dateEnd) }}
</div>
</div>
</div>
</div>
{{ form_end(form) }}
{% endblock %}
{% block localscript %}
<script>
$(document).ready(function() {
$("#year_dateStart").focus();
});
</script>
{% endblock %}

View File

@ -0,0 +1,42 @@
{% extends 'base.html.twig' %}
{% block title %} = {{title}}{% endblock %}
{% block body %}
<h1>{{title}}</h1>
<a href="{{ path(routesubmit) }}" class="btn btn-success">Ajouter</a>
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
<thead>
<tr>
<th width="70px" class="no-sort">Action</th>
<th>Début</th>
<th>Fin</th>
</tr>
</thead>
<tbody>
{% for year in years %}
<tr>
<td><a href="{{ path(routeupdate,{id:year.id}) }}"><i class="fas fa-file fa-2x"></i></a></td>
<td>{{year.dateStart|date('d/m/Y')}}</td>
<td>{{year.dateEnd|date('d/m/Y')}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
{% block localscript %}
<script>
$(document).ready(function() {
$('#dataTables').DataTable({
columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ],
responsive: true,
iDisplayLength: 100,
order: [[ 1, "asc" ]]
});
});
</script>
{% endblock %}