25 changed files with 357 additions and 8010 deletions
-
6abonapp/models.py
-
17accounts_app/views.py
-
1ip_pool/models.py
-
1ip_pool/views.py
-
7027static/css/bootstrap.min.css
-
62static/css/custom.css
-
709static/js/bootstrap.min.js
-
7static/js/my.js
-
2taskapp/context_proc.py
-
9taskapp/forms.py
-
8taskapp/handle.sh
-
16taskapp/models.py
-
1taskapp/urls.py
-
73taskapp/views.py
-
6templates/accounts/acc_list.html
-
14templates/accounts/ext.htm
-
39templates/accounts/profile_chgroup.html
-
7templates/base.html
-
20templates/taskapp/add_edit_task.html
-
12templates/taskapp/tasklist.html
-
13templates/taskapp/tasklist_active.html
-
12templates/taskapp/tasklist_all.html
-
13templates/taskapp/tasklist_finish.html
-
13templates/taskapp/tasklist_own.html
-
43templates/taskapp/view.html
7027
static/css/bootstrap.min.css
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
709
static/js/bootstrap.min.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,34 +1,23 @@ |
|||
{% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %} |
|||
{% block content %} |
|||
|
|||
<legend>Принадлежность аккаунта группам</legend> |
|||
<form action="{% url 'acc_app:profile_permissions' userprofile.id %}" method="post" role="form">{% csrf_token %} |
|||
<div class="form-group"> |
|||
<label for="sel_left">Доступные группы</label> |
|||
<select name="allgroups" multiple id="sel_left" class="form-group"> |
|||
{% for gr in allgroups %} |
|||
<option value="{{ gr.id }}">{{ gr.name }}</option> |
|||
{% endfor %} |
|||
</select> |
|||
<legend>Ответственность администратора к группам абонентов</legend> |
|||
<form action="{% url 'acc_app:profile_setup_group' userprofile.id %}" method="post" role="form">{% csrf_token %} |
|||
{% for ag in abongroups %} |
|||
<div class="checkbox"> |
|||
<label> |
|||
{% if userprofile in ag.profiles.all %} |
|||
<input name="ag" type="checkbox" value="{{ ag.id }}" checked/> |
|||
{% else %} |
|||
<input name="ag" type="checkbox" value="{{ ag.id }}"/> |
|||
{% endif %} |
|||
{{ ag.title }} |
|||
</label> |
|||
</div> |
|||
<ul class="form-group"> |
|||
<li><a href="javascript:chooser_select('sel_left','sel_right');" class="btn btn-sm btn-default"> |
|||
<span class="glyphicon glyphicon-chevron-right"></span> |
|||
</a></li> |
|||
<li><a href="javascript:chooser_select('sel_right','sel_left');" class="btn btn-sm btn-default"> |
|||
<span class="glyphicon glyphicon-chevron-left"></span> |
|||
</a></li> |
|||
</ul> |
|||
<div class="form-group"> |
|||
<label for="sel_right">Группы пользователя</label> |
|||
<select name="ingroups" multiple id="sel_right" class="form-group"> |
|||
{% for gr in usergroups %} |
|||
<option value="{{ gr.id }}">{{ gr.name }}</option> |
|||
{% endfor %} |
|||
</select> |
|||
<div class="btn-group"> |
|||
<input type="submit" class="btn btn-primary" value="Сохранить"> <input type="reset" class="btn btn-default" value="Сбросить"> |
|||
</div> |
|||
<br/> |
|||
<input type="submit" value="Сохранить"> <input type="reset" value="Сбросить"> |
|||
</form> |
|||
|
|||
{% endblock %} |
|||
@ -0,0 +1,43 @@ |
|||
{% extends request.is_ajax|yesno:'bajax.html,base.html' %} |
|||
{% block main %} |
|||
|
|||
<ol class="breadcrumb"> |
|||
<li><span class="glyphicon glyphicon-home"></span></li> |
|||
<li><a href="{% url 'taskapp:home' %}">Задачи</a></li> |
|||
<li class="active">#{{ task.id }}</li> |
|||
</ol> |
|||
|
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"> |
|||
<h3 class="panel-title">Описание задачи</h3> |
|||
</div> |
|||
<div class="panel-body"> |
|||
|
|||
<p>Описание: {{ task.descr }}</p> |
|||
Исполнители: |
|||
<ul> |
|||
{% for recipient in task.recipients.all %} |
|||
<li><a href="{% url 'acc_app:other_profile' recipient.id %}" target="_blank">{{ recipient.get_full_name }}</a></li> |
|||
{% endfor %} |
|||
</ul> |
|||
Задача действительна до {{ task.out_date|date:'d E Y' }}<br> |
|||
Дата создания {{ task.time_of_create|date:'d E Y' }}<br> |
|||
Времени осталось {{ time_diff }}<br> |
|||
Тип задачи: {{ task.get_mode_display }}<br> |
|||
Абонент |
|||
{% if task.abon %} |
|||
<a href="{% url 'abonapp:abon_home' task.abon.group.id task.abon.id %}" target="_blank">{{ task.abon.get_full_name }}</a> |
|||
{% else %} |
|||
<i><Не выбран></i> |
|||
{% endif %}<br> |
|||
{% if task.attachment %} |
|||
Приложение: |
|||
<a href="{{ task.attachment.url }}" class="thumbnail" target="_blank"> |
|||
<img src="{{ task.attachment.url }}"> |
|||
</a> |
|||
{% endif %} |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
{% endblock %} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue