Exemple #1
0
use Ffcms\Core\Helper\HTML\Form;
use Ffcms\Core\Helper\Url;
/** @var \Apps\Model\Admin\Newcomment\FormSettings $model */
/** @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']);
?>
Exemple #2
0
/** @var $model \Apps\Model\Front\User\FormSocialAuth */
/** @var $this \Ffcms\Core\Arch\View */
$this->title = __('Social login');
?>

<h1 class="text-center"><?php 
echo __('Social login');
?>
</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 
Exemple #3
0
$this->title = __('Settings');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('user/index') => __('User list'), __('Settings')];
?>

<?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']);
?>
Exemple #4
0
?>

<?php 
$items = [];
foreach ($records as $item) {
    $message = Str::sub(\App::$Security->strip_tags($item->message), 0, 50);
    $author = Simplify::parseUserNick($item->user_id, $item->guest_name);
    if ((int) $item->user_id > 0) {
        $author = Url::link(['user/update', (int) $item->user_id], $author);
    }
    $items[] = [['text' => $item->id], ['text' => $message], ['text' => $author, 'html' => true], ['text' => Date::convertToDatetime($item->created_at, Date::FORMAT_TO_HOUR)]];
}
?>
<div class="table-responsive">
<?php 
echo Table::display(['table' => ['class' => 'table table-bordered'], 'thead' => ['titles' => [['text' => '#'], ['text' => __('Message')], ['text' => __('Author')], ['text' => __('Date')]]], 'tbody' => ['items' => $items]]);
?>
</div>


<?php 
$form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']);
echo $form->start();
?>

<?php 
echo $form->submitButton(__('Delete'), ['class' => 'btn btn-danger']);
?>

<?php 
echo $form->finish();
Exemple #5
0
/** @var $this object */
$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 
Exemple #6
0
/** @var $model \Apps\Model\Front\User\FormRegister */
/** @var $this \Ffcms\Core\Arch\View */
$this->title = __('Sign up');
?>

<h1 class="text-center"><?php 
echo __('Sign up');
?>
</h1>
<?php 
echo $this->render('user/_tabs');
?>
<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'));
Exemple #7
0
/** @var $pagination object */
$this->title = __('Blacklist');
$this->breadcrumbs = [Url::to('main/index') => __('Home'), Url::to('profile/show', \App::$User->identity()->getId()) => __('Profile'), __('Blacklist')];
?>

<?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();
Exemple #8
0
/** @var $pagination object */
/** @var $ratingOn int */
$this->title = __('User list') . ': ' . __('Search');
$this->breadcrumbs = [Url::to('main/index') => __('Home'), $this->title];
?>

<h1><?php 
echo $this->title;
?>
</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>
Exemple #9
0
use Ffcms\Core\Helper\HTML\Form;
use Ffcms\Core\Helper\Url;
/** @var \Apps\Model\Admin\Feedback\FormUpdate $model */
$this->title = __('Feedback update');
$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']);
Exemple #10
0
/** @var $model Apps\Model\Admin\Profile\FormSettings */
$this->title = __('Profile settings');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('profile/index') => __('Profile'), __('Settings')];
?>

<?php 
echo $this->render('profile/_tabs');
?>

<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)'));
?>
Exemple #11
0
/** @var $record object */
$this->title = __('Manage field');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('profile/index') => __('Profile list'), Url::to('profile/fieldlist') => __('Profile fields'), __('Manage field')];
?>

<?php 
echo $this->render('profile/_tabs');
?>

<h1><?php 
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]);
Exemple #12
0
<?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();
Exemple #13
0
/** @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();
Exemple #14
0
use Ffcms\Core\Helper\Url;
$this->title = __('Settings');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('feedback/index') => __('Feedback'), __('Settings')];
?>

<?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>
Exemple #15
0
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('widget/index') => __('Widgets'), Url::to('comments/index') => __('Comments'), __('Edit comment or answer')];
// use wysiwyg for comment editing by className
echo Ffcms\Widgets\Ckeditor\Ckeditor::widget(['targetClass' => 'wysi-comments', 'config' => 'config-small']);
?>

<?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']);
?>
Exemple #16
0
/** @var $this object */
$this->title = __('Profile settings');
$this->breadcrumbs = [Url::to('main/index') => __('Home'), Url::to('profile/show', \App::$User->identity()->getId()) => __('Profile'), __('Settings')];
?>

<?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']);
}
?>
Exemple #17
0
        </div>
        <h2><?php 
echo __('Wall');
?>
</h2>
        <?php 
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 
Exemple #18
0
$this->title = __('Content delete');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('content/index') => __('Contents'), __('Content delete')];
?>

<?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' => 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']);
?>
Exemple #19
0
    ?>
</p>
    <?php 
    $items = [];
    foreach ($dbModel->updateQueries as $file) {
        $items[] = ['text' => $file];
    }
    echo \Ffcms\Core\Helper\HTML\Listing::display(['type' => 'ul', 'items' => $items]);
    $form = new Form($dbModel, ['class' => 'form-horizontal', 'action' => '']);
    echo $form->start();
    echo $form->submitButton(__('Update database'), ['class' => 'btn btn-info']);
    echo $form->finish();
} elseif ($entityModel->haveRemoteNew) {
    ?>
    <p><?php 
    echo __('The newest version: <b>%version%</b> with title &laquo;<em>%title%</em>&raquo; is available to update. You can start update right now', ['version' => $entityModel->lastVersion, 'title' => $entityModel->lastInfo['name']]);
    ?>
    </p>
    <?php 
    $form = new Form($downloadModel, ['class' => 'form-horizontal', 'action' => '']);
    echo $form->start();
    echo $form->submitButton(__('Download update'), ['class' => 'btn btn-primary']);
    echo $form->finish();
} else {
    ?>
    <p><?php 
    echo __('Your system is up to date. No updates is available');
    ?>
</p>
<?php 
}
Exemple #20
0
use Ffcms\Core\Helper\Url;
$this->title = __('Category manage');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('content/categories') => __('Categories'), __('Category manage')];
?>

<?php 
echo $this->render('content/_tabs');
?>

<h1><?php 
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]);
Exemple #21
0
/** @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);
Exemple #22
0
$this->title = __('Settings');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('content/index') => __('Contents'), __('Settings')];
?>

<?php 
echo $this->render('content/_tabs');
?>

<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?'));
?>
Exemple #23
0
<?php

use Ffcms\Core\Helper\HTML\Form;
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>
Exemple #24
0
use Ffcms\Core\Helper\HTML\Form;
use Ffcms\Core\Helper\Url;
$this->title = __('Manage group');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('user/grouplist') => __('Group list'), __('Manage group')];
?>

<?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']);
?>
Exemple #25
0
<?php

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>
Exemple #26
0
/** @var \Apps\Model\Front\Feedback\FormFeedbackAdd $model */
/** @var bool $useCaptcha */
$this->title = __('Feedback');
$this->breadcrumbs = [Url::to('/') => __('Home'), __('Feedback')];
?>
<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'));
Exemple #27
0
</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();
Exemple #28
0
$this->title = __('Turn on/off');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('widget/index') => __('Widgets'), __('Turn on/off')];
?>

<h1><?php 
echo __('Widget turn on/off');
?>
</h1>
<hr />

<?php 
echo Table::display(['table' => ['class' => 'table table-bordered'], 'thead' => ['titles' => [['text' => __('Param')], ['text' => __('Value')]]], 'tbody' => ['items' => [[['text' => __('Name')], ['text' => $widget->getLocaleName()]], [['text' => __('System name')], ['text' => $widget->sys_name]], [['text' => __('Last update')], ['text' => Date::convertToDatetime($widget->updated_at, DATE::FORMAT_TO_SECONDS)]], [['text' => __('Status')], ['text' => (int) $widget->disabled === 0 ? 'On' : 'Off'], 'property' => ['class' => (int) $widget->disabled === 0 ? 'alert-success' : 'alert-danger']]]]]);
?>

<?php 
$form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '', 'enctype' => 'multipart/form-data']);
?>

<?php 
echo $form->start();
?>

<div class="col-md-12">
    <?php 
echo $form->submitButton(__('Switch'), ['class' => 'btn btn-primary']);
?>
    <?php 
echo Url::link(['widget/index'], __('Cancel'), ['class' => 'btn btn-default']);
?>
</div>
Exemple #29
0
            </div>
        </div>
    <?php 
    }
}
?>

<?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]);
    ?>
Exemple #30
0
$this->title = __('Content restore');
$this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), Url::to('content/index') => __('Contents'), __('Content restore')];
?>

<?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>