Ivan - Create Ticket Form - Remove required from department, update DropDown focus [skip ci]

This commit is contained in:
ivan 2016-08-18 22:10:07 -03:00
parent 6b7a71cefc
commit 5527a46d5f
2 changed files with 8 additions and 2 deletions

View File

@ -13,10 +13,11 @@ class CreateTicketForm extends React.Component {
render() {
return (
<div>
<Form>
<h2>Create Ticket</h2>
<Form onSubmit={this.onSubmit.bind(this)}>
<div className="row">
<FormField className="col-md-7" label="Title" name="title" validation="TITLE" required field="input" fieldProps={{size: 'large'}}/>
<FormField className="col-md-5" label="Department" name="department" required field="select" fieldProps={{
<FormField className="col-md-5" label="Department" name="department" field="select" fieldProps={{
items: [
{content: 'Sales Support'},
{content: 'Technical Issues'},
@ -31,6 +32,10 @@ class CreateTicketForm extends React.Component {
</div>
);
}
onSubmit(formState) {
console.log(formState);
}
}
export default CreateTicketForm;

View File

@ -15,6 +15,7 @@
&:focus {
outline: none;
background-color: $medium-grey;
}
}