fluxvisualisation.html.twig 4.01 KB
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
{% extends base_template %}

{% block actions %}
{% endblock %}
{% block breadcrumb %}{% endblock %}
{%- block tab_menu -%}
    {{ knp_menu_render(admin.sidemenu(action), {
        'currentClass': 'active',
        'template': get_global_template('tab_menu_template')
    }, 'twig') }}
{%- endblock -%}

{% block title %}
    {{ 'TABLEAU DE BORD'|trans }}
{% endblock %}

{% block navbar_title %}
    {{ block('title') }}
{% endblock %}

{% block content %}
	<div class="box">
        <div class="box-header text-center">
            <h3 class="box-title">{{ 'GLOBAL'|trans }}</h3>
        </div>
        <div class="box-body">
            <h4>Solde de MLC en circulation : 12345 {{KOH_MLC_NAME_SMALL|default('') }}</h4>
			<h4>Solde de Monnaie Nantie : 12345 {{KOH_MLC_NAME_SMALL|default('') }}</h4>
        </div>
    </div>

	<div class="box">
        <div class="box-header text-center">
            <h3 class="box-title">{{ 'GROUPES'|trans }}</h3>
        </div>
        <div class="box-body">
        	<div class="table-responsive">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>Nom</th>
							<th>Compte</th>
						</tr>
					</thead>
					<tbody>
						{% for groupe in getAllGroupes() %}
							<tr>
								<td>{{groupe.name}}</td>
								<td>{{groupe.compte}}</td>
							</tr>
						{% endfor %}
					</tbody>
				</table>
			</div>
		</div>
	</div>

	<div class="box">
        <div class="box-header text-center">
            <h3 class="box-title">{{ 'COMPTOIRS'|trans }}</h3>
        </div>
        <div class="box-body">
        	<div class="table-responsive">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>Nom</th>
							<th>Compte</th>
						</tr>
					</thead>
					<tbody>
						{% for comptoir in getAllComptoirs() %}
							<tr>
								<td>{{comptoir.name}}</td>
								<td>{{comptoir.compte}}</td>
							</tr>
						{% endfor %}
					</tbody>
				</table>
			</div>
		</div>
	</div>

	<div class="box">
        <div class="box-header text-center">
            <h3 class="box-title">{{ 'COTISATIONS'|trans }}</h3>
        </div>
        <div class="box-body">
			<div class="table-responsive">
				<table class="table table-hover">
					<thead>
						<tr>
							<th colspan='6'>Cotisations des adhérents</th>
						</tr>
						<tr>
							<th>Espèces</th>
							<th>Chèques</th>
							<th>CB</th>
							<th>MLC</th>
							<th>Autre</th>
							<th>TOTAL</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
    {# <div class="p-4">
    	<h4><u>{{ "Exemples d'importations possible (Fichiers .csv uniquement):"|trans }}</u></h4>
    	<div class='mb-5'>
    		{% for key, csvparam in csvparams %}
117
				<h5><strong>{{ key|capitalize }} : </strong><a class='ml-4' target='_blank' rel="noopener noreferrer" href='{{ csvparam.file }}'>Télécharger un exemple</a></h5>
Julien Jorry committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
				<p class='ml-4'><i>{{ csvparam.header }}</i></p>
				<p class='ml-4 mb-4'><i>{{ 'Exemple'|trans }} :</i> {{ csvparam.example }}</p>
	    	{% endfor %}
	    </div>
    	{{form_start(form)}}
			{{ form_row(form.media) }}
			{{ form_row(form.user) }}
			{{ form_row(form.save) }}
		{{form_end(form)}}

		{% if errors is defined and errors|length > 0 %}
			<div class='container bg-danger w-100 py-4 row'>
				{% if errors['error'] is defined %}
					{{ errors['error'] }}
				{% else %}
					{{  macros.show_error(errors) }}
				{% endif %}
			</div>
		{% endif %}
		{% if warnings is defined and warnings|length > 0 %}
			<div class='container bg-warning w-100 py-4 row'>
				{{  macros.show_error(warnings) }}
			</div>
		{% endif %}
		{% if success is defined and success|length > 0 %}
			<div class='container bg-success w-100 py-4 row'>
				{{  macros.show_error(success) }}
			</div>
		{% endif %}
		{% if linkcsverror is defined and linkcsverror != null %}
			<div class='py-4'>
				<a href='{{ linkcsverror }}' role="button" class="btn-primary btn">{{ 'Télécharger CSV avec lignes en erreurs'|trans }}</a>
			</div>
		{% endif %}
    </div> #}
{% endblock %}