cat/resources/html/home.html

146 lines
5.5 KiB
HTML
Raw Normal View History

2019-01-11 23:10:58 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to cat</title>
2019-01-12 00:29:04 +01:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css">
2019-01-11 23:10:58 +01:00
<script src="https://cdn.jsdelivr.net/npm/vega@4.4.0"></script>
2019-01-12 00:29:04 +01:00
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
2019-01-11 23:10:58 +01:00
</head>
<body>
2019-01-12 00:29:04 +01:00
<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>
2019-01-11 23:10:58 +01:00
<div id="navbar"></div>
<div id="raw">
<div id="view"></div>
<div id="chart"></div>
2019-01-12 00:29:04 +01:00
<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>
2019-01-11 23:10:58 +01:00
</div>
2019-01-12 00:29:04 +01:00
<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>
2019-01-11 23:10:58 +01:00
</div>
2019-01-12 00:29:04 +01:00
<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>
2019-01-11 23:10:58 +01:00
</div>
2019-01-12 00:29:04 +01:00
<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>
2019-01-11 23:10:58 +01:00
</div>
</div>
</div>
</div>
<div id="app">
<div class="container-fluid">
<div class="card-deck">
<div class="card-block">
<h4>Welcome to cat</h4>
<p>If you're seeing this message, that means you haven't yet compiled your ClojureScript!</p>
<p>Please run <code>lein figwheel</code> to start the ClojureScript compiler and reload the page.</p>
<h4>For better ClojureScript development experience in Chrome follow these steps:</h4>
<ul>
<li>Open DevTools
<li>Go to Settings ("three dots" icon in the upper right corner of DevTools > Menu > Settings F1 >
General > Console)
<li>Check-in "Enable custom formatters"
<li>Close DevTools
<li>Open DevTools
</ul>
<p>See <a href="http://www.luminusweb.net/docs/clojurescript.md">ClojureScript</a> documentation for
further details.</p>
</div>
</div>
</div>
</div>
<!-- scripts and styles -->
{% style "/assets/bootstrap/css/bootstrap.min.css" %}
{% style "/assets/font-awesome/css/all.css" %}
{% style "/css/screen.css" %}
{% script "/assets/jquery/jquery.min.js" %}
{% script "/assets/font-awesome/js/all.js" %}
{% script "/assets/tether/dist/js/tether.min.js" %}
{% script "/assets/bootstrap/js/bootstrap.min.js" %}
<script type="text/javascript">
var csrfToken = "{{csrf-token}}";
</script>
{% script "/js/app.js" %}
2019-01-12 00:29:04 +01:00
<!--{% script "/js/graphing.js" %}-->
2019-01-11 23:10:58 +01:00
</body>
</html>