You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.0 KiB
69 lines
2.0 KiB
{% load staticfiles %}
|
|
{% load common_tags %}
|
|
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset='utf-8'>
|
|
<meta http-equiv='X-UA-Compatible' content='IE=edge, chrome=1'>
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
|
<!--<meta name='viewport' content='initial-scale=1.0, user-scalable=no, maximum-scale=1'>-->
|
|
|
|
<title>Archilance</title>
|
|
|
|
<link rel='stylesheet' href='{% static "css/bootstrap.css" %}'>
|
|
|
|
<link rel='stylesheet' href='{% static "css/dev-colors.css" %}'> <!-- Dev-time only, temporary!!! -->
|
|
</head>
|
|
|
|
<body>
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div class="c" style='padding: 10px; margin-bottom: 6px'>{{ message | safe }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
<h1>"pk": {{ pk }}</h1>
|
|
|
|
<form action="{% url 'projects:customer-project-edit' pk=pk %}" method="POST">
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_p }}
|
|
|
|
<input type="hidden" name="next" value="{% url 'projects:detail' pk=pk %}">
|
|
<button type="submit">Сохранить</button>
|
|
<a href='{{ next }}'>Назад</a>
|
|
|
|
<hr>
|
|
|
|
<div class="e" style="padding: 20px">
|
|
<ul>
|
|
{% for id, name in form.deal_type.field.choices %}
|
|
<li>{{ id }} {% if id == form.deal_type.value %}(current){% endif %}</li>
|
|
|
|
{# <div>#}
|
|
{# <input#}
|
|
{# type='radio'#}
|
|
{# name='_example1'#}
|
|
{# id='{{ random_id }}'#}
|
|
{# class='-styled'#}
|
|
{# value='{{ t.id }}'>#}
|
|
{# #}
|
|
{# <label for='{{ random_id }}'>{{ t.value }}</label>#}
|
|
{# </div>#}
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
|
|
{% inspect form.deal_type.field %}
|
|
|
|
<hr>
|
|
|
|
{% inspect2 form.deal_type.field %}
|
|
</div>
|
|
</form>
|
|
|
|
<script src='{% static "js/jquery-2.2.3.min.js" %}'></script>
|
|
<script src='{% static "js/bootstrap.min.js" %}'></script>
|
|
</body>
|
|
</html>
|
|
|