<template>
    <form @submit.prevent="submit">
        
        <div class="form-group row">
          <div class="col-md-12">
            <label for="name">Role</label>
            <input type="text" class="form-control" name="name" id="name" v-model="fields.name" placeholder="Enter name..."/>
            <div v-if="errors && errors.name" class="text-danger">{{ errors.name[0] }}</div>
          </div>

        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-success btn-round">Save</button>
            <button type="reset" class="btn btn-danger btn-round">Clear</button>
        </div>       
        

        
    </form>
</template>

<script>
import FormMixin from '../shared/FormMixin';

export default {
  mixins: [ FormMixin ],

  data() {
    return {
      'action': '/fc/roles/store',
      'text': 'Role added succesfully',
      'redirect': ''
    }
  }
}

</script>