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
03a1c257
Commit
03a1c257
authored
Nov 15, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change style of stall list
parent
cbba767a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
25 deletions
+33
-25
stalls.html
canteeneo/templates/stalls.html
+33
-25
No files found.
canteeneo/templates/stalls.html
View file @
03a1c257
...
...
@@ -3,32 +3,40 @@
{% block title %}Dashboard{% endblock %}
{% block content %}
<div
class=
"dashboard-container"
>
<div
class=
"dashboard-row"
style=
"justify-content: space-around; align-items: baseline;"
>
<span
style=
"font-size: 32pt; flex-grow: 2;"
>
Hello, {{ owner.name }}
</span>
<a
href=
"{{url_for('new_stall')}}"
><button
class=
"link-button"
style=
"flex-grow: 1;"
>
Register a Stall
</button></a>
<a
href=
"{{url_for('logout')}}"
><button
class=
"link-button"
style=
"flex-grow: 1;"
>
Logout
</button></a>
<div
class=
"row"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<h1>
Hello, {{ owner.name }}
</h1>
</div>
<div
class=
"dashboard-row"
>
<div
class=
"list"
>
<div
class=
"col-sm-3 col-sm-offset-1"
>
<a
class=
"btn btn-primary btn-lg"
href=
"{{url_for('new_stall')}}"
>
Register a Stall
</a>
</div>
<div
class=
"col-sm-2"
>
<a
class=
"btn btn-primary btn-lg"
href=
"{{url_for('logout')}}"
>
Logout
</a>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-8 col-sm-offset-2"
>
{% if stalls|length > 0 %}
<table
class=
"table"
>
{% for stall in stalls %}
<div
class=
"list-item"
style=
"width: 100%;"
>
<div
class=
"list-info"
>
<span
class=
"list-name"
>
{{stall.name}}
</span>
</div>
<div
class=
"dashboard-row"
>
<a
href=
"{{ url_for('view_stall', stall_id=stall.id) }}"
><button
class=
"list-button"
>
Manage Stall
</button></a>
<tr>
<td>
<h1>
{{ stall.name }}
</h1>
</td>
<td>
<a
class=
"btn btn-default btn-lg"
href=
"{{ url_for('view_stall', stall_id=stall.id) }}"
>
Manage Stall
</a>
</td>
<td>
<form
action=
"{{ url_for('delete_stall', stall_id=stall.id) }}"
method=
"POST"
onsubmit=
"return confirm('Are you sure you want to delete {{stall.name}}?');"
>
<button
type=
"submit"
class=
"list-button button-delete"
>
Delete
</button>
<button
class=
"btn btn-danger btn-lg"
type=
"submit"
class=
"list-button button-delete"
>
Delete
</button>
</form>
</div
>
</div
>
</td
>
</tr
>
{% endfor %}
</table>
{% else %}
<p>
You have no stalls registered!
</p>
{% endif %}
</div>
</div>
</div>
{% endblock %}
\ No newline at end of file
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