Tomi Cvetic 5 years ago
parent
commit
949eb60be0
2 changed files with 28 additions and 3 deletions
  1. 2 1
      .vscode/settings.json
  2. 26 2
      frontend/components/trainingForm.js

+ 2 - 1
.vscode/settings.json

@@ -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"
 }

+ 26 - 2
frontend/components/trainingForm.js

@@ -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'
+        />
         <TextInput
           label='Training date'
           name='trainingDate'
           type='date'
         />
+        <TextInput
+          label='Location'
+          name='location'
+          type='text'
+          placeholder='location'
+        />
+        <TextInput
+          label='Attendance'
+          name='attendance'
+          type='number'
+          placeholder='attendance'
+        />
+        <TextInput
+          label='Published'
+          name='published'
+          type='text'
+          placeholder='published'
+        />
         <button type='submit'>Create!</button>
       </Form>
     )}