Exemple #1
0
echo $model->id;
?>
" class="btn btn-md btn-primary">View All Project Messages</a>
							</div>
						</div>
					</div>
				</div>

				<div class="col-md-6 admin-notes">
					<div class="panel panel-default">
					<div class="panel-heading"><strong>Project Notes</strong> <em>(Viewable to admins only)</em></div>
					<?php 
$form = ActiveForm::begin();
?>
					<?php 
echo \yii\redactor\widgets\Redactor::widget(['model' => $model, 'attribute' => 'admin_notes', 'clientOptions' => ['minHeight' => 200]]);
?>

						<div class="panel-body">
							<div class="form-group">
								<?php 
echo Html::submitButton('Update', ['class' => 'btn btn-primary']);
?>
							</div>
						</div>

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

					</div>
Exemple #2
0
            <div class="row">
                <div class="col-sm-3"><?php 
    echo $form->field($model, 'twilio_number')->textInput(['disabled' => 'disabled']);
    ?>
</div> <!--col-->
             </div> <!--row-->

            <?php 
}
?>


            <label>Project Overview / Description</label>
            <?php 
echo \yii\redactor\widgets\Redactor::widget(['model' => $model, 'attribute' => 'description']);
?>

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

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

        </div> <!--col-->