Move inventory to new repo
This commit is contained in:
31
inventory-app/templates/inventory_pick.html
Normal file
31
inventory-app/templates/inventory_pick.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<h4>{{ action_help }}: {{ slug }}</h4>
|
||||
{% include "inventory_filter.html" %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Owner</th>
|
||||
<th>User</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in items %}
|
||||
<tr>
|
||||
<td>{{ item | format_name }} {{ item.comment }}</td>
|
||||
<td>{% if item.inventory.owner %}<a href="/m/user/{{ item.inventory.owner.foreign_id }}">{{ item.inventory.owner.display_name }}</a>{% endif %}</td>
|
||||
<td>{% if item.inventory.user %}<a href="/m/user/{{ item.inventory.user.foreign_id }}">{{ item.inventory.user.display_name }}</a>{% endif %}</td>
|
||||
<td>
|
||||
<form action="/m/inventory/{{item._id}}/{{action_path}}/{{slug}}" method="get">
|
||||
<button class="waves-effect waves-light btn" type="submit">{{action_label}}</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user