yii2-usuario icon indicating copy to clipboard operation
yii2-usuario copied to clipboard

Add information about create rule

Open bscheshirwork opened this issue 7 years ago • 1 comments

What steps will reproduce the problem?

No one info on form

What is the expected result?

something like

<?php

/*
 * This file is part of the 2amigos/yii2-usuario project.
 *
 * (c) 2amigOS! <http://2amigos.us/>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

/**
 * @var \Da\User\Model\Role $model
 * @var $this               yii\web\View
 * @var $unassignedItems    string[]
 */
$this->title = Yii::t('usuario', 'Create new rule');
$this->params['breadcrumbs'][] = $this->title;

?>

<?php $this->beginContent('@Da/User/resources/views/shared/admin_layout.php') ?>

<?= yii\bootstrap\Alert::widget(
    [
        'options' => [
            'class' => 'alert-info alert-dismissible',
        ],
        'body' => Yii::t('usuario', 'You must create the rule class first.'),
    ]
) ?>

<?= $this->render(
    '/rule/_form',
    [
        'model' => $model,
    ]
) ?>

<?php $this->endContent() ?>

What do you get instead?

https://github.com/2amigos/yii2-usuario/blob/5181bbc60a2c72aa37344a260e39cd6f6211a803/src/User/resources/views/rule/create.php#L22-L31

bscheshirwork avatar Oct 17 '18 09:10 bscheshirwork

@bscheshirwork That was done purposely, the forms provided are simply an example skeleton. In all the applications we have created we were forced to modify the design. You simply need to override the views.

tonydspaniard avatar Oct 20 '18 10:10 tonydspaniard