Skip to content

Commit 3e152e0

Browse files
committed
Added checkboxes
1 parent f821dd0 commit 3e152e0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/App.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@
1414
<label for="content">Content</label>
1515
<textarea class="form-control" id="content" v-model="post.content" cols="30" rows="10"></textarea>
1616
</div>
17+
18+
<div class="form-group">
19+
<input type="checkbox" id="publish-immediately" v-model="post.publishImmediately">
20+
<label for="publish-immediately">Publish immediately</label>
21+
</div>
22+
23+
<div class="form-group">
24+
<label>Share on</label>
25+
26+
<div v-for="media in formData.socialMedia">
27+
<input type="checkbox" :id="media" :value="media" v-model="post.shareOn">
28+
<label :for="media">{{ media }}</label>
29+
</div>
30+
</div>
1731
</form>
1832

1933
<hr>

0 commit comments

Comments
 (0)