Beispiel #1
0
        <div class="box box-default">
            <div class="box-header with-border">
                <h3 class="box-title">Details</h3>
            </div>
            <div class="box-body">
                <?php 
echo $form->field($model, 'name')->textInput(['size' => 50]);
?>
                <?php 
echo $form->field($model, 'type')->dropDownList(ArrayHelper::map(DiscoveryRule::getTypes(), 'id', 'name'));
?>
                <?php 
echo $form->field($model, 'auto_apply')->dropDownList(ArrayHelper::map([['id' => false, 'name' => Yii::t("topology", 'Manually')], ['id' => true, 'name' => Yii::t("topology", 'Automatically')]], 'id', 'name'));
?>
                <?php 
echo $form->field($model, 'protocol')->dropDownList(ArrayHelper::map(DiscoveryRule::getProtocols(), 'id', 'name'));
?>
                <?php 
echo $form->field($model, 'url')->textInput(['size' => 50]);
?>
                <?php 
echo $form->field($model, 'freq')->hiddenInput()->label("");
?>
            </div>
            <div class="box-footer">
                <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-6">
                        <button type="submit" class="btn btn-primary"><?php 
echo Yii::t("topology", 'Save');
?>
</button>