Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
P
ptarpwatraining
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
training
ptarpwatraining
Commits
9f6041f1
Commit
9f6041f1
authored
May 05, 2021
by
Azrul Amir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update feedback page
parent
fb89ab48
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
4 deletions
+77
-4
MainLayout.vue
src/layouts/MainLayout.vue
+3
-3
feedbackform.vue
src/pages/feedbackform.vue
+72
-0
routes.js
src/router/routes.js
+2
-1
No files found.
src/layouts/MainLayout.vue
View file @
9f6041f1
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
</q-item>
</q-item>
<q-item
v-for=
"link in links3"
:key=
"link.text"
v-ripple
clickable
>
<q-item
v-for=
"link in links3"
:key=
"link.text"
v-ripple
clickable
:to=
"link.url"
>
<q-item-section
avatar
>
<q-item-section
avatar
>
<q-icon
color=
"grey"
:name=
"link.icon"
/>
<q-icon
color=
"grey"
:name=
"link.icon"
/>
</q-item-section>
</q-item-section>
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<q-separator
class=
"q-my-md"
/>
<q-separator
class=
"q-my-md"
/>
<q-item
v-for=
"link in links4"
:key=
"link.text"
v-ripple
clickable
>
<q-item
v-for=
"link in links4"
:key=
"link.text"
v-ripple
clickable
:to=
"link.url"
>
<q-item-section
avatar
>
<q-item-section
avatar
>
<q-icon
color=
"grey"
:name=
"link.icon"
/>
<q-icon
color=
"grey"
:name=
"link.icon"
/>
</q-item-section>
</q-item-section>
...
@@ -170,7 +170,7 @@ export default {
...
@@ -170,7 +170,7 @@ export default {
links4
:
[
links4
:
[
{
icon
:
'settings'
,
text
:
'Settings'
},
{
icon
:
'settings'
,
text
:
'Settings'
},
{
icon
:
'help'
,
text
:
'Help'
},
{
icon
:
'help'
,
text
:
'Help'
},
{
icon
:
'feedback'
,
text
:
'Send feedback'
}
{
icon
:
'feedback'
,
text
:
'Send feedback'
,
url
:
'feedback'
}
],
],
buttons1
:
[
buttons1
:
[
{
text
:
'About'
},
{
text
:
'About'
},
...
...
src/pages/feedbackform.vue
0 → 100644
View file @
9f6041f1
<
template
>
<q-page
padding
>
<div
class=
"q-pa-md"
>
<q-card
class=
"my-card"
>
<img
src=
"https://www.viewsonic.com/library/wp-content/uploads/2019/08/Feedback-1.jpg"
>
<q-card-section>
<div
class=
"text-h6"
>
Feedback Form
</div>
<div
class=
"text-subtitle2"
>
Your Feedback matter to us. Please fill in required information.
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none"
>
<q-form
@
submit=
"onSubmit"
@
reset=
"onReset"
class=
"q-gutter-md"
>
<q-input
dense
filled
v-model=
"email"
type=
"email"
suffix=
"@uitm.edu.my"
>
<template
v-slot:before
>
<q-icon
name=
"mail"
/>
</
template
>
</q-input>
<q-input
filled
dense
v-model=
"name"
label=
"Your name"
lazy-rules
/>
<q-input
v-model=
"feedbackinput"
filled
label=
"Your feedback"
type=
"textarea"
/>
<div>
<q-btn
label=
"Submit Feedback"
type=
"submit"
color=
"red"
/>
<q-btn
label=
"Reset"
type=
"reset"
color=
"primary"
flat
class=
"q-ml-sm"
/>
</div>
</q-form>
</q-card-section>
</q-card>
</div>
</q-page>
</template>
<
script
>
export
default
{
// name: 'PageName',
data
()
{
return
{
email
:
''
,
name
:
''
,
feedbackinput
:
''
}
},
methods
:
{
onSubmit
:
function
(
event
)
{
this
.
$q
.
notify
({
message
:
'Your feedback was successfully submitted.'
,
icon
:
'check'
,
color
:
'green'
})
},
onReset
:
function
(
event
)
{
this
.
email
=
''
this
.
name
=
''
this
.
feedbackinput
=
''
}
}
}
</
script
>
src/router/routes.js
View file @
9f6041f1
...
@@ -9,7 +9,8 @@ const routes = [
...
@@ -9,7 +9,8 @@ const routes = [
{
path
:
'contact-us'
,
component
:
()
=>
import
(
'pages/contactus.vue'
)
},
{
path
:
'contact-us'
,
component
:
()
=>
import
(
'pages/contactus.vue'
)
},
{
path
:
'my-account'
,
component
:
()
=>
import
(
'pages/myaccount.vue'
)
},
{
path
:
'my-account'
,
component
:
()
=>
import
(
'pages/myaccount.vue'
)
},
{
path
:
'fines'
,
component
:
()
=>
import
(
'pages/fine.vue'
)
},
{
path
:
'fines'
,
component
:
()
=>
import
(
'pages/fine.vue'
)
},
{
path
:
'borrowing-history'
,
component
:
()
=>
import
(
'pages/borrow.vue'
)
}
{
path
:
'borrowing-history'
,
component
:
()
=>
import
(
'pages/borrow.vue'
)
},
{
path
:
'feedback'
,
component
:
()
=>
import
(
'pages/feedbackform.vue'
)
}
]
]
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment