Historique prêts : ajout vérification existence table
This commit is contained in:
parent
09fa44e6aa
commit
2fc09554f0
1 changed files with 16 additions and 1 deletions
|
|
@ -1,7 +1,20 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{:admin_header title="Matériels hors de l'asso" custom_css="../style.css" current="module_equipment"}}
|
{{:admin_header title="Matériels hors de l'asso" custom_css="../style.css" current="module_equipment"}}
|
||||||
|
{{:include file="./_nav.html" current="historique" subcurrent="prêts"}}
|
||||||
|
|
||||||
|
{{*
|
||||||
|
vérifier l'existence de la table du module
|
||||||
|
eh oui, il se peut qu'elle ne soit pas encore créée si aucune donnée n'a été ajoutée dedans
|
||||||
|
*}}
|
||||||
|
|
||||||
|
{{#load limit="1"}}
|
||||||
|
{{:assign table_presente=true}}
|
||||||
|
{{else}}
|
||||||
|
{{:assign table_presente=false}}
|
||||||
|
{{/load}}
|
||||||
|
|
||||||
|
{{if $table_presente}}
|
||||||
{{if $_GET.ok}}
|
{{if $_GET.ok}}
|
||||||
{{if $_GET.msg == "modification"}}
|
{{if $_GET.msg == "modification"}}
|
||||||
<p class="block confirm">Modification enregistrée</p>
|
<p class="block confirm">Modification enregistrée</p>
|
||||||
|
|
@ -16,7 +29,6 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{:include file="./_nav.html" current="historique" subcurrent="prêts"}}
|
|
||||||
|
|
||||||
{{* lecture config (défaut ou enregistrée) *}}
|
{{* lecture config (défaut ou enregistrée) *}}
|
||||||
{{:include file="./_get_config.html" keep="config"}}
|
{{:include file="./_get_config.html" keep="config"}}
|
||||||
|
|
@ -116,5 +128,8 @@
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{{else}}
|
||||||
|
<p class="block alert">Aucun mouvement.</p>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{:admin_footer}}
|
{{:admin_footer}}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue