<?php echo Form::model(new Author(), array('route' => 'admin.author.store', 'id' => 'new-form' )); ?>

<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'
        )); ?>

        <?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-new glyphicon glyphicon-ok',
        'data-toggle'   => 'tooltip',
        'data-placement'=> 'top',
        'title'         => "SAGLABĀT"
        )); ?>

        <?php echo Form::button(null, array(
        'class' => 'btn btn-danger btn-remove-new glyphicon glyphicon-remove',
        'data-toggle'   => 'tooltip',
        'data-placement'=> 'top',
        'title'         => "ATCELT"
        )); ?>

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

