Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ZeusWPI
Cat
Commits
c32ae39b
Commit
c32ae39b
authored
Jan 12, 2019
by
flynn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
and then there was styling
parent
17fe28a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
63 deletions
+85
-63
resources/html/home.html
resources/html/home.html
+85
-63
No files found.
resources/html/home.html
View file @
c32ae39b
...
...
@@ -4,78 +4,100 @@
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Welcome to cat
</title>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css"
>
<script
src=
"https://cdn.jsdelivr.net/npm/vega@4.4.0"
></script>
<script
defer
src=
"https://use.fontawesome.com/releases/v5.3.1/js/all.js"
></script>
</head>
<body>
<section
class=
"section"
>
<div
class=
"container"
>
<h1
class=
"title"
>
Hello World
</h1>
<p
class=
"subtitle"
>
My first website with
<strong>
Bulma
</strong>
!
</p>
</div>
</section>
<div
id=
"navbar"
></div>
<div
id=
"raw"
>
<div
id=
"view"
></div>
<div
id=
"chart"
></div>
<div
class=
"grid-container"
>
<div
class=
"grid-item"
>
<h3>
Add person
</h3>
<form
action=
"/users"
method=
"post"
>
{% csrf-field %}
<label
for=
"name"
>
Name
</label><br>
<input
type=
"text"
name=
"name"
id=
"name"
><br>
<label
for=
"gender"
>
Gender
</label><br>
<input
type=
"text"
name=
"gender"
id=
"gender"
>
<input
type=
"submit"
value=
"Submit"
>
</form>
</div>
<div
class=
"grid-item"
>
<h3>
Add relation (please enter correct id's of the person)
</h3>
<form
action=
"/relations"
method=
"post"
>
{% csrf-field %}
<div
class=
"input-container"
>
<div
class=
"input-item"
>
<label
for=
"from"
>
Person from
</label><br>
<select
name=
"from_id"
id=
"from"
>
{% for user in users %}
<option
value=
"{{user.id}}"
>
{{user.name}}
</option>
{% endfor %}
</select>
</div>
<div
class=
"input-item"
>
<label
for=
"to"
>
Person to
</label><br>
<select
name=
"to_id"
id=
"to"
>
{% for user in users %}
<option
value=
"{{user.id}}"
>
{{user.name}}
</option>
{% endfor %}
</select>
</div>
</div>
<input
type=
"submit"
value=
"Submit"
>
</form>
</div>
<div
class=
"grid-item"
>
<h3>
Users
</h3>
<div
class=
"item-container"
>
<div
class=
"item"
><b>
Name
</b></div>
<div
class=
"item"
><b>
Gender
</b></div>
{% for user in users %}
<div
class=
"item"
>
{{user.name}}
<div
class=
"section"
>
<div
class=
"columns"
>
<div
class=
"column"
>
<h3
class=
"title is-3"
>
Little humans
</h3>
<div>
<h3
class=
"subtitle is-3"
>
Add human
</h3>
<form
action=
"/users"
method=
"post"
>
{% csrf-field %}
<label
for=
"name"
>
Name
</label><br>
<input
type=
"text"
name=
"name"
id=
"name"
><br>
<label
for=
"gender"
>
Gender
</label><br>
<input
type=
"text"
name=
"gender"
id=
"gender"
>
<input
class=
"button"
type=
"submit"
value=
"Submit"
>
</form>
</div>
<div
class=
"item"
>
{{user.gender}}
</div>
{% endfor %}
<table
class=
"table"
>
<thead>
<tr>
<th>
Name
</th>
<th>
Gender
</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>
{{user.name}}
</td>
<td>
{{user.gender}}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div
class=
"grid-item"
>
<h3>
Relations
</h3>
<div
class=
"item-container"
>
<div
class=
"item"
><b>
Person 1
</b></div>
<div
class=
"item"
><b>
Person 2
</b></div>
{% for relation in relations %}
<div
class=
"item"
>
{{relation.name}}
</div>
<div
class=
"item"
>
{{relation.name_2}}
<div
class=
"column"
>
<h3
class=
"title is-3"
>
Cozy cuddles
</h3>
<div>
<h3
class=
"subtitle is-3"
>
Add relation
</h3>
<form
action=
"/relations"
method=
"post"
>
{% csrf-field %}
<div
class=
"input-container"
>
<div
class=
"input-item"
>
<label
for=
"from"
>
Person from
</label><br>
<select
name=
"from_id"
id=
"from"
>
{% for user in users %}
<option
value=
"{{user.id}}"
>
{{user.name}}
</option>
{% endfor %}
</select>
</div>
<div
class=
"input-item"
>
<label
for=
"to"
>
Person to
</label><br>
<select
name=
"to_id"
id=
"to"
>
{% for user in users %}
<option
value=
"{{user.id}}"
>
{{user.name}}
</option>
{% endfor %}
</select>
</div>
</div>
<input
class=
"button"
type=
"submit"
value=
"Submit"
>
</form>
</div>
{% endfor %}
<table
class=
"table"
>
<thead>
<tr>
<th>
Person 1
</th>
<th>
Person 2
</th>
</tr>
</thead>
<tbody>
{% for relation in relations %}
<tr>
<td>
{{relation.name}}
</td>
<td>
{{relation.name_2}}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
...
...
@@ -118,6 +140,6 @@
</script>
{% script "/js/app.js" %}
{% script "/js/graphing.js" %}
<!--
{% script "/js/graphing.js" %}
-->
</body>
</html>
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