<?php echo Form::model($genre, array('route' => array('admin.genre.update', $genre->id), 'class' => 'edit-form', 'method' => 'put', 'data-id' => $genre->id)); ?>

<div class="row form-group <?php if ($errors->has('name')) echo 'has-error'?>">
    <div class="col-xs-8">
        <?php echo Form::text('name', null, array(
            'id' => 'name',
            'class' => 'form-control',
            'onfocus' => "this.value = this.value;"
        )); ?>

        <?php if($errors->has('name')): ?>
            <label class="control-label" for="new-form"><?php echo $errors->first('name'); ?></label>
        <?php endif; ?>
    </div>
    <div class="col-xs-4">
        <?php echo Form::button(null, array(
        'type' => 'submit',
        'class' => 'btn btn-success btn-submit glyphicon glyphicon-ok',
        'data-toggle'   => 'tooltip',
        'data-placement'=> 'top',
        'title'         => "SAGLABĀT"
        )); ?>

    </div>
</div>
<?php echo Form::close(); ?>

