Skip to content

Commit e90c599

Browse files
committed
create model
1 parent d3d068d commit e90c599

File tree

2 files changed

+401
-7
lines changed

2 files changed

+401
-7
lines changed

public/js/app.js

Lines changed: 303 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,6 +2039,99 @@ __webpack_require__.r(__webpack_exports__);
20392039
//
20402040
//
20412041
//
2042+
//
2043+
//
2044+
//
2045+
//
2046+
//
2047+
//
2048+
//
2049+
//
2050+
//
2051+
//
2052+
//
2053+
//
2054+
//
2055+
//
2056+
//
2057+
//
2058+
//
2059+
//
2060+
//
2061+
//
2062+
//
2063+
//
2064+
//
2065+
//
2066+
//
2067+
//
2068+
//
2069+
//
2070+
//
2071+
//
2072+
//
2073+
//
2074+
//
2075+
//
2076+
//
2077+
//
2078+
//
2079+
//
2080+
//
2081+
//
2082+
//
2083+
//
2084+
//
2085+
//
2086+
//
2087+
//
2088+
//
2089+
//
2090+
//
2091+
//
2092+
//
2093+
//
2094+
//
2095+
//
2096+
//
2097+
//
2098+
//
2099+
//
2100+
//
2101+
//
2102+
//
2103+
//
2104+
//
2105+
//
2106+
//
2107+
//
2108+
//
2109+
//
2110+
//
2111+
//
2112+
//
2113+
//
2114+
//
2115+
//
2116+
//
2117+
//
2118+
//
2119+
//
2120+
//
2121+
//
2122+
//
2123+
//
2124+
//
2125+
//
2126+
//
2127+
//
2128+
//
2129+
//
2130+
//
2131+
//
2132+
//
2133+
//
2134+
//
20422135
/* harmony default export */ __webpack_exports__["default"] = ({
20432136
data: function data() {
20442137
return {
@@ -38502,7 +38595,7 @@ var render = function() {
3850238595
_vm._v(" "),
3850338596
_c("td", [_vm._v(_vm._s(student.phone))]),
3850438597
_vm._v(" "),
38505-
_c("td", [_vm._v("Dele")])
38598+
_vm._m(1, true)
3850638599
])
3850738600
}),
3850838601
0
@@ -38518,7 +38611,137 @@ var render = function() {
3851838611
)
3851938612
])
3852038613
])
38521-
])
38614+
]),
38615+
_vm._v(" "),
38616+
_c(
38617+
"div",
38618+
{
38619+
staticClass: "modal fade",
38620+
attrs: {
38621+
id: "exampleModal",
38622+
tabindex: "-1",
38623+
role: "dialog",
38624+
"aria-labelledby": "exampleModalLabel",
38625+
"aria-hidden": "true"
38626+
}
38627+
},
38628+
[
38629+
_c(
38630+
"div",
38631+
{ staticClass: "modal-dialog", attrs: { role: "document" } },
38632+
[
38633+
_c("div", { staticClass: "modal-content" }, [
38634+
_vm._m(2),
38635+
_vm._v(" "),
38636+
_c("div", { staticClass: "modal-body" }, [
38637+
_c("form", [
38638+
_c("div", { staticClass: "form-group" }, [
38639+
_c("label", { attrs: { for: "exampleInputEmail1" } }, [
38640+
_vm._v("Name")
38641+
]),
38642+
_vm._v(" "),
38643+
_c("input", {
38644+
directives: [
38645+
{
38646+
name: "model",
38647+
rawName: "v-model",
38648+
value: _vm.name,
38649+
expression: "name"
38650+
}
38651+
],
38652+
staticClass: "form-control",
38653+
attrs: { type: "text", placeholder: "Enter Name" },
38654+
domProps: { value: _vm.name },
38655+
on: {
38656+
input: function($event) {
38657+
if ($event.target.composing) {
38658+
return
38659+
}
38660+
_vm.name = $event.target.value
38661+
}
38662+
}
38663+
})
38664+
]),
38665+
_vm._v(" "),
38666+
_c("div", { staticClass: "form-group" }, [
38667+
_c("label", { attrs: { for: "exampleInputEmail1" } }, [
38668+
_vm._v("Email")
38669+
]),
38670+
_vm._v(" "),
38671+
_c("input", {
38672+
directives: [
38673+
{
38674+
name: "model",
38675+
rawName: "v-model",
38676+
value: _vm.email,
38677+
expression: "email"
38678+
}
38679+
],
38680+
staticClass: "form-control",
38681+
attrs: { type: "email", placeholder: "Enter email" },
38682+
domProps: { value: _vm.email },
38683+
on: {
38684+
input: function($event) {
38685+
if ($event.target.composing) {
38686+
return
38687+
}
38688+
_vm.email = $event.target.value
38689+
}
38690+
}
38691+
})
38692+
]),
38693+
_vm._v(" "),
38694+
_c("div", { staticClass: "form-group" }, [
38695+
_c("label", { attrs: { for: "exampleInputEmail1" } }, [
38696+
_vm._v("Phone")
38697+
]),
38698+
_vm._v(" "),
38699+
_c("input", {
38700+
directives: [
38701+
{
38702+
name: "model",
38703+
rawName: "v-model",
38704+
value: _vm.phone,
38705+
expression: "phone"
38706+
}
38707+
],
38708+
staticClass: "form-control",
38709+
attrs: { type: "phone", placeholder: "Enter Phone" },
38710+
domProps: { value: _vm.phone },
38711+
on: {
38712+
input: function($event) {
38713+
if ($event.target.composing) {
38714+
return
38715+
}
38716+
_vm.phone = $event.target.value
38717+
}
38718+
}
38719+
})
38720+
]),
38721+
_vm._v(" "),
38722+
_c(
38723+
"button",
38724+
{
38725+
staticClass: "btn btn-primary",
38726+
attrs: { type: "submit" },
38727+
on: {
38728+
click: function($event) {
38729+
$event.preventDefault()
38730+
return _vm.saveStudent($event)
38731+
}
38732+
}
38733+
},
38734+
[_vm._v("\n Submit\n ")]
38735+
)
38736+
])
38737+
]),
38738+
_vm._v(" "),
38739+
_vm._m(3)
38740+
])
38741+
]
38742+
)
38743+
]
38744+
)
3852238745
])
3852338746
}
3852438747
var staticRenderFns = [
@@ -38539,6 +38762,84 @@ var staticRenderFns = [
3853938762
_c("th", { attrs: { scope: "col" } }, [_vm._v("Action")])
3854038763
])
3854138764
])
38765+
},
38766+
function() {
38767+
var _vm = this
38768+
var _h = _vm.$createElement
38769+
var _c = _vm._self._c || _h
38770+
return _c("td", [
38771+
_c(
38772+
"button",
38773+
{
38774+
staticClass: "btn btn-primary",
38775+
attrs: {
38776+
type: "button",
38777+
"data-toggle": "modal",
38778+
"data-target": "#exampleModal"
38779+
}
38780+
},
38781+
[_vm._v("\n Edit\n ")]
38782+
),
38783+
_vm._v("\n |\n "),
38784+
_c(
38785+
"button",
38786+
{
38787+
staticClass: "btn btn-primary",
38788+
attrs: {
38789+
type: "button",
38790+
"data-toggle": "modal",
38791+
"data-target": "#exampleModal"
38792+
}
38793+
},
38794+
[_vm._v("\n Delete\n ")]
38795+
)
38796+
])
38797+
},
38798+
function() {
38799+
var _vm = this
38800+
var _h = _vm.$createElement
38801+
var _c = _vm._self._c || _h
38802+
return _c("div", { staticClass: "modal-header" }, [
38803+
_c(
38804+
"h5",
38805+
{ staticClass: "modal-title", attrs: { id: "exampleModalLabel" } },
38806+
[_vm._v("Modal title")]
38807+
),
38808+
_vm._v(" "),
38809+
_c(
38810+
"button",
38811+
{
38812+
staticClass: "close",
38813+
attrs: {
38814+
type: "button",
38815+
"data-dismiss": "modal",
38816+
"aria-label": "Close"
38817+
}
38818+
},
38819+
[_c("span", { attrs: { "aria-hidden": "true" } }, [_vm._v("×")])]
38820+
)
38821+
])
38822+
},
38823+
function() {
38824+
var _vm = this
38825+
var _h = _vm.$createElement
38826+
var _c = _vm._self._c || _h
38827+
return _c("div", { staticClass: "modal-footer" }, [
38828+
_c(
38829+
"button",
38830+
{
38831+
staticClass: "btn btn-secondary",
38832+
attrs: { type: "button", "data-dismiss": "modal" }
38833+
},
38834+
[_vm._v("\n Close\n ")]
38835+
),
38836+
_vm._v(" "),
38837+
_c(
38838+
"button",
38839+
{ staticClass: "btn btn-primary", attrs: { type: "button" } },
38840+
[_vm._v("Save changes")]
38841+
)
38842+
])
3854238843
}
3854338844
]
3854438845
render._withStripped = true

0 commit comments

Comments
 (0)