fix group

This commit is contained in:
osaajani 2019-11-10 01:02:10 +01:00
parent 6170e32d13
commit 4fd36ad820
4 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.git
.php_cs.cache
vendor/
composer.lock

View File

@ -10,7 +10,7 @@
* with this source code in the file LICENSE.
*/
namespace controllers\publics;
namespace controllers\publics;
/**
* Page des groups.

View File

@ -49,17 +49,17 @@
$contacts = json_encode($contacts);
?>
<input name="groupes[<?php $this->s($group['id']); ?>][groupe][id]" type="hidden" value="<?php $this->s($group['id']); ?>">
<input name="groups[<?php $this->s($group['id']); ?>][group][id]" type="hidden" value="<?php $this->s($group['id']); ?>">
<div class="form-group">
<label>Nom groupe</label>
<div class="form-group input-group">
<span class="input-group-addon"><span class="fa fa-user"></span></span>
<input name="groupes[<?php $this->s($group['id']); ?>][name]" class="form-control" type="text" placeholder="Nom groupe" autofocus required value="<?php $this->s($group['name']); ?>">
<input name="groups[<?php $this->s($group['id']); ?>][name]" class="form-control" type="text" placeholder="Nom groupe" autofocus required value="<?php $this->s($group['name']); ?>">
</div>
</div>
<div class="form-group">
<label>Contacts du groupe</label>
<input class="add-contacts form-control" name="groupes[<?php $this->s($group['id']); ?>][contacts_ids][]" value="<?php $this->s($contacts); ?>"/>
<input class="add-contacts form-control" name="groups[<?php $this->s($group['id']); ?>][contacts_ids][]" value="<?php $this->s($contacts); ?>"/>
</div>
<hr/>
<?php

View File

@ -63,7 +63,7 @@
</div>
<div class="form-group">
<label>Groupes cibles</label>
<input class="add-groupes form-control" name="groupes[]"/>
<input class="add-groupes form-control" name="groups[]"/>
</div>
<?php if (RASPISMS_SETTINGS_SMS_FLASH) { ?>
<div class="form-group">