Пример #1
0
 /**
  * @dataProvider selectMultipleTrueAndOpntionsProvider
  */
 public function testSelectMultipleTrueAndOptions($expected, $name, array $options = [], $value = null, $multiple = true)
 {
     $this->assertEquals($expected, \Helpers\Form::select($name, $options, $value, $multiple));
 }
    <div id="phone_numDiv" class="form-group">
        <div class="row">
            <div class="col-md-offset-4 col-md-4">
                <label for="phone_num">Phone Number: </label>
                <input type="text" id="phone_num" name="phone_num" class="form-input text form-control">
            </div>
        </div>
    </div>

    <div id="seasonIdDiv" class="form-group">
        <div class="row">
            <div class="col-md-offset-4 col-md-4">
                <label for="seasonId">Season: </label>
                <?php 
echo \helpers\Form::select(array('name' => 'seasonId', 'id' => 'seasonId', 'class' => 'form-control', 'data' => $data['season_names']));
?>
            </div>
        </div>
    </div>

    <div id="hometownDiv" class="form-group">
        <div class="row">
            <div class="col-md-offset-4 col-md-4">
                <label for="hometown">Hometown: </label>
                <?php 
echo \helpers\Form::input(array('name' => 'hometown', 'id' => 'hometown', 'class' => 'form-control', 'placeholder' => 'City, State'));
?>
            </div>
        </div>
    </div>
Пример #3
0
<div class="main-title">
    <h1><?php 
echo $this->title;
?>
</h1>
</div>

<div class="row">
    <div class="col-sm-6 col-sm-offset-3">
        <?php 
echo $form = new Form();
?>
        <?php 
echo $form->inputText($model, 'Username');
?>
        <?php 
echo $form->inputText($model, 'Email');
?>
        <?php 
echo $form->checkBox($model, 'Activated');
?>
        <?php 
echo $form->select($model, 'GroupID', $model->dataRoles);
?>
        <?php 
echo $form->submitButton('Update');
?>
    </div>
</div>