Add groups (teams)
This commit is contained in:
25
app/Template/group/associate.php
Normal file
25
app/Template/group/associate.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<section id="main">
|
||||
<div class="page-header">
|
||||
<ul>
|
||||
<li><i class="fa fa-users fa-fw"></i><?= $this->url->link(t('View all groups'), 'group', 'index') ?></li>
|
||||
<li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('View group members'), 'group', 'users', array('group_id' => $group['id'])) ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if (empty($users)): ?>
|
||||
<p class="alert"><?= t('There is no user available.') ?></p>
|
||||
<?php else: ?>
|
||||
<form method="post" action="<?= $this->url->href('group', 'addUser', array('group_id' => $group['id'])) ?>" autocomplete="off">
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('group_id', $values) ?>
|
||||
|
||||
<?= $this->form->label(t('User'), 'user_id') ?>
|
||||
<?= $this->form->select('user_id', $users, $values, $errors, array('required'), 'chosen-select') ?><br/>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
||||
<?= t('or') ?>
|
||||
<?= $this->url->link(t('cancel'), 'group', 'index') ?>
|
||||
</div>
|
||||
</form>
|
||||
<?php endif ?>
|
||||
</section>
|
||||
Reference in New Issue
Block a user