File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
<div class =" col-xs-12" >
5
5
<h1 >Add Blog Post</h1 >
6
6
7
- <form >
7
+ <form @submit.prevent = " isSubmitted = true " >
8
8
<div class =" form-group" >
9
9
<label for =" title" >Title</label >
10
10
<input type =" text" class =" form-control" id =" title" v-model.trim =" post.title" >
46
46
<option v-for =" series in formData.series" :value =" series" >{{ series }}</option >
47
47
</select >
48
48
</div >
49
+
50
+ <input type =" submit" class =" btn btn-primary" value =" Publish" >
49
51
</form >
50
52
51
53
<hr >
52
54
53
- <table class =" table table-striped" >
55
+ <table class =" table table-striped" v-if = " isSubmitted " >
54
56
<thead >
55
57
<tr >
56
58
<td class =" col-xs-6" ><strong >Field</strong ></td >
97
99
export default {
98
100
data () {
99
101
return {
102
+ isSubmitted: false ,
100
103
post: {
101
104
title: ' ' ,
102
105
content: ' ' ,
You can’t perform that action at this time.
0 commit comments