jeudi 26 janvier 2017

laravel 5.3 edit checkbox in form

i have edit form called artistedit.blade.php i have problem populating check box in my form . this is the code of the form.

<form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
                
                
                <div class="form-group">
                    <label for="name">Artist Name</label>
                    <input type="text" class="form-control" id="name" name="name" value="" required>
                </div>
                <div class="form-group">
                    <label for="">Biography</label>
                    <textarea class="form-control" rows="10" name="biography" value=""></textarea>
                </div>

                <div class="form-group">
                    <label for="image">Image</label>
                    <input type="file" class="form-control" name="image" value="">
                </div>

                <div class="form-group">
                    <label class="checkbox-inline"><input type="checkbox" name="status" value="1">STATUS ON</label>
                    <label class="checkbox-inline"><input type="checkbox" name="status" value="0">STATUS OFF</label>
                </div>

                <button type="submit" class="btn btn-default"><i class="fa fa-plus"></i>Submit</button>
            </form>

i would like to see how to pupulate those inline checkboxes data from database. and also my input file field is not pupoulating the artist's name



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire