and then there was styling
This commit is contained in:
parent
17fe28a1ac
commit
c32ae39b31
1 changed files with 85 additions and 63 deletions
|
@ -4,78 +4,100 @@
|
||||||
<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">
|
||||||
<form action="/users" method="post">
|
<h3 class="title is-3">Little humans</h3>
|
||||||
{% csrf-field %}
|
<div>
|
||||||
<label for="name">Name</label><br>
|
<h3 class="subtitle is-3">Add human</h3>
|
||||||
<input type="text" name="name" id="name"><br>
|
<form action="/users" method="post">
|
||||||
<label for="gender">Gender</label><br>
|
{% csrf-field %}
|
||||||
<input type="text" name="gender" id="gender">
|
<label for="name">Name</label><br>
|
||||||
<input type="submit" value="Submit">
|
<input type="text" name="name" id="name"><br>
|
||||||
</form>
|
<label for="gender">Gender</label><br>
|
||||||
</div>
|
<input type="text" name="gender" id="gender">
|
||||||
<div class="grid-item">
|
<input class="button" type="submit" value="Submit">
|
||||||
<h3>Add relation (please enter correct id's of the person)</h3>
|
</form>
|
||||||
<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>
|
</div>
|
||||||
<input type="submit" value="Submit">
|
<table class="table">
|
||||||
</form>
|
<thead>
|
||||||
</div>
|
<tr>
|
||||||
<div class="grid-item">
|
<th>Name</th>
|
||||||
<h3>Users</h3>
|
<th>Gender</th>
|
||||||
<div class="item-container">
|
</tr>
|
||||||
<div class="item"><b>Name</b></div>
|
</thead>
|
||||||
<div class="item"><b>Gender</b></div>
|
<tbody>
|
||||||
{% for user in users %}
|
{% for user in users %}
|
||||||
<div class="item">
|
<tr>
|
||||||
{{user.name}}
|
<td>{{user.name}}</td>
|
||||||
</div>
|
<td>{{user.gender}}</td>
|
||||||
<div class="item">
|
</tr>
|
||||||
{{user.gender}}
|
{% endfor %}
|
||||||
</div>
|
</tbody>
|
||||||
{% endfor %}
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="column">
|
||||||
<div class="grid-item">
|
<h3 class="title is-3">Cozy cuddles</h3>
|
||||||
<h3>Relations</h3>
|
<div>
|
||||||
<div class="item-container">
|
<h3 class="subtitle is-3">Add relation</h3>
|
||||||
<div class="item"><b>Person 1</b></div>
|
<form action="/relations" method="post">
|
||||||
<div class="item"><b>Person 2</b></div>
|
{% csrf-field %}
|
||||||
{% for relation in relations %}
|
<div class="input-container">
|
||||||
<div class="item">
|
<div class="input-item">
|
||||||
{{relation.name}}
|
<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>
|
</div>
|
||||||
<div class="item">
|
<table class="table">
|
||||||
{{relation.name_2}}
|
<thead>
|
||||||
</div>
|
<tr>
|
||||||
{% endfor %}
|
<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>
|
</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