mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
80 lines
2.6 KiB
PHP
80 lines
2.6 KiB
PHP
<?php
|
|
|
|
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
$this->assign('title', __('Benutzer suchen'));
|
|
// In a View class
|
|
$this->loadHelper('Form', [
|
|
'templates' => 'horizontal_form',
|
|
]);
|
|
|
|
$stateOptions = [
|
|
'all' => __('Alle'),
|
|
//'account created'=>__('Konto angelegt'),
|
|
//'account not on login-server' => __('Konto nicht auf Login-Server'),
|
|
//'email activated' => __('Konto aktiviert'),
|
|
//'account copied to community' => __('Konto auf Gemeinschafts-Server'),
|
|
'email not activated' => __('Konto nicht aktiviert'),
|
|
//'account multiple times on login-server' => __('Konto mehrfach vorhanden'),
|
|
//'account not on community server' => __('Konto nicht auf Gemeinschafts-Server'),
|
|
//'no keys' => __('Keine Schlüssel generiert')
|
|
];
|
|
|
|
?>
|
|
<?= $this->Html->css([
|
|
'loginServer/style.css',
|
|
'rippleUI/style.css',
|
|
'materialdesignicons.min.css'
|
|
]) ?>
|
|
<style type="text/css">
|
|
td.actions {
|
|
padding: 10px 30px;
|
|
}
|
|
td.actions p {
|
|
white-space:normal;
|
|
font-size:16px;
|
|
}
|
|
td.actions ul {
|
|
list-style-type:decimal;
|
|
padding-left:20px;
|
|
}
|
|
td.actions ul li {
|
|
white-space:initial;
|
|
- font-size:14px;
|
|
}
|
|
td.actions ul li .btn {
|
|
margin: 0 15px;
|
|
}
|
|
</style>
|
|
<div class="action-form">
|
|
<p class="form-header">Benutzer suchen</p>
|
|
<div class="form-body">
|
|
<?= $this->Form->create($searchForm, []) ?>
|
|
<?= $this->Form->control('search', ['label' => __('Suchbegriff'), 'class' => 'form-control', 'id' => 'inlineFormInputGroup', 'placeholder' => __('Vorname/Nachname/E-Mail'), 'required' => false]) ?>
|
|
<?= $this->Form->control('account_state', ['label' => __('Konto Status'), 'class' => 'form-control', 'type' => 'select', 'options' => $stateOptions]) ?>
|
|
<?= $this->Form->button('<i class="material-icons-outlined">search</i> ' . __('Suchen'), ['class' => 'form-button']) ?>
|
|
<?= $this->Form->hidden('order_row', ['id' => 'input-order-row']) ?>
|
|
</div>
|
|
</div>
|
|
<div class="default-container">
|
|
<div id="gradido-mithril-user-search"></div>
|
|
</div>
|
|
<?php // adding scripts vendor and core from ripple ui for popup/tooltip ?>
|
|
<script type="text/javascript">
|
|
<?php if(isset($finalUserEntrys)) : ?>
|
|
g_users = <?= json_encode($finalUserEntrys); ?>;
|
|
<?php else: ?>
|
|
g_users = [];
|
|
<?php endif; ?>
|
|
csfr_token = '<?= $csfr_token ?>';
|
|
|
|
</script>
|
|
<?= $this->Html->script('userSearch.min') ?>
|
|
<!-- npm run build im mithril client! -->
|
|
<!-- keybase://team/gradido/gradido_mithril_user_search -->
|
|
|