Ajout restrictions accès
This commit is contained in:
parent
ab8d2ed9e4
commit
28e019d05d
|
@ -2,13 +2,6 @@
|
|||
|
||||
Ce module permet de gérer les matériels de l'association: stock, entrées, sorties.
|
||||
|
||||
## Installation
|
||||
- Télécharger le fichier
|
||||
[equipment.tar.gz](https://git.roflcopter.fr/lesanges/equipment.tar.gz)
|
||||
et le désarchiver dans le répertoire répertoire modules de
|
||||
l'installation de paheko.
|
||||
- Activer le module via le menu "Configuration > Extensions" de Paheko.
|
||||
|
||||
## Configuration
|
||||
- Il y a plusieurs types d'entrée et de sorties prédéfinies (Achat,
|
||||
Location, Vente, ...) mais il est possible d'en ajouter d'autres.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Supprimer une catégorie" current="module_equipment"}}
|
||||
|
||||
{{#load key=$_GET.key assign="category"}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="read" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="read" block=true}}{{/restrict}}
|
||||
|
||||
{{#load key=$_GET.key}}
|
||||
{{:assign cat_name=$name}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Modifier une catégorie" current="module_equipment"}}
|
||||
|
||||
{{#load key=$_GET.key assign="category"}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#restrict section="accounting" level="read"}}
|
||||
{{:admin_header title="Historique des mouvements" current="module_equipment"}}
|
||||
|
||||
{{:assign equipment_key=$_GET.key|trim}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#restrict section="accounting" level="read"}}
|
||||
{{:admin_header title="Gestion des matériels" custom_css=$custom_css current="module_equipment"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#restrict section="accounting" level="read"}}
|
||||
{{* inventaire des entrées/sorties des matériels des catégories de la variable $categories *}}
|
||||
|
||||
{{* Extraire et compiler les infos de la base *}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#restrict section="accounting" level="write" block="true"}}
|
||||
{{:admin_header title="Modifier matériel" current="module_equipment"}}
|
||||
|
||||
{{:assign equipment_key=$_GET.key|trim}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:assign var="type_movement" value=$_GET.mvt}}
|
||||
{{:admin_header title="Supprimer une %s"|args:$type_movement current="module_equipment"}}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Supprimer une entrée" current="module_equipment"}}
|
||||
|
||||
{{* récupérer les infos du mouvement à supprimer et du matériel associé *}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="read" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{if $_GET.dialog === null}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{if $_GET.dialog === null}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{if $_GET.dialog === null}}
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
{{:assign date_init=$mvt_modif.date|date_short}}
|
||||
{{:assign key_eqpmt_init=$mvt_modif.equipment}}
|
||||
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
|
||||
{{* récupérer la config des entrées/sorties *}}
|
||||
{{:include file="/%s/_get_config.html"|args:$module.name keep="config"}}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Supprimer une sortie" current="module_equipment"}}
|
||||
|
||||
{{* récupérer les infos du mouvement à supprimer et du matériel associé *}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="read"}}
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{if $_GET.dialog === null}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="read"}}
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{if $_GET.dialog === null}}
|
||||
|
|
Loading…
Reference in New Issue