@@ -8,5 +8,6 @@
"prettifySymbolsMode.adjustCursorMovement": true,
"editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.fontLigatures": true,
- "files.trimTrailingWhitespace": true
+ "files.trimTrailingWhitespace": true,
+ "workbench.colorTheme": "Cobalt2"
}
@@ -19,7 +19,7 @@ const TrainingAdoption = adopt({
type: 'HIIT',
content: [],
trainingDate: Date.now(),
- location: '',
+ location: 'Yoga room',
attendance: 0,
published: false
}}
@@ -48,16 +48,40 @@ const TrainingForm = props => (
<Form>
<h2>Create Training</h2>
<TextInput
- label='title'
+ label='Title'
name='title'
type='text'
placeholder='title'
/>
+ <TextInput
+ label='Type'
+ name='type'
+ type='text'
+ placeholder='type'
+ />
label='Training date'
name='trainingDate'
type='date'
+ label='Location'
+ name='location'
+ placeholder='location'
+ label='Attendance'
+ name='attendance'
+ type='number'
+ placeholder='attendance'
+ label='Published'
+ name='published'
+ placeholder='published'
<button type='submit'>Create!</button>
</Form>
)}