film-exif/src/views/Film/FilmAddView.js

68 lines
1.2 KiB
JavaScript
Raw Normal View History

2018-04-03 14:13:16 -04:00
import { Component } from 'inferno';
import {
2018-04-03 15:19:45 -04:00
Button,
Col,
2018-04-03 14:13:16 -04:00
Form,
2018-04-03 15:19:45 -04:00
Row,
2018-04-03 14:13:16 -04:00
} from '../../components/Bootstrap'
2018-04-03 22:27:41 -04:00
import { FormBlock } from '../../components';
2018-04-03 14:13:16 -04:00
export class FilmAddView extends Component {
2018-04-03 15:19:45 -04:00
constructor (props) {
super (props);
2018-04-03 14:13:16 -04:00
2018-04-03 15:19:45 -04:00
this.state = {
};
}
render () {
return (
<Form>
<Row>
2018-04-04 09:32:18 -04:00
<FormBlock
2018-04-03 22:27:41 -04:00
label="Brand"
name="brand"
required
/>
<FormBlock
label="Film Name"
name="film-name"
required
/>
<FormBlock
label="Film Speed (ISO)"
max="6400"
name="film-speed-asa"
required
type="number"
/>
<FormBlock
label="Film Speed (DIN)"
name="film-speed-din"
type="number"
/>
<FormBlock
label="Film Format"
name="film-format"
>
<select className="custom-select" id="film-format" name="film-format">
<option value="110">110</option>
<option value="120">120</option>
<option value="127">127</option>
<option value="135">135</option>
</select>
</FormBlock>
2018-04-03 15:19:45 -04:00
</Row>
<Row>
2018-04-03 22:27:41 -04:00
<Col xs={12}>
2018-04-03 15:19:45 -04:00
<Button color="primary" type="submit">Save</Button>
</Col>
</Row>
</Form>
)
}
2018-04-03 14:13:16 -04:00
}