|
2 | 2 | <div class="form-group col-12">
|
3 | 3 | <label for="title">Heading</label>
|
4 | 4 | <input name="title"
|
5 |
| - type="text" class="form-control" |
6 |
| - id="title" placeholder="Heading"> |
| 5 | + type="text" class="form-control" |
| 6 | + id="title" placeholder="Heading"> |
7 | 7 | </div>
|
8 | 8 |
|
9 | 9 | <div class="form-group col-12">
|
10 | 10 | <label for="subtitle">Article Subheading</label>
|
11 | 11 | <input name="subtitle"
|
12 |
| - type="text" class="form-control" |
13 |
| - id="subtitle" placeholder="Article Subheading"> |
| 12 | + type="text" class="form-control" |
| 13 | + id="subtitle" placeholder="Article Subheading"> |
14 | 14 | </div>
|
15 | 15 |
|
16 | 16 | <div class="form-group col-12">
|
17 | 17 | <label for="body">Article Body</label>
|
18 | 18 | <textarea name="body"
|
19 |
| - class="form-control" id="body" |
20 |
| - placeholder="Write your article here"></textarea> |
| 19 | + class="form-control" id="body" |
| 20 | + placeholder="Write your article here"></textarea> |
21 | 21 | </div>
|
22 | 22 |
|
| 23 | + <div class="form-group col-12"> |
| 24 | + <div>Categories</div> |
| 25 | + {{#each categories as |category|}} |
| 26 | + <div class="p-2" style="display: inline-block;"> |
| 27 | + <input name="category" value="{{category.id}}" type="checkbox"> |
| 28 | + <label class="text-sm-left">{{category.name}}</label> |
| 29 | + </div> |
| 30 | + |
| 31 | + {{/each}} |
| 32 | + <div class="p-2" style="display: inline-block;"> |
| 33 | + <input name="category" value="10" type="checkbox"> |
| 34 | + <label class="text-sm-left">wrong</label> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + |
| 38 | + |
23 | 39 | <div class="form-group col-10">
|
24 | 40 | <div class="row">
|
25 | 41 | <label for="author" class="col-2">Author</label>
|
|
0 commit comments