getFormInputMarkup() публичный статический Метод

public static getFormInputMarkup ( $field, $modelName = '' )
Пример #1
0
}}</h2>

    <form action="/<?php 
echo $gen->route();
?>
/{{$<?php 
echo $gen->modelVariableName();
?>
->id}}" method="post">

        {{ csrf_field() }}

        {{ method_field("PUT") }}
<?php 
foreach ($fields as $field) {
    if ($str = \Nvd\Crud\Db::getFormInputMarkup($field, $gen->modelVariableName())) {
        ?>

        <?php 
        echo $str;
        ?>

<?php 
    }
}
?>

        <button type="submit" class="btn btn-default">Submit</button>

    </form>
Пример #2
0
@section('content')

    <h2>Create a New <?php 
echo $gen->titleSingular();
?>
</h2>

    <form action="/<?php 
echo $gen->route();
?>
" method="post">

        {{ csrf_field() }}
<?php 
foreach ($fields as $field) {
    if ($str = \Nvd\Crud\Db::getFormInputMarkup($field)) {
        ?>

        <?php 
        echo $str;
        ?>

<?php 
    }
}
?>

        <button type="submit" class="btn btn-default">Submit</button>

    </form>