Пример #1
0
<?php

use yii\helpers\Html;
use pavlinter\buttons\InputButton;
use pavlinter\adm\Adm;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model app\models\ContactMsg */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="contact-msg-form">

    <?php 
$form = Adm::begin('ActiveForm');
?>

    <div class="row">
        <div class="col-xs-12 col-sm-4 col-md-4">
            <?php 
echo $form->field($model, 'from_email')->textInput(['maxlength' => 320]);
?>
        </div>
        <div class="col-xs-12 col-sm-4 col-md-4">
            <?php 
echo $form->field($model, 'to_email')->textInput(['maxlength' => 320]);
?>
        </div>
        <div class="col-xs-12 col-sm-4 col-md-4">
            <?php 
echo $form->field($model, 'subject')->textInput(['maxlength' => 300]);
Пример #2
0
$userModel = Adm::getInstance()->manager->createUser();
$languages = Yii::$app->getI18n()->getLanguages();
$attributes = $userModel->attributes();
$var = '';
foreach ($attributes as $attribute) {
    if (in_array($attribute, ['auth_key', 'password_hash', 'password_reset_token', 'role', 'status'])) {
        continue;
    }
    $var .= "{" . $attribute . "} - " . $userModel->getAttributeLabel($attribute) . "<br/>";
}
?>

<div class="oplata-transaction-form m-t-lg">

    <?php 
$form = Adm::begin('ActiveForm', ['id' => 'order-form']);
?>

    <div class="row">
        <div class="col-md-6">
            <section class="panel">
                <header class="panel-heading">
                    <?php 
if ($model->isNewRecord) {
    ?>
                        <?php 
    echo Adm::t('oplata', 'Order');
    ?>
                    <?php 
} else {
    ?>