use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; $this->title = \Yii::t('account', 'Sing in'); Account\backend\assets\SignInAssetBundle::register($this); ?> <div class="login-box" ng-controller="SignInController"> <div class="login-logo"> <img src="/img/cookyii.png"/> <strong>COOKYII</strong>BACKEND </div> <div class="login-box-body"> <?php /** @var \cookyii\widgets\angular\ActiveForm $form */ $form = \cookyii\widgets\angular\ActiveForm::begin(['model' => $SignInForm]); echo $form->field($SignInForm, 'email')->label(false)->icon('envelope')->textInput(['placeholder' => $SignInForm->getAttributeLabel('email')]); echo $form->field($SignInForm, 'password')->label(false)->icon('lock')->passwordInput(['placeholder' => $SignInForm->getAttributeLabel('password')]); ?> <div class="row"> <div class="col-xs-8"> <?php echo $form->field($SignInForm, 'remember', ['class' => 'cookyii\\widgets\\angular\\material\\ActiveField'])->label(false)->checkbox(); ?> </div> <div class="col-xs-4"> <?php $icon = FA::icon('cog', ['ng-show' => 'in_progress', 'class' => 'wo-animate'])->spin(); echo Html::submitButton($icon . ' ' . Yii::t('account', 'Sign In'), ['class' => 'btn btn-primary btn-block btn-flat', 'ng-disabled' => 'in_progress']); ?> </div>
<?php /** * _general.php * @author Revin Roman * @link https://rmrevin.com * * @var yii\web\View $this * @var Account\backend\forms\AccountEditForm $AccountEditForm */ use cookyii\modules\Account; use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; /** @var \cookyii\widgets\angular\ActiveForm $form */ $form = \cookyii\widgets\angular\ActiveForm::begin(['model' => $AccountEditForm, 'controller' => 'AccountEditController']); ?> <div class="box general"> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('account', 'General information'); ?> </h3> </div> <div class="box-body"> <?php echo $form->field($AccountEditForm, 'name')->textInput(); echo $form->field($AccountEditForm, 'email')->textInput(); echo Html::beginTag('md-radio-group', ['ng-model' => 'data.gender']); foreach ($AccountEditForm::getGenderValues() as $gender => $label) {
<?php /** * _general.php * @author Revin Roman * @link https://rmrevin.com * * @var yii\web\View $this * @var Page\backend\forms\PageEditForm $PageEditForm */ use cookyii\modules\Page; use cookyii\widgets\angular\ActiveForm; use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; /** @var ActiveForm $ActiveForm */ $ActiveForm = ActiveForm::begin(['model' => $PageEditForm, 'controller' => 'page.EditController']); ?> <div class="box general"> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('cookyii.page', 'General information'); ?> </h3> </div> <div class="box-body"> <div class="row"> <div class="col-xs-12 col-sm-5 col-md-5 col-lg-4 left-chunk"> <?php echo $this->render('_general_base', ['ActiveForm' => $ActiveForm, 'PageEditForm' => $PageEditForm]);
<?php /** * _general.php * @author Revin Roman * @link https://rmrevin.com * * @var yii\web\View $this * @var cookyii\modules\Feed\backend\forms\SectionEditForm $SectionEditForm */ use cookyii\widgets\angular\ActiveForm; use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; /** @var ActiveForm $ActiveForm */ $ActiveForm = ActiveForm::begin(['model' => $SectionEditForm, 'controller' => 'feed.section.EditController']); ?> <div class="box general"> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('cookyii.feed', 'General information'); ?> </h3> </div> <div class="box-body"> <div class="row"> <div class="col-xs-12 col-sm-6 left-chunk"> <?php echo $this->render('_general_base', ['ActiveForm' => $ActiveForm, 'SectionEditForm' => $SectionEditForm]); ?>
use yii\helpers\Html; $this->title = \Yii::t('cookyii.account', 'Sign up'); Account\frontend\assets\SignUpAssetBundle::register($this); ?> <div class="box" ng-controller="Account.SignUpController"> <div class="box-logo"> <?php echo Html::a(Html::tag('strong', APP_NAME), ['/']); ?> </div> <div class="box-body"> <?php /** @var ActiveForm $form */ $form = ActiveForm::begin(['model' => $SignUpForm]); echo $form->field($SignUpForm, 'email')->textInput(); echo $form->field($SignUpForm, 'name')->textInput(); echo $form->field($SignUpForm, 'password')->passwordInput(); echo $form->field($SignUpForm, 'password_app')->passwordInput(); echo $form->field($SignUpForm, 'agree')->checkbox(['value' => '1', 'label' => \Yii::t('cookyii.account', 'I agree to the {terms} of use', ['terms' => Html::a(\Yii::t('cookyii.account', 'terms'), ['/site/terms'])])]); ?> <div class="row"> <div class="col-xs-12 text-right"> <?php $icon = FA::icon('cog', ['ng-show' => 'in_progress', 'class' => 'wo-animate'])->spin(); echo Html::submitButton($icon . ' ' . Yii::t('cookyii.account', 'Sign in'), ['class' => 'btn btn-sm btn-primary btn-flat', 'ng-disabled' => 'in_progress']); ?> </div> </div> <?php
use yii\helpers\Html; $this->title = \Yii::t('account', 'Forgot password'); Account\frontend\assets\ForgotPasswordAssetBundle::register($this); ?> <div class="box" ng-controller="ForgotPasswordController"> <div class="box-logo"> <?php echo Html::a(Html::img('/img/cookyii.png') . ' <strong>COOKYII</strong>frontend', ['/']); ?> </div> <div class="box-body"> <?php /** @var \cookyii\widgets\angular\ActiveForm $form */ $form = \cookyii\widgets\angular\ActiveForm::begin(['model' => $ForgotPasswordForm]); echo $form->field($ForgotPasswordForm, 'email')->icon('envelope')->textInput(['placeholder' => $ForgotPasswordForm->getAttributeLabel('email')]); ?> <div class="row"> <div class="col-xs-12 text-right"> <?php $icon = FA::icon('cog', ['ng-show' => 'in_progress', 'class' => 'wo-animate'])->spin(); echo Html::submitButton($icon . ' ' . Yii::t('account', 'Reset password'), ['class' => 'btn btn-sm btn-primary btn-flat', 'ng-disabled' => 'in_progress']); ?> </div> </div> <?php \cookyii\widgets\angular\ActiveForm::end(); ?> <?php
/** * general.php * @author Revin Roman * @link https://rmrevin.com * * @var yii\web\View $this * @var Postman\backend\forms\MessageEditForm $MessageEditForm */ use cookyii\modules\Postman; use cookyii\widgets\angular\ActiveForm; use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; use yii\helpers\Json; /** @var ActiveForm $form */ $form = ActiveForm::begin(['model' => $MessageEditForm, 'controller' => 'postman.message.EditController']); ?> <div class="box general"> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('cookyii.postman', 'General information'); ?> </h3> </div> <div class="form-notify"> <?php echo Yii::t('cookyii', 'Changes not saved yet'); ?> <?php
use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; Account\frontend\assets\FillAttributesAssetBundle::register($this); ?> <div class="box" ng-controller="FillAttributesController"> <div class="box-logo"> <?php echo Yii::t('account', 'To complete the registration you must specify your email'); ?> </div> <div class="box-body"> <?php /** @var \cookyii\widgets\angular\ActiveForm $form */ $form = \cookyii\widgets\angular\ActiveForm::begin(['model' => $FillAttributesForm]); echo $form->field($FillAttributesForm, 'email')->icon('envelope')->textInput(); ?> <div class="row"> <div class="col-xs-8"> </div> <div class="col-xs-4"> <?php $icon = FA::icon('cog', ['ng-show' => 'in_progress', 'class' => 'wo-animate'])->spin(); echo Html::submitButton($icon . ' ' . Yii::t('account', 'Sign In'), ['class' => 'btn btn-sm btn-primary btn-block btn-flat', 'ng-disabled' => 'in_progress']); ?> </div> </div> <?php \cookyii\widgets\angular\ActiveForm::end(); ?>
<?php /** * _general.php * @author Revin Roman * @link https://rmrevin.com * * @var yii\web\View $this * @var Client\backend\forms\ClientEditForm $ClientEditForm */ use cookyii\modules\Client; use cookyii\widgets\angular\ActiveForm; use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; /** @var ActiveForm $form */ $form = ActiveForm::begin(['model' => $ClientEditForm, 'controller' => 'client.EditController']); ?> <div class="box general"> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('cookyii.client', 'General information'); ?> </h3> </div> <div class="box-body"> <div class="form-group" ng-if="getClientId()"> <label class="control-label" for="clienteditform-email">Account</label> <span ng-if="!data.account">
<?php /** * _general.php * @author Revin Roman * @link https://rmrevin.com * * @var yii\web\View $this * @var Feed\backend\forms\ItemEditForm $ItemEditForm */ use cookyii\modules\Feed; use cookyii\widgets\angular\ActiveForm; use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; /** @var ActiveForm $ActiveForm */ $ActiveForm = ActiveForm::begin(['model' => $ItemEditForm, 'controller' => 'feed.item.EditController']); ?> <div class="box general"> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('cookyii.feed', 'General information'); ?> </h3> </div> <div class="box-body"> <div class="row"> <div class="col-xs-12 col-sm-5 col-md-5 col-lg-4 left-chunk"> <?php echo $this->render('_general_base', ['ActiveForm' => $ActiveForm, 'ItemEditForm' => $ItemEditForm]);
<?php /** * _general.php * @author Revin Roman * @link https://rmrevin.com * * @var yii\web\View $this * @var Account\backend\forms\AccountEditForm $AccountEditForm */ use cookyii\modules\Account; use cookyii\widgets\angular\ActiveForm; use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; /** @var ActiveForm $form */ $form = ActiveForm::begin(['model' => $AccountEditForm, 'controller' => 'account.EditController']); ?> <div class="box general"> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('cookyii.account', 'General information'); ?> </h3> </div> <div class="box-body"> <?php echo $form->field($AccountEditForm, 'name')->textInput(); echo $form->field($AccountEditForm, 'email')->textInput(); echo $form->field($AccountEditForm, 'gender')->radioList($AccountEditForm::getGenderValues());
use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; Account\frontend\assets\FillAttributesAssetBundle::register($this); ?> <div class="box" ng-controller="Account.FillAttributesController"> <div class="box-logo"> <?php echo Yii::t('cookyii.account', 'To complete the registration you must specify your email'); ?> </div> <div class="box-body"> <?php /** @var ActiveForm $form */ $form = ActiveForm::begin(['model' => $FillAttributesForm]); echo $form->field($FillAttributesForm, 'email')->textInput(); ?> <div class="row"> <div class="col-xs-12 text-center"> <?php $icon = FA::icon('cog', ['ng-show' => 'in_progress', 'class' => 'wo-animate'])->spin(); echo Html::submitButton($icon . ' ' . Yii::t('cookyii.account', 'Sign in'), ['class' => 'btn btn-sm btn-primary btn-block btn-flat', 'ng-disabled' => 'in_progress']); ?> </div> </div> <?php ActiveForm::end(); ?> </div> </div>
/** * general.php * @author Revin Roman * @link https://rmrevin.com * * @var yii\web\View $this * @var Postman\backend\forms\TemplateEditForm $TemplateEditForm */ use cookyii\modules\Postman; use cookyii\modules\Postman\resources\PostmanMessage\Model as PostmanMessageModel; use cookyii\widgets\angular\ActiveForm; use rmrevin\yii\fontawesome\FA; use yii\helpers\Html; use yii\helpers\Json; /** @var ActiveForm $form */ $form = ActiveForm::begin(['model' => $TemplateEditForm, 'controller' => 'postman.template.EditController']); /** @var PostmanMessageModel $MessageModel */ $MessageModel = \Yii::createObject(PostmanMessageModel::class); ?> <div class="box general"> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('cookyii.postman', 'General information'); ?> </h3> </div> <div class="form-notify"> <?php echo Yii::t('cookyii', 'Changes not saved yet');
use yii\helpers\Html; $this->title = \Yii::t('cookyii.account', 'Forgot password'); Account\frontend\assets\ForgotPasswordAssetBundle::register($this); ?> <div class="box" ng-controller="Account.ForgotPasswordController"> <div class="box-logo"> <?php echo Html::a(Html::tag('strong', APP_NAME), ['/']); ?> </div> <div class="box-body"> <?php /** @var ActiveForm $form */ $form = ActiveForm::begin(['model' => $ForgotPasswordForm]); echo $form->field($ForgotPasswordForm, 'email')->textInput(['placeholder' => $ForgotPasswordForm->getAttributeLabel('email')]); ?> <div class="row"> <div class="col-xs-12 text-right"> <?php $icon = FA::icon('cog', ['ng-show' => 'in_progress', 'class' => 'wo-animate'])->spin(); echo Html::submitButton($icon . ' ' . Yii::t('cookyii.account', 'Reset password'), ['class' => 'btn btn-sm btn-primary btn-flat', 'ng-disabled' => 'in_progress']); ?> </div> </div> <?php ActiveForm::end(); ?> <?php