</h1> <hr /> <p><?php echo __('Are you sure to make this item public?'); ?> </p> <?php $items = []; foreach ($records as $record) { /** @var $record \Apps\ActiveRecord\Content */ $items[] = [['text' => $record->id], ['text' => $record->getLocaled('title')], ['text' => Simplify::parseUserLink($record->author_id), 'html' => true], ['text' => Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR)]]; } ?> <div class="table-responsive"> <?php echo Table::display(['table' => ['class' => 'table table-bordered'], 'thead' => ['titles' => [['text' => '#'], ['text' => __('Title')], ['text' => __('Author')], ['text' => __('Date')]]], 'tbody' => ['items' => $items]]); ?> </div> <?php $form = new Form($model, ['class' => 'form-horizontal']); echo $form->start(); ?> <?php echo $form->submitButton(__('Publish'), ['class' => 'btn btn-warning']); ?> <?php echo $form->finish();
use Ffcms\Core\Helper\HTML\Form; use Ffcms\Core\Helper\Url; /** @var $model \Apps\Model\Admin\Main\EntityDeleteRoute */ $this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('main/routing') => __('Routing'), __('Deleting route')]; $this->title = __('Deleting route'); ?> <h1><?php echo __('Deleting route'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); echo $form->start(); ?> <?php echo $form->field('type', 'text', ['disabled' => true, 'class' => 'form-control']); echo $form->field('loader', 'text', ['disabled' => true, 'class' => 'form-control']); echo $form->field('source', 'text', ['disabled' => true, 'class' => 'form-control']); ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Delete this route'), ['class' => 'btn btn-danger']); ?> </div> <?php echo $form->finish();
<hr /> <p class="alert alert-warning"><?php echo __('This social account: %profile% used first time in our website. Please, complete form below', ['profile' => $model->profileLink]); ?> </p> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); ?> <?php echo $form->start(); ?> <?php echo $form->field('login', 'text', ['class' => 'form-control'], __('Enter your username for future use on the site')); echo $form->field('email', 'text', ['class' => 'form-control'], __('Enter your e-mail for an account')); echo $form->field('password', 'password', ['class' => 'form-control'], __('Enter a password for your account. It should be longer than 3 characters')); echo $form->field('repassword', 'password', ['class' => 'form-control'], __('Repeat your password to be sure it correct')); ?> <div class="col-md-9 col-md-offset-3"> <?php echo $form->submitButton(__('Register and sign in'), ['class' => 'btn btn-primary']); ?> <?php echo Url::link(['user/login'], __('Cancel'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish();
echo $form->start(); ?> <div class="row"> <div class="col-md-3"> <label class="pull-right"><?php echo $model->getLabel('name'); ?> </label> </div> <div class="col-md-9"> <?php echo Simplify::parseUserLink($model->id); ?> </div> </div> <p><?php echo __('Are you sure to remove this user from your blacklist?'); ?> <?php echo __('No any attentions will be displayed!'); ?> </p> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Remove'), ['class' => 'btn btn-danger']); ?> </div> <?php echo $form->finish();
/** @var $this object */ /** @var $model Apps\Model\Admin\Application\FormUpdate */ use Ffcms\Core\Helper\HTML\Form; use Ffcms\Core\Helper\Url; $this->title = __('Update app'); $this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), __('Update')]; ?> <h1><?php echo __('Update app'); ?> </h1> <hr /> <?php echo \Ffcms\Core\Helper\HTML\Table::display(['table' => ['class' => 'table table-bordered'], 'thead' => ['titles' => [['text' => __('App name')], ['text' => __('Script version')], ['text' => __('DB version')], ['text' => __('Last changes')]]], 'tbody' => ['items' => [[['text' => $model->name], ['text' => $model->scriptVersion], ['text' => $model->dbVersion], ['text' => $model->date]]]]]); ?> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->submitButton(__('Try update'), ['class' => 'btn btn-primary']); ?> <?php echo $form->finish(false);
?> <h1><?php echo __('New route'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); echo $form->start(); ?> <?php echo $form->field('type', 'select', ['class' => 'form-control', 'options' => ['Alias' => __('Static (alias) route'), 'Callback' => __('Dynamic (callback) route')], 'optionsKey' => true], __('Specify type of defined rule')); echo $form->field('loader', 'select', ['options' => ['Front', 'Admin', 'Api'], 'class' => 'form-control'], __('Select loader type where be applied rule')); echo $form->field('source', 'text', ['class' => 'form-control'], __('Define source path (for static alias) or class name (for dynamic rule) to use it for target query')); echo $form->field('target', 'text', ['class' => 'form-control'], __('Define target path or class path for displayd item on source path')); ?> <div class="col-md-9 col-md-offset-3"> <?php echo $form->submitButton(__('Add new route'), ['class' => 'btn btn-primary']); ?> <?php echo Url::link(['main/routing'], __('Cancel'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish();
echo __('Add user ignore'); ?> </h2> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '', 'method' => 'post']); echo $form->start(); ?> <?php echo $form->field('id', 'text', ['class' => 'form-control'], __('Enter id of user who you want to block')); echo $form->field('comment', 'text', ['class' => 'form-control'], __('Remark memo about this block')); ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Block'), ['class' => 'btn btn-danger']); ?> </div> <?php echo $form->finish(); ?> <h2><?php echo __('List of blocked users'); ?> </h2> <hr /> <?php if ($records !== null && $records->count() > 0) { ?>
// show notification if exist if (Obj::isArray($notify) && count($notify) > 0) { echo $this->render('native/macro/notify', ['notify' => $notify]); } ?> <?php $form = new Form($wall, ['class' => 'form-horizontal', 'method' => 'post', 'action' => ''], ['base' => 'profile/form/wall_base']); ?> <?php echo $form->start(); ?> <?php echo $form->field('message', 'textarea', ['class' => 'form-control']); ?> <div class="text-right"><?php echo $form->submitButton(__('Send'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish(); ?> <?php \App::$Alias->addPlainCode('js', "\$('#" . $wall->getFormName() . "').on('change keyup keydown paste cut', 'textarea', function () { \$(this).height(0).height(this.scrollHeight);}).find('textarea').change();"); ?> <?php } ?> <?php if ($wallRecords !== null) { foreach ($wallRecords as $post) { /** @var $referObject object */
<?php echo $form->start(); ?> <?php echo $this->render('user/_social_panel'); ?> <?php echo $form->field('login', 'text', ['class' => 'form-control'], __('Enter your username for future use on the site')); echo $form->field('email', 'text', ['class' => 'form-control'], __('Enter your e-mail for an account')); echo $form->field('password', 'password', ['class' => 'form-control'], __('Enter a password for your account. It should be longer than 3 characters')); echo $form->field('repassword', 'password', ['class' => 'form-control'], __('Repeat your password to be sure it correct')); if ($useCaptcha) { if (\App::$Captcha->isFull()) { echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; } else { echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); } } ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Register!'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish();
/** @var $this object */ /** @var $model \Apps\Model\Front\Profile\FormAvatarUpload */ $this->breadcrumbs = [Url::to('/') => __('Home'), Url::to('profile/show', $user->id) => __('Profile'), __('Avatar settings')]; $this->title = __('Avatar change'); ?> <?php echo $this->render('profile/_settingsTab'); ?> <h1><?php echo $this->title; ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '', 'enctype' => 'multipart/form-data']); echo $form->start(); ?> <?php echo $form->field('file', 'file', null, __('Select jpg, png or gif avatar')); ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Change'), ['class' => 'btn btn-warning']); ?> </div> <?php echo $form->finish();
<hr /> <p><?php echo __('Are you sure to delete all this content items?'); ?> </p> <?php $form = new Form($model, ['class' => 'form-horizontal']); ?> <?php echo $form->start(); ?> <?php $items = []; foreach ($model->data as $item) { $items[] = [['type' => 'text', 'text' => $item['id']], ['type' => 'text', 'text' => $item['title']], ['type' => 'text', 'text' => $item['date']]]; } ?> <?php echo Table::display(['table' => ['class' => 'table table-bordered'], 'thead' => ['titles' => [['text' => '#'], ['text' => __('Title')], ['text' => __('Date')]]], 'tbody' => ['items' => $items]]); ?> <?php echo $form->submitButton(__('Delete all'), ['class' => 'btn btn-danger']); ?> <?php echo Url::link(['content/index'], __('Cancel'), ['class' => 'btn btn-default']); echo $form->finish();
<?php echo $this->render('content/_tabs'); ?> <h1><?php echo $this->title; ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal']); ?> <?php echo $form->start(); ?> <?php echo $form->field('id', 'text', ['class' => 'form-control', 'disabled' => 'disabled']); echo $form->field('title', 'text', ['class' => 'form-control', 'disabled' => 'disabled']); ?> <div class="col-md-offset-3 col-md-9"><?php echo $form->submitButton(__('Restore'), ['class' => 'btn btn-success']); ?> </div> <?php echo $form->finish();
</h1> <hr /> <p><?php echo __('On this page you can install FFCMS application, using application system name. Please, type app.sys_name in form below.'); ?> </p> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('sysname', 'text', ['class' => 'form-control'], __('Specify your application system name for installation')); ?> <?php echo $form->submitButton(__('Try install'), ['class' => 'btn btn-primary']); ?> <?php echo Url::link(['application/index'], __('Cancel'), ['class' => 'btn btn-default']); ?> <?php echo $form->finish(); ?>
?> <h1 class="text-center"><?php echo __('Recovery form'); ?> </h1> <?php echo $this->render('user/_tabs'); ?> <br/> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); echo $form->start(); ?> <?php echo $form->field('email', 'email', ['class' => 'form-control'], __('Input your account email')); if (\App::$Captcha->isFull()) { echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; } else { echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); } ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Make recovery'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish();
<?php echo $this->render('user/_tabs'); ?> <h1><?php echo $this->title; ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); ?> <?php echo $form->start(); ?> <?php echo $form->field('registrationType', 'select', ['class' => 'form-control', 'options' => ['0' => __('Only invite'), '1' => __('Email approve'), '2' => __('Full opened')], 'optionsKey' => true]); echo $form->field('captchaOnLogin', 'checkbox', null, __('Show captcha on login form?')); echo $form->field('captchaOnRegister', 'checkbox', null, __('Show captcha on registration form?')); ?> <div class="col-md-offset-3 col-md-9"><?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> </div> <?php echo $form->finish();
echo $this->render('user/_tabs'); ?> <h1><?php echo __('Delete users'); ?> </h1> <hr /> <p><?php echo __('Are you sure to delete this users?'); ?> </p> <?php $items = []; foreach ($model->users as $user) { /** @var \Apps\ActiveRecord\User $user */ $items[] = [['text' => $user->getParam('id')], ['text' => $user->getParam('email')], ['text' => $user->getParam('login')], ['text' => $user->getProfile()->getNickname()], ['text' => Date::convertToDatetime($user->created_at, Date::FORMAT_TO_HOUR)]]; } ?> <?php echo Table::display(['table' => ['class' => 'table table-bordered'], 'thead' => ['titles' => [['text' => '#'], ['text' => __('Email')], ['text' => __('Login')], ['text' => __('Nickname')], ['text' => __('Register date')]]], 'tbody' => ['items' => $items]]); ?> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); echo $form->start(); echo $form->submitButton(__('Delete'), ['class' => 'btn btn-danger']) . " "; echo Url::link(['user/index'], __('Cancel'), ['class' => 'btn btn-default']); echo $form->finish();
?> <h3><?php echo __('Add answer'); ?> </h3> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('name', 'text', ['class' => 'form-control']); ?> <?php echo $form->field('email', 'email', ['class' => 'form-control']); ?> <?php echo $form->field('message', 'textarea', ['class' => 'form-control', 'rows' => 7]); ?> <div class="col-md-offset-3 col-md-9"> <?php echo $form->submitButton(__('Add answer'), ['class' => 'btn btn-primary']); ?> </div> <?php echo $form->finish(); }
<?php echo $form->start(); ?> <?php echo $this->render('user/_social_panel'); ?> <?php echo $form->field('login', 'text', ['class' => 'form-control'], __('Input you login or email')); echo $form->field('password', 'password', ['class' => 'form-control'], __('Input you password')); ?> <?php if (true === $useCaptcha) { if (\App::$Captcha->isFull()) { echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; } else { echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); } } ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Do Login'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish();