Begin bootstrap port

This commit is contained in:
warlordjones
2019-10-01 19:59:02 +01:00
parent d89d449ab1
commit a9a05b06fa
3 changed files with 25 additions and 36 deletions

View File

@@ -1,23 +1,23 @@
{% extends 'base.html' %}
{% block title %}List{% endblock %}
{% load paginator from filters %}
{% block content %}
<h4>Asset List</h4>
<h2 class="text-center">Asset List</h2>
<form method="post" id="asset-filter-form" class="row">
{% csrf_token %}
<div class="input-field col l11 s12">
<input type="text" name="asset_id">
<label for="asset_id">Asset ID</label>
</div>
<div class="col-lg-6">
<form method="post" id="asset-filter-form">
{% csrf_token %}
<div class="input-group">
<input type="text" name="asset_id" placeholder="Asset ID" class="form-control">
<label for="asset_id" class="sr-only">Asset ID</label>
<span class="input-group-btn"><button type="submit" class="btn">Search</button></span>
</div>
</form>
</div>
<div class="input-field col l1 offset-s4">
<button type="submit" class="btn">Search</button>
</div>
</form>
<table class="striped">
<table class="table">
<thead>
<tr>
<th>Asset ID</th>
@@ -32,7 +32,11 @@
</tbody>
</table>
{% include 'helpers/paginator.html' %}
{% if is_paginated %}
<div class="col-md-6 text-right">
{% paginator %}
</div>
{% endif %}
{% endblock %}
@@ -44,4 +48,4 @@
return false;
});
</script>
{% endblock %}
{% endblock %}