mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
28 lines
995 B
HTML
28 lines
995 B
HTML
{% extends "base.html" %}
|
|
{% load font_awesome %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{{ title }}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if create_url %}
|
|
<a class="btn btn-success pull-right" href="{% url create_url %}">{% icon 'plus' %} {%trans "Create New" %}</a>
|
|
{% endif %}
|
|
<table class="table table-hover table-striped">
|
|
{% for object in object_list %}
|
|
<tr>
|
|
<td>{{ object }}
|
|
<div class="btn-group pull-right">
|
|
<a class="btn btn-success" href="{% url update_url object.id %}">{% icon 'edit' %} {%trans "Edit"%}</a>
|
|
{% if extra_urls %}
|
|
{% for url in extra_urls %}
|
|
<a class="btn btn-primary" href="{% url url.0 object.id %}">{{ url.1 }}</a>
|
|
{% endfor %}
|
|
{% endif %}
|
|
<a class="btn btn-danger" href="{% url delete_url object.id %}">{% icon 'times' %} {%trans "Delete" %}</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endblock %} |