fix small template erros

pull/530/head
xiaokong1937@gmail.com 2016-09-05 22:20:50 +08:00
parent 397da7d676
commit 6aedfb5219
3 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>{% trans 'Create user' %}</h5>
<h5>{% block user_template_title %}{% trans 'Create user' %}{% endblock %}</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
@ -94,4 +94,4 @@
});
})
</script>
{% endblock %}
{% endblock %}

View File

@ -1,5 +1,6 @@
{% extends 'users/_user.html' %}
{% load i18n %}
{% block user_template_title %}{% trans "Edit user" %}{% endblock %}
{% block username %}
<div class="form-group">
<label for="{{ form.username.id_for_label }}" class="col-sm-2 control-label">{% trans 'Username' %}</label>
@ -16,4 +17,4 @@
<input id="password" name="password" type="password" class="form-control">
</div>
</div>
{% endblock %}
{% endblock %}

View File

@ -34,7 +34,7 @@
<td class="text-center" title="{% for user_group in user.group.all %} {{ user_group.name }} {% endfor %}"> {{ user.groups.all|join_queryset_attr:"name" }} </td>
<th class="text-center">{{ user.name }}</th>
<td class="text-center">
{% if user.is_expired %}
{% if user.is_expired and user.is_active %}
<i class="fa fa-times text-danger"></i>
{% else %}
<i class="fa fa-check text-navy"></i>