Ejemplo n.º 1
0
/* @var $this yii\web\View */
/* @var $model frontend\models\Grades */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="grades-form">

   <?php $form = ActiveForm::begin(['options'=>['enctype'=>'multipart/form-data']]); ?>
	
    <?= $form->field($model, 'grade_schoolYear')->textInput() ?>

    <?= $form->field($model, 'grade_Term')->textInput() ?>

    <?= $form->field($model, 'grade_value')->textInput(['maxlength' => true]) ?>
	<?= $form->field($model, 'file')->widget(\dosamigos\fileinput\BootstrapFileInput::className(), [
    'options' => ['multiple' => true],
    'clientOptions' => [
        'previewFileType' => 'text',
        'browseClass' => 'btn btn-success',
        'uploadClass' => 'btn btn-info',
        'removeClass' => 'btn btn-danger',
        'removeIcon' => '<i class="glyphicon glyphicon-trash"></i> '
    ],
	
])->label('Upload Grade Sheet')?>
	
	  

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
Ejemplo n.º 2
0
            <div class="row">
                <? foreach($images as $image):?>
                    <? if($image):?>
                        <div class="col-md-3 text-center">
                            <img src="<?= $image->getUrl('200x200')?>" alt=""/>
                        </div>
                    <? endif; ?>
                <? endforeach;?>
            </div>
            <?php endif;?>

        </div>
    </div>

    <div class="col-md-12">
    <?= $form->field($model, 'image[]')->widget(BootstrapFileInput::className(), [
            'options' => ['accept' => 'image/*', 'multiple' => true],
            'clientOptions' => [
                'previewFileType' => 'text',
                'browseClass' => 'btn btn-success',
                'uploadClass' => 'btn btn-info',
                'removeClass' => 'btn btn-danger',
                'removeIcon' => '<i class="glyphicon glyphicon-trash"></i> '
            ]
        ]);?>


    <?=$form->field($model, 'status')->widget(Switchery::classname(), [
        'clientOptions' => [
            'color'              => '#64bd63',
            'secondaryColor'     => '#dfdfdf',
Ejemplo n.º 3
0
/* @var $model common\models\Uploadedforms */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="uploadedforms-form" style="margin-top:50px;">

     <?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>
	 
	<?php 
echo $form->field($model, 'upload_file_name')->dropDownList(['Registration Form' => 'Registration Form', 'Grades Form' => 'Grades Form'], ['prompt' => 'Select File Type']);
?>
	
	<?php 
echo $form->field($model, 'upload_form')->widget(\dosamigos\fileinput\BootstrapFileInput::className(), ['options' => ['multiple' => true], 'clientOptions' => ['previewFileType' => 'text', 'browseClass' => 'btn btn-success', 'uploadClass' => 'btn btn-info', 'removeClass' => 'btn btn-danger', 'removeIcon' => '<i class="glyphicon glyphicon-trash"></i> ']])->label('Upload Form');
?>
	

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Insert into Record' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Ejemplo n.º 4
0
        }
        ?>
                <?php 
    }
    ?>
            </div>
            <?php 
}
?>

        </div>
    </div>

    <div class="col-md-12">
    <?php 
echo $form->field($model, 'image[]')->widget(BootstrapFileInput::className(), ['options' => ['accept' => 'image/*', 'multiple' => true], 'clientOptions' => ['previewFileType' => 'text', 'browseClass' => 'btn btn-success', 'uploadClass' => 'btn btn-info', 'removeClass' => 'btn btn-danger', 'removeIcon' => '<i class="glyphicon glyphicon-trash"></i> ']]);
?>


    <?php 
echo $form->field($model, 'status')->widget(Switchery::classname(), ['clientOptions' => ['color' => '#64bd63', 'secondaryColor' => '#dfdfdf', 'jackColor' => '#fff', 'jackSecondaryColor' => null, 'className' => 'switchery js-switch', 'disabled' => false, 'disabledOpacity' => 0.5, 'speed' => '0.3s', 'size' => 'default']])->label(false);
?>

    </div>

    <div class="col-lg-6">

<!--        --><?php 
// echo $form->field($model, 'keywords')->widget(Select2::classname(), [
//            'value' => ['red', 'green'],
//            'options' => ['placeholder' => 'Select a color ...', 'multiple' => true],