Ivan - Create Ticket Form - Remove required from department, update DropDown focus [skip ci]
This commit is contained in:
parent
6b7a71cefc
commit
5527a46d5f
|
@ -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;
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
&:focus {
|
||||
outline: none;
|
||||
background-color: $medium-grey;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue