diff --git a/auted_administrations.php b/auted_administrations.php index e2775c6..e95f54d 100644 --- a/auted_administrations.php +++ b/auted_administrations.php @@ -27,7 +27,7 @@ function auted_upgrade($nom_meta_base_version, $version_cible) { $maj = array(); $maj['create'] = array(array('maj_tables', array('spip_aut_modeles','spip_auteurs'))); - $maj['1.0.3'] = array(array('maj_tables', array('spip_aut_modeles','spip_auteurs'))); + $maj['1.0.4'] = array(array('maj_tables', array('spip_aut_modeles','spip_auteurs'))); include_spip('base/upgrade'); maj_plugin($nom_meta_base_version, $version_cible, $maj); diff --git a/base/auted.php b/base/auted.php index d213bda..d724314 100644 --- a/base/auted.php +++ b/base/auted.php @@ -51,6 +51,7 @@ function auted_declarer_tables_objets_sql($tables) { 'nom' => 'varchar(55) NOT NULL DEFAULT ""', 'modele' => 'text NOT NULL DEFAULT ""', 'statut' => 'varchar(20) DEFAULT "0" NOT NULL', + 'modifie' => 'varchar(55) NOT NULL DEFAULT ""', 'maj' => 'TIMESTAMP' ), 'key' => array( @@ -58,11 +59,7 @@ function auted_declarer_tables_objets_sql($tables) { 'KEY statut' => 'statut', ), 'titre' => 'nom AS titre, "" AS lang', - #'date' => '', - 'champs_editables' => array('nom', 'modele'), - 'champs_versionnes' => array(), - 'rechercher_champs' => array(), - 'tables_jointures' => array(), + 'champs_editables' => array('nom', 'modele', 'modifie'), 'statut_textes_instituer' => array( 'prepa' => 'texte_statut_en_cours_redaction', 'publie' => 'texte_statut_publie', diff --git a/charger_aut_modele.html b/charger_aut_modele.html new file mode 100644 index 0000000..df96ce2 --- /dev/null +++ b/charger_aut_modele.html @@ -0,0 +1,8 @@ +
(#ENV*{message_erreur})
] +[(#ENV*{message_ok})
] + + + +(#ENV*{message_erreur})
] @@ -23,6 +25,8 @@ {pgp ?!IN #ENV{pgp}} {webmestre?} {tout}> + #SET{modifie,''} +(#ENV*{message_ok})
] + + + +