use Ffcms\Core\Helper\HTML\Form; use Ffcms\Core\Helper\Url; $this->breadcrumbs = [Url::to('main/index') => __('Main'), __('Settings')]; $this->title = __('Settings'); ?> <h1><?php echo __('Settings'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); echo $form->start(); $baseTab = $form->field('baseDomain', 'text', ['class' => 'form-control'], __('Main domain of website. Use only in console or cron tasks, if domain cannot be defined from request string')); $baseTab .= $form->field('baseProto', 'radio', ['options' => ['http', 'https']], __('Main website transfer protocol. Use only if request data is not available in console or cron tasks')); $baseTab .= $form->field('basePath', 'text', ['class' => 'form-control'], __('FFCMS installation sub-directory, used if installed not in root. Example: /subdir/')); $baseTab .= $form->field('adminEmail', 'email', ['class' => 'form-control'], __('Define administrator email. Used in mailing functions. Other mail settings in /Private/Config/Object.php')); $baseTab .= $form->field('timezone', 'select', ['class' => 'form-control', 'options' => DateTimeZone::listIdentifiers()], __('Define website default timezone id')); $baseTab .= $form->field('userCron', 'checkbox', null, __('Initialize cron manager when user load website? Enable this option if you are not configured cron tasks in your operation system')); $baseTab .= $form->field('debug.all', 'checkbox', null, __('Enable debug bar panel for all visitors? Recommended only on development environment')); $themeTab = $form->field('theme.Front', 'select', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Front')]); $themeTab .= $form->field('theme.Admin', 'select', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Admin')]); $debugTab = '<p>' . __('The key-value of cookie to enable debugging on website') . '. ' . __('If user got this cookie he can see debug bar') . '. ' . Url::link(['main/debugcookie'], __('Set cookie for me')) . '</p>'; $debugTab .= $form->field('debug.cookie.key', 'text', ['class' => 'form-control'], __('Set cookie name(key) for enable debug bar panel')); $debugTab .= $form->field('debug.cookie.value', 'text', ['class' => 'form-control'], __('Set cookie value for enable debug bar panel')); $langTab = $form->field('singleLanguage', 'select', ['class' => 'form-control', 'options' => \App::$Translate->getAvailableLangs()], __('Default language of website')); $langTab .= $form->field('multiLanguage', 'checkbox', null, __('Must we use multi language system in site pathway')); $langTab .= $form->field('baseLanguage', 'text', ['class' => 'form-control', 'disabled' => null], __('Website base script language. Do not change it')); $langTab .= $form->field('languages', 'checkboxes', ['options' => App::$Translate->getAvailableLangs()], __('Website available languages'));
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();
<?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();
<br /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); ?> <?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']); ?>
use Ffcms\Core\Helper\Url; /** @var $model Apps\Model\Admin\Search\FormSettings */ $this->title = __('Search settings'); $this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('search/index') => __('Search'), __('Settings')]; ?> <h1><?php echo __('Search settings'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('minLength', 'text', ['class' => 'form-control'], __('Set minimum user search query length. We are strongly recommend set this value more then 2.')); echo $form->field('itemPerApp', 'text', ['class' => 'form-control'], __('How many founded items would be displayd for each search instance?')); ?> <div class="col-md-offset-3 col-md-9"><?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> </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' => '']); echo $form->start(); ?> <?php echo $form->field('name', 'text', ['class' => 'form-control'], __('Set the name of the group')); echo $form->field('permissions', 'checkboxes', ['options' => $model->getAllPermissions()]); ?> <div class="col-md-offset-3 col-md-9"> <?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> <?php echo Url::link(['user/grouplist'], __('Cancel'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish();
?> <?php echo $this->render('comments/_tabs'); ?> <h1><?php echo __('Edit comment/answer'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); echo $form->start(); ?> <?php echo $form->field('guestName', 'text', ['class' => 'form-control'], __('Guest name for this comment or answer if defined')); echo $form->field('message', 'textarea', ['class' => 'form-control wysi-comments', 'html' => true], __('Comment message text')); ?> <?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> <?php echo Url::link(['comments/read', $model->getCommentId()], __('Back'), ['class' => 'btn btn-warning']); ?> <?php echo $form->finish();
?> <?php echo $this->render('feedback/_tabs'); ?> <h1><?php echo __('Feedback settings'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '']); ?> <?php echo $form->start(); ?> <?php echo $form->field('guestAdd', 'checkbox', null, __('Allow not authorized users add feedback requests?')); echo $form->field('useCaptcha', 'checkbox', null, __('Use captcha on feedback form to prevent spam?')); ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> </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();
</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(); ?>
/** @var \Ffcms\Core\Arch\View $this */ $this->title = __('New comments'); $this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('newcomment/index') => __('New comments'), __('Settings')]; ?> <h1><?php echo __('New comments'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('snippet', 'text', ['class' => 'form-control'], __('Maximum length of comment text displayed in this widget')); echo $form->field('count', 'text', ['class' => 'form-control'], __('How many comments would be displayed in block?')); echo $form->field('cache', 'text', ['class' => 'form-control'], __('Widget default cache time in seconds. Set 0 to disable caching')); ?> <?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> <?php echo $form->finish();
<h1><?php echo __('Edit user profile'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('nick', 'text', ['class' => 'form-control']); echo $form->field('sex', 'select', ['class' => 'form-control', 'options' => ['0' => __('Unknown'), '1' => __('Male'), '2' => __('Female')], 'optionsKey' => true]); echo $form->field('birthday', 'text', ['class' => 'form-control'], __('Birthday date in d.m.Y format')); echo $form->field('city', 'text', ['class' => 'form-control']); echo $form->field('hobby', 'text', ['class' => 'form-control']); echo $form->field('phone', 'text', ['class' => 'form-control']); echo $form->field('url', 'text', ['class' => 'form-control']); ?> <div class="row"> <div class="col-md-3"> <div class="text-right"><strong><?php echo __('Account data'); ?> </strong></div> </div>
$this->title = __('Send invite'); $this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('user/index') => __('User list'), __('Send invite')]; ?> <?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->field('email', 'email', ['class' => 'form-control'], __('Specify user email')); ?> <div class="col-md-offset-3 col-md-9"> <?php echo $form->submitButton(__('Send'), ['class' => 'btn btn-primary']); ?> <?php echo Url::link(['user/index'], __('Cancel'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish();
/** @var \Ffcms\Core\Arch\View $this */ $this->title = __('New content'); $this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('newcontent/index') => __('New content'), __('Settings')]; ?> <h1><?php echo __('New content'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('categories', 'multiselect', ['class' => 'form-control', 'options' => $model->getCategories(), 'optionsKey' => true, 'size' => 4], __('Select categories of wich content will be selected')); echo $form->field('count', 'text', ['class' => 'form-control'], __('How many content items would be displayed in block?')); echo $form->field('cache', 'text', ['class' => 'form-control'], __('Widget default cache time in seconds. Set 0 to disable caching.')); ?> <?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> <?php echo $form->finish();
echo __('Category manage'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '']); ?> <?php echo $form->start(); ?> <?php $items = []; foreach (\App::$Properties->get('languages') as $lang) { $items[] = ['type' => 'tab', 'text' => __('Lang') . ': ' . Str::upperCase($lang), 'content' => $form->field('title.' . $lang, 'text', ['class' => 'form-control'], __('Enter category title, visible for users')) . $form->field('description.' . $lang, 'text', ['class' => 'form-control'], __('Enter category description')), 'html' => true, 'active' => $lang === \App::$Request->getLanguage(), '!secure' => true]; } ?> <?php echo Nav::display(['property' => ['class' => 'nav-pills'], 'blockProperty' => ['class' => 'nav-locale-block nav-border'], 'tabAnchor' => 'category-update-locale', 'items' => $items]); ?> <?php $pathProperty = ['class' => 'form-control']; if ((int) $model->id == '1') { $pathProperty['disabled'] = ''; } else { echo $form->field('dependId', 'select', ['class' => 'form-control', 'options' => $model->categoryList(), 'optionsKey' => true], __('Select owner category for this category')); } ?>
<?php use Ffcms\Core\Helper\HTML\Form; use Ffcms\Core\Helper\Url; /** @var Apps\Model\Admin\Contenttag\FormSettings $model */ /** @var Ffcms\Core\Arch\View $this */ $this->title = __('Content tags'); $this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('contenttag/index') => __('Content tags'), __('Settings')]; ?> <h1><?php echo __('Content tags'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal']); echo $form->start(); ?> <?php echo $form->field('count', 'text', ['class' => 'form-control'], __('Set count of displayed tags in widget block')); echo $form->field('cache', 'text', ['class' => 'form-control'], __('Set default widget caching time. Set 0 to disable cache')); ?> <?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> <?php echo $form->finish();
<h1><?php echo __('Content settings'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '']); ?> <?php echo $form->start(); ?> <?php echo $form->field('itemPerCategory', 'text', ['class' => 'form-control'], __('Count of content items per each page of category')); echo $form->field('userAdd', 'checkbox', null, __('Allow users add content pages?')); echo $form->field('multiCategories', 'checkbox', null, __('Display content from child categories?')); echo $form->field('galleryResize', 'text', ['class' => 'form-control'], __('Specify maximum size of image in gallery in px')); echo $form->field('gallerySize', 'text', ['class' => 'form-control'], __('Specify maximum image size in gallery in kb. Example: 500 = 0,5 mb')); echo $form->field('rss', 'checkbox', null, __('Allow use RSS display for categories where this is enabled?')); ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> </div> <?php echo $form->finish();
?> <h1><?php echo __('Profile settings'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('usersOnPage', 'text', ['class' => 'form-control'], __('How many users will be displayed per one list page?')); echo $form->field('guestView', 'checkbox', null, __('Allow guests view user profiles?')); echo $form->field('wallPostOnPage', 'text', ['class' => 'form-control'], __('How many wall posts must be displayed per one page?')); echo $form->field('delayBetweenPost', 'text', ['class' => 'form-control'], __('Delay between 2 posts on wall from one user in seconds')); echo $form->field('rating', 'checkbox', null, __('Enable user rating system?')); echo $form->field('ratingDelay', 'text', ['class' => 'form-control'], __('Delay in seconds between repeat change of rating from one user(model: one to one)')); ?> <div class="col-md-offset-3 col-md-9"><?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> </div> <?php echo $form->finish();
<h1><?php echo __('Feedback'); ?> </h1> <?php if (\App::$User->isAuth()) { echo $this->render('feedback/_authTabs'); } else { echo "<hr />"; } $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); echo $form->start(); ?> <?php echo $form->field('name', 'text', ['class' => 'form-control'], __('Enter your name, used in feedback emails')); echo $form->field('email', 'email', ['class' => 'form-control'], __('Enter the email to contact with you')); echo $form->field('message', 'textarea', ['class' => 'form-control', 'rows' => 7], __('Enter your feedback request text. Please, dont use HTML or other codes.')); ?> <?php if ($useCaptcha === true) { 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-offset-3 col-md-9">
echo __('Manage addition field'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php $nameTab = []; foreach (\App::$Properties->get('languages') as $lang) { $nameTab[] = ['type' => 'tab', 'text' => __('Lang') . ': ' . Str::upperCase($lang), 'content' => $form->field('name.' . $lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')), 'active' => $lang === \App::$Request->getLanguage(), 'html' => true, '!secure' => true]; } ?> <?php echo Nav::display(['property' => ['class' => 'nav-pills'], 'blockProperty' => ['class' => 'nav-locale-block nav-border'], 'tabAnchor' => 'fieldlist', 'items' => $nameTab]); ?> <?php echo $form->field('type', 'select', ['class' => 'form-control', 'options' => ['text', 'link']], __('Select type of additional field')); echo $form->field('reg_exp', 'text', ['class' => 'form-control'], __('Set regular expression to validate input data from user for this field. Example: /^[0-9]*$/')); echo $form->field('reg_cond', 'select', ['class' => 'form-control', 'options' => ['0' => __('Reverse (exclude) condition'), '1' => __('Direct (include) condition')], 'optionsKey' => true], __('Specify condition type of validation expression. Direct - if(cond), reverse - if(!cond)')); if ($model->reg_exp) { ?> <div class="row"> <div class="col-md-3">
if ($wall !== null) { ?> <?php // 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
?> </h1> <?php echo $this->render('profile/_listTab', ['rating' => $ratingOn]); ?> <br /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '']); ?> <?php echo $form->start(); ?> <?php echo $form->field('query', 'text', ['class' => 'form-control'], __('Enter user nickname or part of user nickname, more then 3 characters')); ?> <div class="col-md-offset-3 col-md-9"><?php echo $form->submitButton(__('Search'), ['class' => 'btn btn-primary']); ?> </div> <?php echo $form->finish(); if ($records === null || $records->count() < 1) { if ($model->send()) { echo '<div class="row"><div class="col-md-12"><div class="alert alert-danger">' . __('Users are not founded!') . '</div></div></div>'; } return; }
<?php echo $this->render('profile/_settingsTab'); ?> <h2><?php 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'); ?>
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('feedback/index') => __('Feedback'), __('Update feedback')]; echo $this->render('feedback/_tabs'); ?> <h1><?php echo __('Feedback edit'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('name', 'text', ['class' => 'form-control'], __('Author name for this item')); echo $form->field('email', 'email', ['class' => 'form-control'], __('Author email for this item')); echo $form->field('message', 'textarea', ['class' => 'form-control'], __('Message text')); ?> <div class="col-md-offset-3 col-md-9"> <?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> </div> <?php echo $form->finish();
$this->title = __('Change password'); $this->breadcrumbs = [Url::to('main/index') => __('Home'), Url::to('profile/show', \App::$User->identity()->getId()) => __('Profile'), __('Password')]; ?> <?php echo $this->render('profile/_settingsTab'); ?> <h1><?php echo __('Change password'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '', 'method' => 'post']); echo $form->start(); ?> <?php echo $form->field('current', 'password', ['class' => 'form-control'], __('Enter your current account password')); echo $form->field('new', 'password', ['class' => 'form-control'], __('Enter new password for account')); echo $form->field('renew', 'password', ['class' => 'form-control'], __('Repeat new password for account')); ?> <div class="col-md-offset-3 col-md-9"><?php echo $form->submitButton(__('Update'), ['class' => 'btn btn-primary']); ?> </div> <?php echo $form->finish();
<?php echo $this->render('profile/_settingsTab'); ?> <h1><?php echo __('Profile settings'); ?> </h1> <hr /> <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '', 'method' => 'post']); echo $form->start(); ?> <?php echo $form->field('nick', 'text', ['class' => 'form-control'], __('Enter your nickname or real name')); echo $form->field('sex', 'select', ['class' => 'form-control', 'options' => ['0' => __('Unknown'), '1' => __('Male'), '2' => __('Female')], 'optionsKey' => true], __('Choose your gender')); echo $form->field('birthday', 'text', ['class' => 'form-control'], __('Enter your birthday date in d.m.Y format')); echo $form->field('city', 'text', ['class' => 'form-control'], __('Enter the name of the city where you live')); echo $form->field('hobby', 'text', ['class' => 'form-control'], __('Enter your hobbies in comma-separated format')); echo $form->field('phone', 'text', ['class' => 'form-control'], __('Enter your phone number without spaces, if you want to make it public for other users')); echo $form->field('url', 'text', ['class' => 'form-control'], __('If you have your own homepage - enter url there')); foreach (ProfileField::all() as $custom) { echo $form->field('custom_data.' . $custom->id, 'text', ['class' => 'form-control']); } ?> <div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Save'), ['class' => 'btn btn-primary']); ?> </div>
</h1> <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
<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' => null]); echo $form->field('title', 'text', ['class' => 'form-control', 'disabled' => null]); ?> <div class="col-md-offset-3 col-md-9"> <?php echo $form->submitButton(__('Remove'), ['class' => 'btn btn-danger']); ?> <?php echo Url::link(['content/index'], __('Cancel'), ['class' => 'btn btn-default']); ?> </div> <?php echo $form->finish();
<?php if ($model !== null) { ?> <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
?> <?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('count', 'text', ['class' => 'form-control', 'disabled' => ''], __('Count of content items to total remove')); ?> <div class="col-md-offset-3 col-md-9"><?php echo $form->submitButton(__('Total remove'), ['class' => 'btn btn-danger']); ?> </div> <?php echo $form->finish();