diff --git a/content/editer_compte_spip.html b/content/editer_compte_spip.html index 553f89a..6bd805e 100644 --- a/content/editer_compte_spip.html +++ b/content/editer_compte_spip.html @@ -1,6 +1,6 @@ [(#SESSION{id_auteur}|sinon_interdire_acces{[(#URL_PAGE{mon_compte})]})]
-

Editer compte SPIP

+

<:comptespip:editer_compte_spip:>

[(#FORMULAIRE_EDITER_COMPTE_SPIP{#ENV{id_auteur}, #ENV{redirect}})]
diff --git a/content/supprimer_compte_spip.html b/content/supprimer_compte_spip.html index a9b03d1..d584b37 100644 --- a/content/supprimer_compte_spip.html +++ b/content/supprimer_compte_spip.html @@ -4,6 +4,10 @@

<:comptespip:supprimer_compte_spip:>

- [(#FORMULAIRE_SUPPRIMER_COMPTE_SPIP{#SESSION{id_auteur}})] + [(#CONFIG{comptespip/interdire_suppression}|=={oui}|?{ +
#CONFIG{comptespip/explication_non_suppression}
+ , + [(#FORMULAIRE_SUPPRIMER_COMPTE_SPIP{#SESSION{id_auteur}})] + })]
diff --git a/formulaires/configurer_comptespip.html b/formulaires/configurer_comptespip.html index a76a409..c4719b3 100644 --- a/formulaires/configurer_comptespip.html +++ b/formulaires/configurer_comptespip.html @@ -147,6 +147,31 @@

<:comptespip:conf_formulaire_suppression:>

+
+ #SET{name,interdire_suppression} + #SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}} +
+ +
+ + +
+
+ + +
+
+
+
+ #SET{name,explication_non_suppression} + #SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}} +
+ + [(#GET{erreurs})] + +

<:comptespip:explication_non_suppression:>

+
+
#SET{name,choix_suppression_compte} #SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}} diff --git a/formulaires/editer_compte_spip.html b/formulaires/editer_compte_spip.html index 415ae6a..ddcb123 100644 --- a/formulaires/editer_compte_spip.html +++ b/formulaires/editer_compte_spip.html @@ -19,30 +19,35 @@
] -
- #GENERER_SAISIES{#ENV{_saisies}} +
+
+ <:comptespip:identite:> + #GENERER_SAISIES{#ENV{_saisies}} +
-
- Mot de passe - [(#SET{min,#VAL{minlength=}|concat{#ENV{pass_longeur_mini,6}}})] - [(#SET{chaine_langue,#VAL{comptespip:champ_password}|_T{#ARRAY{min,#ENV{pass_longeur_mini}}}})] - - [(#SAISIE{input,password} - {type=password} - {attributs=#GET{min}} - {label=#GET{chaine_langue}} - )] - [(#SAISIE{input,password_confirmation} - {type=password} - {label=<:comptespip:champ_password_confirm:>} - )] -
+
+
+ <:comptespip:mot_de_passe:> + [(#SET{min,#VAL{minlength=}|concat{#ENV{pass_longeur_mini,6}}})] + [(#SET{chaine_langue,#VAL{comptespip:champ_password}|_T{#ARRAY{min,#ENV{pass_longeur_mini}}}})] + + [(#SAISIE{input,password} + {type=password} + {attributs=#GET{min}} + {label=#GET{chaine_langue}} + )] + [(#SAISIE{input,password_confirmation} + {type=password} + {label=<:comptespip:champ_password_confirm:>} + )] +
+
- [(#ENV{id_auteur}|!={new}|et{#AUTORISER{supprimer,comptespip}|oui}) - <:comptespip:btn_supprimer_compte_spip:> - ] + [(#ENV{id_auteur}|!={new}|et{#AUTORISER{supprimer,comptespip}|oui}|et{#CONFIG{comptespip/interdire_suppression}|!={oui}|oui}) + <:comptespip:btn_supprimer_compte_spip:> + ]
diff --git a/formulaires/supprimer_compte_spip.html b/formulaires/supprimer_compte_spip.html index dccd304..7f3cc09 100644 --- a/formulaires/supprimer_compte_spip.html +++ b/formulaires/supprimer_compte_spip.html @@ -10,10 +10,10 @@
#ACTION_FORMULAIRE{#ENV{action}}
-

lkdsflsdlkf

+ [(#REM)

lkdsflsdlkf

heu...? ]
- + [ (#ENV**{erreurs}|table_valeur{new_pass}) ]
diff --git a/lang/comptespip_fr.php b/lang/comptespip_fr.php index efc5a06..f7af31f 100644 --- a/lang/comptespip_fr.php +++ b/lang/comptespip_fr.php @@ -37,12 +37,24 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'champ_password' => "Mot de passe d'au moins @min@ caractères", 'champ_password_confirm' => "Confirmer votre mot de passe", + // E + 'explication_non_suppression' => 'Le texte pour expliquer l\'impossibilité de supprimer son compte', + 'editer_compte_spip' => 'Editer mon compte', + 'etre_connecte' => 'Vous devez être connecté pour modifier votre compte', + + // I + 'interdire_suppression' => 'Interdire la supression du compte', + 'identite' => 'Identité', + // LL 'label_entree_mdp_pour_suppression_de_compte' => "Entrer votre mot de passe pour pouvoir vous désinscrire", 'label_choix_action_suppression' => 'Action lors de désinscription', + 'label_non_suppression' => 'Texte d\'explication', // MM 'message_mail' => 'Voici vos identifiants pour vous connecter sur le site "@nom_site_spip@" (@adresse_login@) :', + 'mot_de_passe' => 'Mot de passe', + 'mon_compte' => 'Mon compte', // NN 'non' => 'Non',