12 changed files with 167 additions and 9 deletions
-
11abonapp/forms.py
-
23abonapp/migrations/0006_abon_markers.py
-
38abonapp/models.py
-
17abonapp/templates/abonapp/editAbon.html
-
2abonapp/templates/abonapp/group_list.html
-
31abonapp/templates/abonapp/modal_user_markers.html
-
2abonapp/templates/abonapp/peoples.html
-
2abonapp/urls_abon.py
-
30abonapp/views.py
-
1requirements.txt
-
19static/css/custom.css
-
BINstatic/img/user_markers.png
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11 on 2018-02-13 14:06 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
import bitfield.models |
||||
|
from django.db import migrations |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
dependencies = [ |
||||
|
('abonapp', '0005_auto_20180123_1353'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='abon', |
||||
|
name='markers', |
||||
|
field=bitfield.models.BitField((('icon_donkey', 'Donkey'), ('icon_fire', 'Fire'), ('icon_ok', 'Ok'), |
||||
|
('icon_king', 'King'), ('icon_tv', 'TV'), ('icon_smile', 'Smile'), |
||||
|
('icon_dollar', 'Dollar'), ('icon_service', 'Service'), |
||||
|
('icon_mrk', 'Marker')), default=None), |
||||
|
), |
||||
|
] |
||||
@ -0,0 +1,31 @@ |
|||||
|
{% load i18n %} |
||||
|
<form action="{% url 'abonapp:markers_edit' gid uid %}" method="post"> {% csrf_token %} |
||||
|
|
||||
|
<div class="modal-header primary"> |
||||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
||||
|
<h4 class="modal-title"><span class="glyphicon glyphicon-bookmark"></span>{% trans 'Markers' %}</h4> |
||||
|
</div> |
||||
|
|
||||
|
<div class="modal-body"> |
||||
|
|
||||
|
<div class="form-group"> |
||||
|
<label class="control-label">{% trans 'Markers' %}</label> |
||||
|
{% for ch in form.markers %} |
||||
|
<div class="checkbox"> |
||||
|
<label for="{{ ch.id_for_label }}"> |
||||
|
<input type="checkbox" name="{{ ch.data.name }}" value="{{ ch.data.value }}" id="{{ ch.id_for_label }}" {% if ch.selected %}checked {% endif %}/> |
||||
|
<span class="m-icon m-{{ ch.data.value }}"></span> |
||||
|
{{ ch.choice_label }} |
||||
|
</label> |
||||
|
</div> |
||||
|
{% endfor %} |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<div class="modal-footer"> |
||||
|
<button type="submit" class="btn btn-primary"> |
||||
|
<span class="glyphicon glyphicon-ok-circle"></span> {% trans 'Save' %} |
||||
|
</button> |
||||
|
</div> |
||||
|
</form> |
||||
|
After Width: 78 | Height: 78 | Size: 11 KiB |
Write
Preview
Loading…
Cancel
Save
Reference in new issue