mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 17:02:18 +00:00
Begin bootstrap port
This commit is contained in:
@@ -1,23 +1,23 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% block title %}List{% endblock %}
|
{% block title %}List{% endblock %}
|
||||||
|
{% load paginator from filters %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h4>Asset List</h4>
|
<h2 class="text-center">Asset List</h2>
|
||||||
|
|
||||||
<form method="post" id="asset-filter-form" class="row">
|
<div class="col-lg-6">
|
||||||
{% csrf_token %}
|
<form method="post" id="asset-filter-form">
|
||||||
<div class="input-field col l11 s12">
|
{% csrf_token %}
|
||||||
<input type="text" name="asset_id">
|
<div class="input-group">
|
||||||
<label for="asset_id">Asset ID</label>
|
<input type="text" name="asset_id" placeholder="Asset ID" class="form-control">
|
||||||
</div>
|
<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">
|
<table class="table">
|
||||||
<button type="submit" class="btn">Search</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<table class="striped">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Asset ID</th>
|
<th>Asset ID</th>
|
||||||
@@ -32,7 +32,11 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include 'helpers/paginator.html' %}
|
{% if is_paginated %}
|
||||||
|
<div class="col-md-6 text-right">
|
||||||
|
{% paginator %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
@@ -44,4 +48,4 @@
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -6,9 +6,11 @@
|
|||||||
<td>{{ item.category }}</td>
|
<td>{{ item.category }}</td>
|
||||||
<td>{{ item.status }}</td>
|
<td>{{ item.status }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'asset_detail' item.pk %}"><i class="material-icons">visibility</i></a>
|
<div class="btn-group" role="group">
|
||||||
<a href="{% url 'asset_update' item.pk %}"><i class="material-icons">edit</i></a>
|
<button type="button" class="btn btn-default" formaction="{% url 'asset_detail' item.pk %}"><i class="glyphicon glyphicon-eye-open"></i> View</button>
|
||||||
<a href="{% url 'asset_update' item.pk %}?duplicate=true"><i class="material-icons">content_copy</i></a>
|
<button type="button" class="btn btn-default" formaction="{% url 'asset_update' item.pk %}"><i class="glyphicon glyphicon-edit"></i> Edit</button>
|
||||||
|
<button type="button" class="btn btn-default" formaction="{% url 'asset_update' item.pk %}?duplicate=true"><i class="glyphicon glyphicon-duplicate"></i> Duplicate</button>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
{% if is_paginated %}
|
|
||||||
<ul class="pagination center-align">
|
|
||||||
{% if page_obj.has_previous %}
|
|
||||||
<li class="waves-effect"><a href="?page={{ page_obj.previous_page_number }}" class="no-pad"><i class="material-icons nnt-purple">chevron_left</i></a></li>
|
|
||||||
{% else %}
|
|
||||||
<li class="disabled"><i class="material-icons grey-text">chevron_left</i></li>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<li class="nnt-orange" id="page">{{ page_obj.number }} of {{ page_obj.paginator.num_pages }}</li>
|
|
||||||
|
|
||||||
{% if page_obj.has_next %}
|
|
||||||
<li class="waves-effect"><a href="?page={{ page_obj.next_page_number }}" class="no-pad"><i class="material-icons nnt-purple">chevron_right</i></a></li>
|
|
||||||
{% else %}
|
|
||||||
<li class="disabled"><i class="material-icons grey-text">chevron_right</i></li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
Reference in New Issue
Block a user