Browse Source

1.1 BUG édition d'une inscription

master
Fred Tempez 3 months ago
parent
commit
aff0400b9c
  1. 2
      registration/registration.php
  2. 8
      registration/view/edit/edit.php

2
registration/registration.php

@ -14,7 +14,7 @@
class registration extends common {
const VERSION = '1.0';
const VERSION = '1.1';
const REALNAME = 'Auto-Inscription';
const DELETE = true;
const UPDATE = '0.0';

8
registration/view/edit/edit.php

@ -52,7 +52,7 @@
'label' => 'Adresse mail',
'value' => $this->getData(['user', $this->getUrl(2), 'mail']),
'disabled'=> true
]); ?>
]); ?>
</div>
</div>
<div class="row">
@ -75,14 +75,14 @@
</div>
</div>
<div class="col6">
<div class="col6">
<?php if($this->getUser('group') === self::GROUP_ADMIN): ?>
<?php echo template::select('registrationUserEditGroup', self::$groupEdits, [
'disabled' => ($this->getUrl(2) === $this->getUser('id')),
'help' => ($this->getUrl(2) === $this->getUser('id') ? 'Impossible de modifier votre propre groupe.' : ''),
'label' => 'Groupe <em>(Banni : en attente d\'approbation)</em>',
'selected' => $groups[$this->getData(['user', $this->getUrl(2), 'group'])]
]); ?>
'selected' => $this->getData(['user', $this->getUrl(2), 'group'])
]); ?>
Autorisations :
<ul id="registrationUserEditGroupDescription<?php echo self::GROUP_MEMBER; ?>" class="registrationUserEditGroupDescription displayNone">
<li>Accès aux pages privées membres</li>

Loading…
Cancel
Save