Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS123-Canteeneo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Willard Torres
CS123-Canteeneo
Commits
77d152c6
Commit
77d152c6
authored
Oct 29, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move delete button on dish entry, add confirmation
parent
540dcf8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
editdish.html
canteeneo/templates/editdish.html
+0
-3
stall.html
canteeneo/templates/stall.html
+6
-1
No files found.
canteeneo/templates/editdish.html
View file @
77d152c6
...
...
@@ -25,9 +25,6 @@
<a
href=
"{{ url_for('stall', stall_id=stall.id) }}"
><button
type=
"button"
class=
"link-button"
>
Back
</button></a>
</div>
</form>
<form
action=
"{{ url_for('delete_dish', stall_id=stall.id, dish_id=dish.id) }}"
method=
"POST"
>
<button
type=
"submit"
class=
"button-delete"
>
Delete
</button></a>
</form>
</div>
<script>
document
.
getElementById
(
"image-upload"
).
onchange
=
function
()
{
...
...
canteeneo/templates/stall.html
View file @
77d152c6
...
...
@@ -17,7 +17,12 @@
<div
class=
"list-info"
>
<span
class=
"list-name"
>
{{dish.name}}
</span>
<span
class=
"list-price"
>
Php{{dish.price}}
</span>
<a
href=
"{{ url_for('edit_dish', stall_id=stall.id, dish_id=dish.id) }}"
><button
class=
"list-button"
>
Edit
</button></a>
<div>
<a
href=
"{{ url_for('edit_dish', stall_id=stall.id, dish_id=dish.id) }}"
><button
class=
"list-button"
>
Edit
</button></a>
<form
action=
"{{ url_for('delete_dish', stall_id=stall.id, dish_id=dish.id) }}"
method=
"POST"
onsubmit=
"return confirm('Are you sure you want to delete {{dish.name}}')"
>
<button
type=
"submit"
class=
"list-button button-delete"
>
Delete
</button></a>
</form>
</div>
</div>
</div>
{% endfor %} {% endif %}
...
...
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