Exemple #1
0
		    
    	<div class="uk-grid">
			<div class="uk-width-1-1 uk-form-row">
				<?php 
    echo $form->field($respond, 'content')->textarea(['rows' => 5, 'class' => 'uk-width-large', 'placeholder' => 'Комментарий'])->label(false);
    ?>
		    </div> 
		    <?php 
    if ($respond->scenario == 'guest') {
        ?>
		    <?php 
        if (Yii::$app->has('authClientCollection')) {
            ?>
		    <div class="uk-margin-top">    
		        <?php 
            $authAuthChoice = \worstinme\user\AuthChoice::begin(['baseAuthUrl' => ['/user/default/auth']]);
            ?>
		        <div class="services uk-display-inline-block uk-subnav">
		            <?php 
            foreach ($authAuthChoice->getClients() as $client) {
                ?>
		                <?php 
                $authAuthChoice->clientLink($client);
                ?>
		            <?php 
            }
            ?>
		        </div>
		        <?php 
            \worstinme\user\AuthChoice::end();
            ?>
Exemple #2
0
    <?php 
echo $form->field($model, 'verifyCode')->widget(Captcha::className(), ['captchaAction' => '/user/default/captcha', 'options' => ['class' => 'uk-form-large uk-width-1-1', 'placeholder' => Yii::t('user', 'USER_CAPTCHA')]]);
?>

    <div class="uk-form-row">
        <?php 
echo Html::submitButton(Yii::t('user', 'USER_BUTTON_REG'), ['class' => 'uk-button-large uk-button uk-button-primary uk-width-1-1']);
?>
    </div>

    <?php 
if (Yii::$app->has('authClientCollection')) {
    ?>
    <div class="uk-margin-top">    
        <?php 
    $authAuthChoice = AuthChoice::begin(['baseAuthUrl' => ['/user/default/auth']]);
    ?>
        <div class="services uk-display-inline-block uk-subnav">
            <?php 
    foreach ($authAuthChoice->getClients() as $client) {
        ?>
                <?php 
        $authAuthChoice->clientLink($client);
        ?>
            <?php 
    }
    ?>
        </div>
        <?php 
    AuthChoice::end();
    ?>