Chore : ajout du login (mais en disabled) dans le form d'édition du compte. Passage en balise + condition plutôt que BOUCLE condition pour le test de présence de verifmobile
This commit is contained in:
parent
62f575c917
commit
12ab35cf12
3 changed files with 57 additions and 44 deletions
|
@ -16,6 +16,17 @@ if (!defined('_ECRIRE_INC_VERSION')) {
|
|||
defined('_LOGIN_TROP_COURT') or define('_LOGIN_TROP_COURT', 1);
|
||||
|
||||
$GLOBALS['comptespip_editer'] = [
|
||||
[
|
||||
'saisie' => 'input',
|
||||
'options' => array(
|
||||
'nom' => 'login',
|
||||
'label' => 'Votre identifiant de connexion',
|
||||
'obligatoire' => 'non',
|
||||
'disable' => 'oui',
|
||||
//'fonction' => 'ma_super_fonction'
|
||||
//'modifier' => 'ma_super_fonction_pour_modifier'
|
||||
)
|
||||
],
|
||||
[
|
||||
'saisie' => 'input',
|
||||
'options' => array(
|
||||
|
|
|
@ -41,9 +41,11 @@
|
|||
float: left;
|
||||
}
|
||||
|
||||
/*
|
||||
.se_connecter .formulaire_spip {
|
||||
background-color: rgba(235, 235, 235, 1) !important;
|
||||
}
|
||||
*/
|
||||
.se_connecter .boutons {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
@ -58,7 +60,7 @@
|
|||
padding: 0 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
letter-spacing: initial;
|
||||
font-variant: small-caps;
|
||||
/*font-variant: small-caps;*/
|
||||
}
|
||||
.se_connecter #indicatif {
|
||||
width: 2rem;
|
||||
|
|
|
@ -32,51 +32,51 @@
|
|||
</div>
|
||||
|
||||
<div class="editer_groupe">
|
||||
<BOUCLE_con(CONDITION){si #PLUGIN{verifmob}|oui}>
|
||||
<style type="text/css" media="screen">
|
||||
.editer_telephone {
|
||||
display: none
|
||||
}
|
||||
</style>
|
||||
<fieldset>
|
||||
<legend><:comptespip:telephone|ucfirst:></legend>
|
||||
<div class="editer">
|
||||
#SET{erreurs,#ENV**{erreurs}|table_valeur{mobile}}
|
||||
[<span class="erreur_message">(#GET{erreurs})</span>]
|
||||
<div class="verif_mobile editer">
|
||||
<div class="indicateur_plus">
|
||||
<span class="badge toto"><i class="fa fa-plus"></i></span>
|
||||
[(#PLUGIN{verifmob}|oui)
|
||||
<style type="text/css" media="screen">
|
||||
.editer_telephone {
|
||||
display: none
|
||||
}
|
||||
</style>
|
||||
<fieldset>
|
||||
<legend><:comptespip:telephone|ucfirst:></legend>
|
||||
<div class="editer">
|
||||
[(#SET{erreurs,#ENV**{erreurs}|table_valeur{mobile}})]
|
||||
[<span class="erreur_message">(#GET{erreurs})</span>]
|
||||
<div class="verif_mobile editer">
|
||||
<div class="indicateur_plus">
|
||||
<span class="badge toto"><i class="fa fa-plus"></i></span>
|
||||
</div>
|
||||
<input class="text" type="text"
|
||||
name="indicatif"
|
||||
id="indicatif"
|
||||
value="[(#ENV{indicatif})]"
|
||||
pattern="\[0-9\]{2,4}"
|
||||
required
|
||||
>
|
||||
<input type="tel" class="verif_mobile"
|
||||
id="mobile"
|
||||
name="mobile"
|
||||
placeholder="611223344"
|
||||
value="[(#ENV{mobile})]"
|
||||
pattern="^\[67\]\[0-9\]{8}$"
|
||||
autocomplete="off"
|
||||
required
|
||||
maxlength="9"
|
||||
>
|
||||
<button class="btn--warning envoyer_sms mts mlm" type="button"><:gabo:envoyer_sms:></button>
|
||||
</div>
|
||||
<input class="text" type="text"
|
||||
name="indicatif"
|
||||
id="indicatif"
|
||||
value="#ENV{indicatif}"
|
||||
pattern="[0-9]{2,4}"
|
||||
required
|
||||
>
|
||||
<input type="tel" class="verif_mobile"
|
||||
id="mobile"
|
||||
name="mobile"
|
||||
placeholder="611223344"
|
||||
value="[(#ENV{mobile})]"
|
||||
pattern="^[67][0-9]{8}$"
|
||||
autocomplete="off"
|
||||
required
|
||||
maxlength="9"
|
||||
>
|
||||
<button class="btn--warning envoyer_sms mts mlm" type="button"><:gabo:envoyer_sms:></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class='editer saisie_confirmation obligatoire[ (#ENV*{erreurs}|table_valeur{confirmation}|oui)erreur]'>
|
||||
<label for="confirmation"><:comptespip:code_confirmation_sms:> <em class="obligatoire"><:info_obligatoire_02:></em></label>
|
||||
#SET{erreurs,#ENV**{erreurs}|table_valeur{confirmation_sms}}
|
||||
[<span class="erreur_message">(#GET{erreurs})</span>]
|
||||
<input type="text" class="text" id="confirmation_sms" name="confirmation_sms" value="#ENV{confirmation_sms}">
|
||||
</div>
|
||||
<button class="btn btn--warning renvoyer_sms" type="button"> <:comptespip:renvoyer_sms:> </button>
|
||||
</fieldset>
|
||||
[(#INCLURE{fond=inclure/verif_mobile})]
|
||||
</BOUCLE_con>
|
||||
<div class='editer saisie_confirmation obligatoire[ (#ENV*{erreurs}|table_valeur{confirmation}|oui)erreur]'>
|
||||
<label for="confirmation"><:comptespip:code_confirmation_sms:> <em class="obligatoire"><:info_obligatoire_02:></em></label>
|
||||
[(#SET{erreurs,#ENV**{erreurs}|table_valeur{confirmation_sms}})]
|
||||
[<span class="erreur_message">(#GET{erreurs})</span>]
|
||||
<input type="text" class="text" id="confirmation_sms" name="confirmation_sms" value="[(#ENV{confirmation_sms})]">
|
||||
</div>
|
||||
<button class="btn btn--warning renvoyer_sms" type="button"> <:comptespip:renvoyer_sms:> </button>
|
||||
</fieldset>
|
||||
[(#INCLURE{fond=inclure/verif_mobile})]
|
||||
]
|
||||
</div>
|
||||
|
||||
<div class="editer_groupe">
|
||||
|
|
Loading…
Add table
Reference in a new issue