1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00
webvirtcloud/templates/users.html

34 lines
1.5 KiB
HTML
Raw Normal View History

2015-03-02 08:52:07 +00:00
{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "Users" %}{% endblock %}
{% block content %}
2015-03-05 09:55:15 +00:00
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
{% include 'create_user_block.html' %}
<h1 class="page-header">{% trans "Users" %}</h1>
</div>
</div>
<!-- /.row -->
2015-03-02 08:52:07 +00:00
2015-03-03 09:34:09 +00:00
{% include 'errors_block.html' %}
2015-03-02 08:52:07 +00:00
{% for user in users %}
<div id="{{ user.username }}" class="col-xs-6 col-sm-4">
<div class="panel {% if user.is_active %}panel-success{% else %}panel-danger{% endif %} panel-data">
<div class="panel-heading">
<h3 class="panel-title"><strong>{{ user.username }}</strong>
<a data-toggle="modal" href="{% url 'user' user.id %}" class="pull-right"
title="{% trans "Edit" %}">
<span class="glyphicon glyphicon-cog"></span>
</a>
</h3>
</div>
<div class="panel-body">
<p>Status: {% if user.is_active %}Active{% else %}Blocked{% endif %}
</p>
</div>
</div>
</div>
{% endfor %}
{% endblock %}