and then there was styling
This commit is contained in:
parent
17fe28a1ac
commit
c32ae39b31
1 changed files with 85 additions and 63 deletions
|
@ -4,27 +4,61 @@
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Welcome to cat</title>
|
<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 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>
|
</head>
|
||||||
<body>
|
<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="navbar"></div>
|
||||||
<div id="raw">
|
<div id="raw">
|
||||||
<div id="view"></div>
|
<div id="view"></div>
|
||||||
<div id="chart"></div>
|
<div id="chart"></div>
|
||||||
<div class="grid-container">
|
<div class="section">
|
||||||
<div class="grid-item">
|
<div class="columns">
|
||||||
<h3>Add person</h3>
|
<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">
|
<form action="/users" method="post">
|
||||||
{% csrf-field %}
|
{% csrf-field %}
|
||||||
<label for="name">Name</label><br>
|
<label for="name">Name</label><br>
|
||||||
<input type="text" name="name" id="name"><br>
|
<input type="text" name="name" id="name"><br>
|
||||||
<label for="gender">Gender</label><br>
|
<label for="gender">Gender</label><br>
|
||||||
<input type="text" name="gender" id="gender">
|
<input type="text" name="gender" id="gender">
|
||||||
<input type="submit" value="Submit">
|
<input class="button" type="submit" value="Submit">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-item">
|
<table class="table">
|
||||||
<h3>Add relation (please enter correct id's of the person)</h3>
|
<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 class="column">
|
||||||
|
<h3 class="title is-3">Cozy cuddles</h3>
|
||||||
|
<div>
|
||||||
|
<h3 class="subtitle is-3">Add relation</h3>
|
||||||
<form action="/relations" method="post">
|
<form action="/relations" method="post">
|
||||||
{% csrf-field %}
|
{% csrf-field %}
|
||||||
<div class="input-container">
|
<div class="input-container">
|
||||||
|
@ -45,37 +79,25 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" value="Submit">
|
<input class="button" type="submit" value="Submit">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-item">
|
<table class="table">
|
||||||
<h3>Users</h3>
|
<thead>
|
||||||
<div class="item-container">
|
<tr>
|
||||||
<div class="item"><b>Name</b></div>
|
<th>Person 1</th>
|
||||||
<div class="item"><b>Gender</b></div>
|
<th>Person 2</th>
|
||||||
{% for user in users %}
|
</tr>
|
||||||
<div class="item">
|
</thead>
|
||||||
{{user.name}}
|
<tbody>
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
{{user.gender}}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</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 %}
|
{% for relation in relations %}
|
||||||
<div class="item">
|
<tr>
|
||||||
{{relation.name}}
|
<td>{{relation.name}}</td>
|
||||||
</div>
|
<td>{{relation.name_2}}</td>
|
||||||
<div class="item">
|
</tr>
|
||||||
{{relation.name_2}}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -118,6 +140,6 @@
|
||||||
</script>
|
</script>
|
||||||
{% script "/js/app.js" %}
|
{% script "/js/app.js" %}
|
||||||
|
|
||||||
{% script "/js/graphing.js" %}
|
<!--{% script "/js/graphing.js" %}-->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue