From d530978fec4e3253c84a8f0e628e32490aef58ce Mon Sep 17 00:00:00 2001 From: tofulm Date: Mon, 10 Feb 2020 11:37:27 +0100 Subject: [PATCH] sortie de la fabrique + ajout champ autorisations --- action/supprimer_aut_mod.php | 41 ++++ auted_administrations.php | 57 +++++ auted_autorisations.php | 84 +++++++ auted_fonctions.php | 14 ++ auted_options.php | 14 ++ auted_pipelines.php | 34 +++ base/auted.php | 101 +++++++++ fabrique_auted.php | 213 ++++++++++++++++++ fabrique_diff.diff | 100 ++++++++ formulaires/configurer_auted.html | 16 ++ formulaires/editer_aut_mod.html | 17 ++ formulaires/editer_aut_mod.php | 124 ++++++++++ lang/aut_mod_fr.php | 45 ++++ lang/auted_fr.php | 20 ++ lang/paquet-auted_fr.php | 14 ++ paquet.xml | 32 +++ prive/objets/contenu/aut_mod.html | 12 + prive/objets/liste/aut_mods.html | 36 +++ .../squelettes/contenu/configurer_auted.html | 7 + prive/themes/spip/images/aut_mod-12.png | 39 ++++ prive/themes/spip/images/aut_mod-16.png | 39 ++++ prive/themes/spip/images/aut_mod-24.png | 39 ++++ prive/themes/spip/images/aut_mod-32.png | 39 ++++ prive/themes/spip/images/aut_mod-new-16.png | 39 ++++ prive/themes/spip/images/auted-128.png | 56 +++++ prive/themes/spip/images/auted-32.png | 39 ++++ prive/themes/spip/images/auted-64.png | 56 +++++ 27 files changed, 1327 insertions(+) create mode 100644 action/supprimer_aut_mod.php create mode 100644 auted_administrations.php create mode 100644 auted_autorisations.php create mode 100644 auted_fonctions.php create mode 100644 auted_options.php create mode 100644 auted_pipelines.php create mode 100644 base/auted.php create mode 100644 fabrique_auted.php create mode 100644 fabrique_diff.diff create mode 100644 formulaires/configurer_auted.html create mode 100644 formulaires/editer_aut_mod.html create mode 100644 formulaires/editer_aut_mod.php create mode 100644 lang/aut_mod_fr.php create mode 100644 lang/auted_fr.php create mode 100644 lang/paquet-auted_fr.php create mode 100644 paquet.xml create mode 100644 prive/objets/contenu/aut_mod.html create mode 100644 prive/objets/liste/aut_mods.html create mode 100644 prive/squelettes/contenu/configurer_auted.html create mode 100644 prive/themes/spip/images/aut_mod-12.png create mode 100644 prive/themes/spip/images/aut_mod-16.png create mode 100644 prive/themes/spip/images/aut_mod-24.png create mode 100644 prive/themes/spip/images/aut_mod-32.png create mode 100644 prive/themes/spip/images/aut_mod-new-16.png create mode 100644 prive/themes/spip/images/auted-128.png create mode 100644 prive/themes/spip/images/auted-32.png create mode 100644 prive/themes/spip/images/auted-64.png diff --git a/action/supprimer_aut_mod.php b/action/supprimer_aut_mod.php new file mode 100644 index 0000000..2fd7a45 --- /dev/null +++ b/action/supprimer_aut_mod.php @@ -0,0 +1,41 @@ + 'aut_mod', + 'principale' => 'oui', + 'table_objet_surnoms' => array('autmod'), // table_objet('aut_mod') => 'aut_mods' + 'field'=> array( + 'id_aut_mod' => 'bigint(21) NOT NULL', + 'nom' => 'varchar(55) NOT NULL DEFAULT ""', + 'modele' => 'text NOT NULL DEFAULT ""', + 'statut' => 'varchar(20) DEFAULT "0" NOT NULL', + 'maj' => 'TIMESTAMP' + ), + 'key' => array( + 'PRIMARY KEY' => 'id_aut_mod', + 'KEY statut' => 'statut', + ), + 'titre' => 'nom AS titre, "" AS lang', + #'date' => '', + 'champs_editables' => array('nom', 'modele'), + 'champs_versionnes' => array(), + 'rechercher_champs' => array(), + 'tables_jointures' => array(), + 'statut_textes_instituer' => array( + 'prepa' => 'texte_statut_en_cours_redaction', + 'publie' => 'texte_statut_publie', + 'refuse' => 'texte_statut_refuse', + 'poubelle' => 'texte_statut_poubelle', + ), + 'statut'=> array( + array( + 'champ' => 'statut', + 'publie' => 'publie', + 'previsu' => 'publie,prepa', + 'post_date' => 'date', + 'exception' => array('statut','tout') + ) + ), + 'texte_changer_statut' => 'aut_mod:texte_changer_statut_aut_mod', + + + ); + + return $tables; +} + + +/** + * Ajouter des champs aux tables auteurs et articles et rubrique + * @param array $tables_principales + * @return array + */ + +function auted_declarer_tables_principales($tables_principales){ + + $tables_principales['spip_auteurs']['field']['autorisations'] = "text NOT NULL"; + + return $tables_principales; +} diff --git a/fabrique_auted.php b/fabrique_auted.php new file mode 100644 index 0000000..e98ca4f --- /dev/null +++ b/fabrique_auted.php @@ -0,0 +1,213 @@ + + array ( + 'version' => 6, + ), + 'paquet' => + array ( + 'prefixe' => 'auted', + 'nom' => 'Autorisations étendues', + 'slogan' => '', + 'description' => '', + 'logo' => + array ( + 0 => '', + ), + 'credits' => + array ( + 'logo' => + array ( + 'texte' => '', + 'url' => '', + ), + ), + 'version' => '1.0.0', + 'auteur' => 'tofulm', + 'auteur_lien' => 'https://gamuza.fr', + 'licence' => 'GNU/GPL', + 'categorie' => 'outil', + 'etat' => 'dev', + 'compatibilite' => '[3.2.0-dev;3.3.*]', + 'documentation' => '', + 'administrations' => 'on', + 'schema' => '1.0.0', + 'formulaire_config' => 'on', + 'formulaire_config_titre' => '', + 'fichiers' => + array ( + 0 => 'autorisations', + 1 => 'fonctions', + 2 => 'options', + 3 => 'pipelines', + ), + 'inserer' => + array ( + 'paquet' => '', + 'administrations' => + array ( + 'maj' => '', + 'desinstallation' => '', + 'fin' => '', + ), + 'base' => + array ( + 'tables' => + array ( + 'fin' => '', + ), + ), + ), + 'scripts' => + array ( + 'pre_copie' => '', + 'post_creation' => '', + ), + 'exemples' => '', + ), + 'objets' => + array ( + 0 => + array ( + 'nom' => 'Autmods', + 'nom_singulier' => 'Autmod', + 'genre' => 'masculin', + 'logo' => + array ( + 0 => '', + 32 => '', + 24 => '', + 16 => '', + 12 => '', + ), + 'logo_variantes' => '', + 'table' => 'spip_aut_mods', + 'cle_primaire' => 'id_aut_mod', + 'cle_primaire_sql' => 'bigint(21) NOT NULL', + 'table_type' => 'aut_mod', + 'champs' => + array ( + 0 => + array ( + 'nom' => 'Nom', + 'champ' => 'nom', + 'sql' => 'varchar(55) NOT NULL DEFAULT \'\'', + 'caracteristiques' => + array ( + 0 => 'editable', + 1 => 'obligatoire', + ), + 'recherche' => '', + 'saisie' => '', + 'explication' => '', + 'saisie_options' => '', + ), + 1 => + array ( + 'nom' => 'Modèle', + 'champ' => 'modele', + 'sql' => 'text NOT NULL DEFAULT \'\'', + 'caracteristiques' => + array ( + 0 => 'editable', + 1 => 'obligatoire', + ), + 'recherche' => '', + 'saisie' => '', + 'explication' => '', + 'saisie_options' => '', + ), + ), + 'champ_titre' => 'nom', + 'champ_date' => '', + 'statut' => 'on', + 'chaines' => + array ( + 'titre_objets' => 'Modèle d\'autorisations', + 'titre_objet' => 'modèle d\'autorisations', + 'info_aucun_objet' => 'Aucun modèle d\'autorisation', + 'info_1_objet' => 'Un modèle d\'autorisation', + 'info_nb_objets' => '@nb@ de modèle d\'autorisation', + 'icone_creer_objet' => 'Créer un modèle d\'autorsation', + 'icone_modifier_objet' => 'Modifier ce modèle d\'autorisation', + 'titre_logo_objet' => 'Logo de ce modèle d\'autorisation', + 'titre_langue_objet' => 'Langue de ce modèle d\'autorisation', + 'texte_definir_comme_traduction_objet' => 'Ce modèle d\'autorisation est une traduction du modèle d\'autorisation numéro :', + 'titre_\\objets_lies_objet' => 'Liés à ce modèle d\'autorisation', + 'titre_objets_rubrique' => 'Modèle d\'autorisation de la rubrique', + 'info_objets_auteur' => 'Les modèles d\'autorisation de cet auteur', + 'retirer_lien_objet' => 'Retirer ce modèle d\'autorisation', + 'retirer_tous_liens_objets' => 'Retirer tous les modèles d\'autorisation', + 'ajouter_lien_objet' => 'Ajouter ce modèle d\'autorisation', + 'texte_ajouter_objet' => 'Ajouter un modèle d\'autorisation', + 'texte_creer_associer_objet' => 'Créer et associer un modèle d\'autorisation', + 'texte_changer_statut_objet' => 'Ce modèle d\'autorisation est :', + 'supprimer_objet' => 'Supprimer ce modèle d\'autorisation', + 'confirmer_supprimer_objet' => 'Confirmez-vous la suppression de ce modèle d\'autorisation ?', + ), + 'liaison_directe' => '', + 'table_liens' => '', + 'afficher_liens' => '', + 'roles' => '', + 'auteurs_liens' => '', + 'vue_auteurs_liens' => '', + 'fichiers' => + array ( + 'explicites' => + array ( + 0 => 'action/supprimer_objet.php', + ), + ), + 'autorisations' => + array ( + 'objet_creer' => 'webmestre', + 'objet_voir' => 'webmestre', + 'objet_modifier' => 'webmestre', + 'objet_supprimer' => 'webmestre', + 'associerobjet' => 'webmestre', + ), + ), + ), + 'images' => + array ( + 'paquet' => + array ( + 'logo' => + array ( + 0 => + array ( + 'extension' => 'svg', + 'contenu' => 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4xLWRldiAoNmM5NzdjYjM3ZCwgMjAyMC0wMi0wMykiCiAgIGhlaWdodD0iNDgiCiAgIHdpZHRoPSI0MCIKICAgc29kaXBvZGk6ZG9jbmFtZT0iYXV0b3Jpc2F0aW9ucy5zdmciCiAgIGlkPSJzdmc4OTMiCiAgIHhtbDpzcGFjZT0icHJlc2VydmUiCiAgIHZpZXdCb3g9IjAgMCA0MCA0OCIKICAgeT0iMHB4IgogICB4PSIwcHgiCi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MDksLTMuMjkzMzQ3IC0wLjUzNzU1MSwtMC41NjM1NjYgYyAtMC44MzQ2ODQsLTAuODc1MDc4IC0xLjAwMjY2OCwtMS4yODA4MjYgLTEuMDA2MDYsLTIuNDMwMDMxIC0wLjAwMjUsLTAuODU2NDM5IDAuMDI4MTUsLTEuMDIzMDI0IDAuMjc3MDQyLC0xLjUwNDIwOCAwLjM1NjkzMiwtMC42OTAwNyAxLjAxMzU3NCwtMS4zNDY2MDIgMS43MDMyNTQsLTEuNzAyOTY4IDAuNDc5MDkzLC0wLjI0NzU1NCAwLjY1MTQ5LC0wLjI3OTYyMSAxLjUwNDIwNywtMC4yNzk3OTkgMC44MTEwMTYsLTEuN2UtNCAxLjAzNTEzOCwwLjAzNzEzIDEuNDE5MzAzLDAuMjM2MTk2IDEuMDk2NjIsMC41NjgyNTEgMS43MDkzOCwxLjMzMTExIDEuOTkzMjc5LDIuNDgxNTQ1IDAuMjk0NTk1LDEuMTkzNzg0IC0wLjAzNzE3LDIuMjgzNzg3IC0wLjk5MjU5NCwzLjI2MTA4NSBsIC0wLjUwMzQzOCwwLjUxNDk2NSAwLjc2NDIwNiwzLjEzNDY3IGMgMC40MjAzMTMsMS43MjQwNjggMC43ODgzMTYsMy4yMzczMTUgMC44MTc3ODUsMy4zNjI3NzIgbCAwLjA1MzU4LDAuMjI4MTAyIGggLTMuNDk5NDk5IGMgLTEuOTI0NzI0LDAgLTMuNDk5MzI1LC0wLjAzNDIyIC0zLjQ5OTExNCwtMC4wNzYwMyB6IgogICAgICAgaWQ9InBhdGg5MDUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvZz48L3N2Zz4K', + ), + ), + ), + 'objets' => + array ( + 0 => + array ( + ), + ), + ), +); diff --git a/fabrique_diff.diff b/fabrique_diff.diff new file mode 100644 index 0000000..2f0d81e --- /dev/null +++ b/fabrique_diff.diff @@ -0,0 +1,100 @@ +Seulement dans ../tmp/cache/fabrique/auted/: action +diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_auted.php ../tmp/cache/fabrique/.backup/auted/auted_autorisations.php ../tmp/cache/fabrique/auted/auted_autorisations.php +41c41 +< return in_array($qui['statut'], array('0minirezo', '1comite')); +--- +> return autoriser('webmestre', '', '', $qui); +55c55 +< return true; +--- +> return autoriser('webmestre', '', '', $qui); +69c69 +< return in_array($qui['statut'], array('0minirezo', '1comite')); +--- +> return autoriser('webmestre', '', '', $qui); +83c83 +< return $qui['statut'] == '0minirezo' and !$qui['restreint']; +--- +> return autoriser('webmestre', '', '', $qui); +diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_auted.php ../tmp/cache/fabrique/.backup/auted/base/auted.php ../tmp/cache/fabrique/auted/base/auted.php +52c52 +< 'model' => 'text NOT NULL DEFAULT ""', +--- +> 'modele' => 'text NOT NULL DEFAULT ""', +62c62 +< 'champs_editables' => array('nom', 'model'), +--- +> 'champs_editables' => array('nom', 'modele'), +diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_auted.php ../tmp/cache/fabrique/.backup/auted/lang/aut_mod_fr.php ../tmp/cache/fabrique/auted/lang/aut_mod_fr.php +12c12 +< 'ajouter_lien_aut_mod' => 'Ajouter cette autmod', +--- +> 'ajouter_lien_aut_mod' => 'Ajouter ce modèle d\'autorisation', +15c15 +< 'champ_model_label' => 'Model', +--- +> 'champ_modele_label' => 'Modèle', +17c17 +< 'confirmer_supprimer_aut_mod' => 'Confirmez-vous la suppression de cette autmod ?', +--- +> 'confirmer_supprimer_aut_mod' => 'Confirmez-vous la suppression de ce modèle d\'autorisation ?', +20,25c20,25 +< 'icone_creer_aut_mod' => 'Créer un model', +< 'icone_modifier_aut_mod' => 'Modifier ce model', +< 'info_1_aut_mod' => 'Un model', +< 'info_aucun_aut_mod' => 'Aucune autmod', +< 'info_aut_mods_auteur' => 'Les autmods de cet auteur', +< 'info_nb_aut_mods' => '@nb@ autmods', +--- +> 'icone_creer_aut_mod' => 'Créer un modèle d\'autorsation', +> 'icone_modifier_aut_mod' => 'Modifier ce modèle d\'autorisation', +> 'info_1_aut_mod' => 'Un modèle d\'autorisation', +> 'info_aucun_aut_mod' => 'Aucun modèle d\'autorisation', +> 'info_aut_mods_auteur' => 'Les modèles d\'autorisation de cet auteur', +> 'info_nb_aut_mods' => '@nb@ de modèle d\'autorisation', +28,29c28,29 +< 'retirer_lien_aut_mod' => 'Retirer cette autmod', +< 'retirer_tous_liens_aut_mods' => 'Retirer toutes les autmods', +--- +> 'retirer_lien_aut_mod' => 'Retirer ce modèle d\'autorisation', +> 'retirer_tous_liens_aut_mods' => 'Retirer tous les modèles d\'autorisation', +32c32 +< 'supprimer_aut_mod' => 'Supprimer cette autmod', +--- +> 'supprimer_aut_mod' => 'Supprimer ce modèle d\'autorisation', +35,44c35,44 +< 'texte_ajouter_aut_mod' => 'Ajouter une autmod', +< 'texte_changer_statut_aut_mod' => 'Cette autmod est :', +< 'texte_creer_associer_aut_mod' => 'Créer et associer une autmod', +< 'texte_definir_comme_traduction_aut_mod' => 'Cett autmod est une traduction de la autmod numéro :', +< 'titre_aut_mod' => 'Autmod', +< 'titre_aut_mods' => 'Autmods', +< 'titre_aut_mods_rubrique' => 'Autmods de la rubrique', +< 'titre_langue_aut_mod' => 'Langue de cette autmod', +< 'titre_logo_aut_mod' => 'Logo de ce model', +< 'titre_objets_lies_aut_mod' => 'Liés à cette autmod', +--- +> 'texte_ajouter_aut_mod' => 'Ajouter un modèle d\'autorisation', +> 'texte_changer_statut_aut_mod' => 'Ce modèle d\'autorisation est :', +> 'texte_creer_associer_aut_mod' => 'Créer et associer un modèle d\'autorisation', +> 'texte_definir_comme_traduction_aut_mod' => 'Ce modèle d\'autorisation est une traduction du modèle d\'autorisation numéro :', +> 'titre_aut_mod' => 'modèle d\'autorisations', +> 'titre_aut_mods' => 'Modèle d\'autorisations', +> 'titre_aut_mods_rubrique' => 'Modèle d\'autorisation de la rubrique', +> 'titre_langue_aut_mod' => 'Langue de ce modèle d\'autorisation', +> 'titre_logo_aut_mod' => 'Logo de ce modèle d\'autorisation', +> 'titre_objets_lies_aut_mod' => 'Liés à ce modèle d\'autorisation', +diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_auted.php ../tmp/cache/fabrique/.backup/auted/paquet.xml ../tmp/cache/fabrique/auted/paquet.xml +12c12 +< Paquet généré le 2020-02-10 11:08:20 +--- +> Paquet généré le 2020-02-10 11:18:59 +diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_auted.php ../tmp/cache/fabrique/.backup/auted/prive/objets/contenu/aut_mod.html ../tmp/cache/fabrique/auted/prive/objets/contenu/aut_mod.html +7,9c7,9 +< [
+<
<:aut_mod:champ_model_label:> :
+< (#MODEL) +--- +> [
+>
<:aut_mod:champ_modele_label:> :
+> (#MODELE) \ No newline at end of file diff --git a/formulaires/configurer_auted.html b/formulaires/configurer_auted.html new file mode 100644 index 0000000..48b4f7f --- /dev/null +++ b/formulaires/configurer_auted.html @@ -0,0 +1,16 @@ +
+ +

<:auted:cfg_titre_parametrages:>

+ + [

(#ENV*{message_ok})

] + [

(#ENV*{message_erreur})

] + +
+
+ #ACTION_FORMULAIRE + + +

 

+
+
+
diff --git a/formulaires/editer_aut_mod.html b/formulaires/editer_aut_mod.html new file mode 100644 index 0000000..a2889eb --- /dev/null +++ b/formulaires/editer_aut_mod.html @@ -0,0 +1,17 @@ +
+ [

(#ENV**{message_ok})

] + [

(#ENV*{message_erreur})

] + + [(#ENV{editable}) +
+ #ACTION_FORMULAIRE + +
+ +
+ [(#REM) ajouter les saisies supplementaires : extra et autre, a cet endroit ] + +

+
+ ] +
diff --git a/formulaires/editer_aut_mod.php b/formulaires/editer_aut_mod.php new file mode 100644 index 0000000..7ec1bb1 --- /dev/null +++ b/formulaires/editer_aut_mod.php @@ -0,0 +1,124 @@ + 'Ajouter ce modèle d\'autorisation', + + // C + 'champ_modele_label' => 'Modèle', + 'champ_nom_label' => 'Nom', + 'confirmer_supprimer_aut_mod' => 'Confirmez-vous la suppression de ce modèle d\'autorisation ?', + + // I + 'icone_creer_aut_mod' => 'Créer un modèle d\'autorsation', + 'icone_modifier_aut_mod' => 'Modifier ce modèle d\'autorisation', + 'info_1_aut_mod' => 'Un modèle d\'autorisation', + 'info_aucun_aut_mod' => 'Aucun modèle d\'autorisation', + 'info_aut_mods_auteur' => 'Les modèles d\'autorisation de cet auteur', + 'info_nb_aut_mods' => '@nb@ de modèle d\'autorisation', + + // R + 'retirer_lien_aut_mod' => 'Retirer ce modèle d\'autorisation', + 'retirer_tous_liens_aut_mods' => 'Retirer tous les modèles d\'autorisation', + + // S + 'supprimer_aut_mod' => 'Supprimer ce modèle d\'autorisation', + + // T + 'texte_ajouter_aut_mod' => 'Ajouter un modèle d\'autorisation', + 'texte_changer_statut_aut_mod' => 'Ce modèle d\'autorisation est :', + 'texte_creer_associer_aut_mod' => 'Créer et associer un modèle d\'autorisation', + 'texte_definir_comme_traduction_aut_mod' => 'Ce modèle d\'autorisation est une traduction du modèle d\'autorisation numéro :', + 'titre_aut_mod' => 'modèle d\'autorisations', + 'titre_aut_mods' => 'Modèle d\'autorisations', + 'titre_aut_mods_rubrique' => 'Modèle d\'autorisation de la rubrique', + 'titre_langue_aut_mod' => 'Langue de ce modèle d\'autorisation', + 'titre_logo_aut_mod' => 'Logo de ce modèle d\'autorisation', + 'titre_objets_lies_aut_mod' => 'Liés à ce modèle d\'autorisation', +); diff --git a/lang/auted_fr.php b/lang/auted_fr.php new file mode 100644 index 0000000..127cb80 --- /dev/null +++ b/lang/auted_fr.php @@ -0,0 +1,20 @@ + 'Autorisations étendues', + + // C + 'cfg_exemple' => 'Exemple', + 'cfg_exemple_explication' => 'Explication de cet exemple', + 'cfg_titre_parametrages' => 'Paramétrages', + + // T + 'titre_page_configurer_auted' => 'Autorisations étendues', +); diff --git a/lang/paquet-auted_fr.php b/lang/paquet-auted_fr.php new file mode 100644 index 0000000..73c36d0 --- /dev/null +++ b/lang/paquet-auted_fr.php @@ -0,0 +1,14 @@ + '', + 'auted_nom' => 'Autorisations étendues', + 'auted_slogan' => '', +); diff --git a/paquet.xml b/paquet.xml new file mode 100644 index 0000000..73a591d --- /dev/null +++ b/paquet.xml @@ -0,0 +1,32 @@ + + + + Autorisations étendues + + + tofulm + + GNU/GPL + + + + + + + + + + + + diff --git a/prive/objets/contenu/aut_mod.html b/prive/objets/contenu/aut_mod.html new file mode 100644 index 0000000..e23629d --- /dev/null +++ b/prive/objets/contenu/aut_mod.html @@ -0,0 +1,12 @@ + +[
+
<:aut_mod:champ_nom_label:> :
+ (#NOM) +
] + +[
+
<:aut_mod:champ_modele_label:> :
+ (#MODELE) +
] + + diff --git a/prive/objets/liste/aut_mods.html b/prive/objets/liste/aut_mods.html new file mode 100644 index 0000000..b71f1dd --- /dev/null +++ b/prive/objets/liste/aut_mods.html @@ -0,0 +1,36 @@ +[(#SET{defaut_tri,#ARRAY{ + nom,1, + id_aut_mod,1, + points,-1 +}})] +#ANCRE_PAGINATION +
+ + [] + + + + + + + + + + + + + + + + + + +
(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{aut_mod:info_1_aut_mod,aut_mod:info_nb_aut_mods}})
[(#TRI{statut,#,ajax})][(#TRI{nom,<:aut_mod:champ_nom_label:>,ajax})][(#TRI{id_aut_mod,<:info_numero_abbreviation:>,ajax})]
[(#CHEMIN_IMAGE{aut_mod-16.png}|balise_img)][(#STATUT|puce_statut{aut_mod,#ID_AUT_MOD})][(#LOGO_AUT_MOD|image_reduire{20,26})][(#RANG). ]#NOM[(#AUTORISER{modifier,aut_mod,#ID_AUT_MOD}|?{ + #ID_AUT_MOD, + #ID_AUT_MOD + })]
+[

(#PAGINATION{prive})

] +
+
[ +
(#ENV*{sinon,''})
+] diff --git a/prive/squelettes/contenu/configurer_auted.html b/prive/squelettes/contenu/configurer_auted.html new file mode 100644 index 0000000..bdb3315 --- /dev/null +++ b/prive/squelettes/contenu/configurer_auted.html @@ -0,0 +1,7 @@ +[(#AUTORISER{configurer,_auted}|sinon_interdire_acces)] + +

<:auted:titre_page_configurer_auted:>

+ +
+ #FORMULAIRE_CONFIGURER_AUTED +
diff --git a/prive/themes/spip/images/aut_mod-12.png b/prive/themes/spip/images/aut_mod-12.png new file mode 100644 index 0000000..0ef0fe9 --- /dev/null +++ b/prive/themes/spip/images/aut_mod-12.png @@ -0,0 +1,39 @@ + +image/svg+xml diff --git a/prive/themes/spip/images/aut_mod-16.png b/prive/themes/spip/images/aut_mod-16.png new file mode 100644 index 0000000..fe52972 --- /dev/null +++ b/prive/themes/spip/images/aut_mod-16.png @@ -0,0 +1,39 @@ + +image/svg+xml diff --git a/prive/themes/spip/images/aut_mod-24.png b/prive/themes/spip/images/aut_mod-24.png new file mode 100644 index 0000000..e96a219 --- /dev/null +++ b/prive/themes/spip/images/aut_mod-24.png @@ -0,0 +1,39 @@ + +image/svg+xml diff --git a/prive/themes/spip/images/aut_mod-32.png b/prive/themes/spip/images/aut_mod-32.png new file mode 100644 index 0000000..13d7ab7 --- /dev/null +++ b/prive/themes/spip/images/aut_mod-32.png @@ -0,0 +1,39 @@ + +image/svg+xml diff --git a/prive/themes/spip/images/aut_mod-new-16.png b/prive/themes/spip/images/aut_mod-new-16.png new file mode 100644 index 0000000..fe52972 --- /dev/null +++ b/prive/themes/spip/images/aut_mod-new-16.png @@ -0,0 +1,39 @@ + +image/svg+xml diff --git a/prive/themes/spip/images/auted-128.png b/prive/themes/spip/images/auted-128.png new file mode 100644 index 0000000..defe49e --- /dev/null +++ b/prive/themes/spip/images/auted-128.png @@ -0,0 +1,56 @@ + +image/svg+xml diff --git a/prive/themes/spip/images/auted-32.png b/prive/themes/spip/images/auted-32.png new file mode 100644 index 0000000..13d7ab7 --- /dev/null +++ b/prive/themes/spip/images/auted-32.png @@ -0,0 +1,39 @@ + +image/svg+xml diff --git a/prive/themes/spip/images/auted-64.png b/prive/themes/spip/images/auted-64.png new file mode 100644 index 0000000..defe49e --- /dev/null +++ b/prive/themes/spip/images/auted-64.png @@ -0,0 +1,56 @@ + +image/svg+xml