9 changed files with 193 additions and 8 deletions
-
2abonapp/templates/abonapp/buy_tariff.html
-
4agent/structs.py
-
4devapp/base_intr.py
-
76devapp/dev_types.py
-
27devapp/locale/ru/LC_MESSAGES/django.po
-
20devapp/migrations/0005_auto_20170502_2232.py
-
44devapp/templates/devapp/olt.html
-
4devapp/views.py
-
20tariff_app/migrations/0005_auto_20170502_2229.py
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.9 on 2017-05-02 19:32 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('devapp', '0004_device_user_group'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='device', |
||||
|
name='devtype', |
||||
|
field=models.CharField(choices=[('Dl', 'DLink switch'), ('Pn', 'PON ONU')], default='Dl', max_length=2), |
||||
|
), |
||||
|
] |
||||
@ -0,0 +1,44 @@ |
|||||
|
{% extends request.is_ajax|yesno:'nullcont.htm,devapp/ext.htm' %} |
||||
|
{% load i18n %} |
||||
|
{% block content %} |
||||
|
|
||||
|
|
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
<div class="table-responsive"> |
||||
|
<table class="table table-striped table-bordered"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th width="50">#</th> |
||||
|
<th>{% trans 'Mac' %}</th> |
||||
|
<th>{% trans 'Name' %}</th> |
||||
|
<th>{% trans 'Distance(m)' %}</th> |
||||
|
<th width="250">{% trans 'Signal' %}</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
|
||||
|
<tbody> |
||||
|
{% for port in ports %} |
||||
|
<tr> |
||||
|
<td>{% if port.st %}<span class="glyphicon glyphicon-ok text-success"></span> |
||||
|
{% else %}<span class="glyphicon glyphicon-remove text-danger"></span> |
||||
|
{% endif %} |
||||
|
</td> |
||||
|
<td>{{ port.mac }}</td> |
||||
|
<td>{{ port.nm }}</td> |
||||
|
<td>{{ port.sp }}</td> |
||||
|
<td>{{ port.signal }}</td> |
||||
|
</tr> |
||||
|
{% empty %} |
||||
|
<tr> |
||||
|
<td colspan="5">{% trans 'Ports not found' %}</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</tbody> |
||||
|
|
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
{% endblock %} |
||||
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.9 on 2017-05-02 19:29 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('tariff_app', '0004_auto_20170416_0350'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='tariff', |
||||
|
name='calc_type', |
||||
|
field=models.CharField(choices=[('Df', 'Базовый расчётный функционал'), ('Dp', 'IS'), ('Cp', 'Для внутреннего пользования')], default='Df', max_length=2), |
||||
|
), |
||||
|
] |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue