/* @var $this yii\web\View */
/* @var $model app\models\Invoice */
/* @var $form yii\widgets\ActiveForm */
$this->title = 'Change Tenant';
?>

<div class="change-tenant-form">

    <?php 
ModalForm::begin();
?>
    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]);
?>
    <?php 
Portlet::begin(['title' => $this->title, 'buttons' => [Html::submitButton('<i class="fa fa-check"></i> <u>U</u>pdate', ['class' => 'btn green-haze btn-circle', 'value' => "form#{$model->formName()}", 'accesskey' => 'u'])]]);
?>

    <div class="row">
        <div class="col-md-12">

    <?php 
echo $form->field($model, 'tenant_id', [])->widget(Select2::classname(), ['data' => $tenantSelectProvider, 'options' => ['placeholder' => 'Select a tenant ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
Portlet::end();
?>
    <?php 
ActiveForm::end();
?>
Exemplo n.º 2
0
/* @var $this yii\web\View */
/* @var $model anli\auth0\models\Tenant */
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Tenants', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
//$this->params['sidebarItems'] = Yii::$app->params['sidebarItems'];
?>
<div class="row">
<?php 
Pjax::begin(['id' => 'container-pjax', 'timeout' => false]);
?>

    <!-- BEGIN user portlet -->
    <div class="col-md-6">
    <?php 
Portlet::begin(['id' => 'user-portlet', 'title' => 'Users Permission', 'subtitle' => 'for this tenant...']);
?>

    <?php 
echo GridView::widget(['id' => 'user-gridview', 'dataProvider' => new ArrayDataProvider(['allModels' => ApiUser::find()->email('')->orderBy('email:1')->all(), 'pagination' => ['pageSize' => 10]]), 'columns' => ApiUser::column()->nickname()->email()->role($model->name)->actions("{update-role-to-user} {update-role-to-admin} {remove-tenant}", $model->id)->all()]);
?>

    <?php 
Portlet::end();
?>
    </div>
    <!-- END user portlet -->

<?php 
Pjax::end();
?>
Exemplo n.º 3
0
/* @var $this yii\web\View */
/* @var $model app\models\Timesheet */
/* @var $form yii\widgets\ActiveForm */
$this->title = 'Change Tenant';
$this->params['breadcrumbs'][] = $this->title;
//$this->params['sidebarItems'] = Yii::$app->params['sidebarItems'];
?>

<div class="tenant-login-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableAjaxValidation' => false, 'enableClientValidation' => true, 'class' => 'modalSubmit']);
?>

    <?php 
Portlet::begin(['id' => $model->formName() . '-form-portlet', 'title' => $this->title, 'buttons' => [Html::submitButton('<i class="fa fa-check"></i> Contin<u>u</u>e', ['class' => 'btn green-haze btn-circle', 'value' => "form#{$model->formName()}", 'accesskey' => 'u', 'data-pjax' => 0])]]);
?>

    <?php 
echo $form->field($model, 'tenant_id')->widget(Select2::classname(), ['data' => $model->tenantSelect2Data, 'options' => ['placeholder' => 'Select a tenant ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
Portlet::end();
?>

    <?php 
ActiveForm::end();
?>
</div>
Exemplo n.º 4
0
$this->title = 'Import From Excel';
$this->params['breadcrumbs'][] = $this->title;
?>

<!-- BEGIN ROW 1 -->
<div class="row">
<!-- BEGIN Column 1 -->
<div class="col-md-12">

<?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'options' => ['enctype' => 'multipart/form-data']]);
?>

<!-- BEGIN Portlet -->
<?php 
Portlet::begin(['title' => $this->title, 'fontIcon' => $model->fontIcon(), 'buttons' => [Html::submitButton('<i class="fa fa-check"></i> <u>U</u>pload', ['name' => 'excel-import-btn', 'class' => 'btn green-haze btn-circle', 'accesskey' => 'u'])]]);
?>
    <div class="alert alert-warning">
        <p>
            <strong>Note: </strong> The excel should have the following headers:<br/>
            <?php 
foreach ($importSafeAttributes as $key => $value) {
    ?>
                <?php 
    if (is_array($value)) {
        ?>
                    * <?php 
        echo Html::encode($key);
        ?>
<br/>
                <?php 
Exemplo n.º 5
0
use yii\data\ActiveDataProvider;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
$this->title = 'User Roles';
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="row">
<?php 
Pjax::begin(['id' => 'container-pjax', 'timeout' => false]);
?>

    <!-- BEGIN customer portlet -->
    <div class="col-md-12">
    <?php 
Portlet::begin(['id' => 'user-portlet', 'title' => 'Users', 'subtitle' => 'showing all...', 'buttons' => [Html::a('<i class="fa fa-trash"></i>', ['user-role/delete-all'], ['title' => 'Delete All User Roles', 'class' => 'btn btn-circle red btn-sm', 'data-confirm' => 'Are you sure you want to delete all items?', 'data-method' => 'post', 'data-pjax' => 0])]]);
?>

    <?php 
echo GridView::widget(['id' => 'user-gridview', 'dataProvider' => $dataProvider, 'columns' => User::column()->username()->role()->actions('{update-user-role} {delete-user-role}')->all()]);
?>

    <?php 
Portlet::end();
?>
    </div>
    <!-- END customer portlet -->

<?php 
Pjax::end();
?>
Exemplo n.º 6
0
?>

    <?php 
Portlet::end();
?>
    </div>
    <!-- END user portlet -->

    <!-- BEGIN tenant portlet -->
    <div class="col-md-6">
    <?php 
//Pjax::begin(['options' => ['id' => 'container-pjax']]);
?>
    <?php 
$checkboxButton = Html::a('<i class="fa fa-trash"></i> Delete selected', '#', ['title' => 'Delete Selected Tenant', 'class' => 'selectCheckboxButton', 'value-url' => 'http://localhost:8100/auth0/tenant/delete-checkbox', 'value-id' => 'tenant-gridview']);
Portlet::begin(['id' => 'tenant-portlet', 'title' => 'Tenants', 'subtitle' => 'showing  total users...', 'buttons' => [Html::a('<i class="fa fa-plus"></i>', false, ['value' => Url::to(['tenant/create']), 'title' => 'Create Tenant', 'class' => 'showModalButton btn btn-circle green-haze btn-sm']), Html::a('<i class="fa fa-download"></i>', false, ['value' => Url::to(['tenant/import']), 'title' => 'Import Tenant', 'class' => 'showModalButton btn btn-circle blue btn-sm']), Html::a('<i class="fa fa-cloud-download"></i>', ['tenant/export'], ['title' => 'Export Tenant', 'class' => 'btn btn-circle yellow btn-sm', 'data-pjax' => 0]), Html::a('<i class="fa fa-trash"></i>', ['tenant/delete-all'], ['title' => 'Delete All Tenant', 'class' => 'btn btn-circle red btn-sm', 'data-confirm' => 'Are you sure you want to delete all items?', 'data-method' => 'post', 'data-pjax' => 0])]]);
?>
    <?php 
echo GridView::widget(['id' => 'tenant-gridview', 'dataProvider' => new ActiveDataProvider(['query' => $tenantQuery, 'pagination' => ['pageSize' => 10]]), 'columns' => Tenant::column()->nameWithLink()->users()->actions()->all()]);
?>

    <?php 
Portlet::end();
?>
    <?php 
//Pjax::end();
?>
    </div>
    <!-- END tenant portlet -->

<?php 
Exemplo n.º 7
0
 /**
  * Renders the widget.
  */
 public function run()
 {
     Portlet::begin(['title' => $this->title, 'subtitle' => $this->subtitle, 'buttons' => [Search::widget(['searchModel' => $this->searchModel])]]);
     echo GridView::widget(['id' => 'gridview-auth0-user-list', 'dataProvider' => $this->dataProvider, 'columns' => $this->columns, 'options' => ['class' => 'table-scrollable table-scrollable-borderless'], 'tableOptions' => ['class' => 'table table-hover table-light'], 'headerRowOptions' => ['class' => 'uppercase'], 'summary' => '']);
     Portlet::end();
 }
Exemplo n.º 8
0
 /**
  * Renders the widget.
  */
 public function run()
 {
     Portlet::begin(['title' => $this->title, 'subtitle' => $this->subtitle, 'buttons' => [Search::widget(['searchModel' => $this->searchModel]), ModalButton::widget(['buttonLabel' => Html::tag('i', '', ['class' => 'fa fa-plus']), 'url' => Url::to(['tenant/ajax-create', 'pjaxId' => 'list-pjax']), 'tooltipTitle' => 'New Tenant', 'name' => 'new-tenant-button'])]]);
     echo GridView::widget(['id' => 'gridview-tenant', 'dataProvider' => $this->dataProvider, 'columns' => Tenant::column()->raw(['name'])->actions('{view} {ajax-update} {ajax-delete}')->all(), 'options' => ['class' => 'table-scrollable table-scrollable-borderless'], 'tableOptions' => ['class' => 'table table-hover table-light'], 'headerRowOptions' => ['class' => 'uppercase'], 'summary' => '']);
     Portlet::end();
 }