Exemplo n.º 1
0
                            var progress = parseInt(data.loaded / data.total * 100, 10);
                            if (progress != 100) {
                                // Fix: remove focus from upload button to hide tooltip
                                $('#post_submit_button').focus();

                                // hide form buttons
                                $('.btn_container').hide();
                            }
                        });
                    </script>
                    <?php 
// Creates a list of already uploaded Files
echo \humhub\modules\file\widgets\FileUploadList::widget(array('uploaderId' => 'contentFormFiles'));
?>
                    </div>

                    <?php 
\yii\helpers\Html::hiddenInput("containerGuid", Yii::$app->user->guid);
\yii\helpers\Html::hiddenInput("containerClass", get_class(new \humhub\modules\user\models\User()));
?>
					<?php 
echo yii\helpers\Html::submitButton('Submit', array('class' => ' btn btn-info pull-right', 'style' => 'margin-top: 5px;'));
?>
                </div>
            </div>
        </div>
   </div>
</div>

<?php 
\yii\widgets\ActiveForm::end();
Exemplo n.º 2
0
        <h1><?php 
    echo yii\helpers\Html::encode($this->title);
    ?>
</h1>

        <?php 
    $form = yii\bootstrap\ActiveForm::begin(['id' => 'forgot-form', 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-4\">{input}\n{hint}</div>\n<div class=\"col-lg-4\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
    ?>

        <?php 
    echo $form->field($model, 'email')->hint(Yii::t('app', 'Enter your email. We\'ll send further instructions to recover your password'));
    ?>

        <div class="form-group">
            <div class="col-lg-offset-1 col-lg-11">
                <?php 
    echo yii\helpers\Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-primary', 'name' => 'login-button']);
    ?>
            </div>
        </div>

        <?php 
    yii\bootstrap\ActiveForm::end();
    ?>
    <?php 
}
?>

</div>
Exemplo n.º 3
0
foreach ($rules as $index => $model) {
    ?>
	<div class="edit-row">
		<div class="edit-field edit-url"><?php 
    echo $form->field($model, "[{$index}]url")->label(FALSE);
    ?>
</div>
		<div class="edit-field edit-title"><?php 
    echo $form->field($model, "[{$index}]title")->label(FALSE);
    ?>
</div>
	</div>
<?php 
}
?>
	<div class="edit-row">
		<div class="edit-field edit-url"><?php 
echo $form->field($newRule, "url")->label(FALSE);
?>
</div>
		<div class="edit-field edit-title"><?php 
echo $form->field($newRule, "title")->label(FALSE);
?>
</div>
	</div>
<?php 
echo yii\helpers\Html::submitButton(Yii::t('app', 'Update'), ['class' => 'btn btn-success']);
?>
</div>
<?php 
ActiveForm::end();