remotes/origin/mitri4
spacenergy 10 years ago
parent 030ee7d462
commit d52eb1995b
  1. 134
      batiskaf/templates/jinja2/cart_detail.jinja

@ -88,79 +88,81 @@
<div class="panel-body">
<form action="" class="" method="post"><input type="hidden" name="csrfmiddlewaretoken"
value="{{ csrf_token }}">
{{ form|bootstrap }}
<br/>
<div class="form-group"><label class="control-label" for="deliv_service">Служба
доставки</label></div>
<div class="radio">
<label>
<input type="radio" name="deliv_service" id="deliv_service1" value="kazpost"
checked>
Казпочта <br><img src="/static/img/kazpost.jpg" alt="" width="150">
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="deliv_service" id="deliv_service2"
value="alemtat">
Алемтат <br><img src="/static/img/alemtat.jpg" alt="" width="150">
</label>
</div>
<br>
<div class="form-group"><label class="control-label" for="deliv_service">Служба
доставки</label></div>
<div class="radio">
<label>
<input type="radio" name="deliv_service" id="deliv_service1" value="kazpost"
checked>
Казпочта <br><img src="/static/img/kazpost.jpg" alt="" width="150">
</label>
</div>
<div class="radio" style="display:none">
<label>
<input type="radio" name="deliv_service" id="deliv_service2"
value="alemtat">
Алемтат <br><img src="/static/img/alemtat.jpg" alt="" width="150">
</label>
</div>
<div class="alemtat_block" style="display: none;">
<div class="form-group">
<label class="control-label" for="id_city">Город</label>
<div>
<select name="city" id="id_city" class="form-control">
{% for city in alemtat_cities %}
<option value="{{ city[0] }}" {% if request.POST['city'] %}selected{% endif %}>{{ city[1] }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="alemtat_block" style="display: none;">
<div class="form-group">
<label class="control-label" for="id_city">Город</label>
<div>
<select name="city" id="id_city" class="form-control">
{% for city in alemtat_cities %}
<option value="{{ city[0] }}" {% if request.POST['city'] %}selected{% endif %}>{{ city[1] }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label" for="id_deliv_type">Способ доставки</label>
<div>
<select name="deliv_type" id="id_deliv_type" class="form-control">
{% for service in alemtat_services %}
<option value="{{ service[0] }}" {% if request.POST['deliv_type'] %}selected{% endif %}>{{ service[1] }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label" for="id_alemtat_address">Адрес</label>
<div>
<input name="alemtat_address" type="text" id="id_alemtat_address"
class="form-control" value="{{ request.POST['alemtat_address'] or '' }}">
</div>
</div>
</div>
<div class="form-group">
<label class="control-label" for="id_deliv_type">Способ доставки</label>
<div>
<select name="deliv_type" id="id_deliv_type" class="form-control">
{% for service in alemtat_services %}
<option value="{{ service[0] }}" {% if request.POST['deliv_type'] %}selected{% endif %}>{{ service[1] }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label" for="id_alemtat_address">Адрес</label>
<div>
<input name="alemtat_address" type="text" id="id_alemtat_address"
class="form-control" value="{{ request.POST['alemtat_address'] or '' }}">
</div>
</div>
</div>
<div class="kazpost_block">
<div class="form-group">
<label class="control-label" for="id_city">Ближайшее областное отделение</label>
<div>
<select name="kazpost_city" id="id_kazpost_city" class="form-control">
{% for city in kazpost_cities %}
<option value="{{ city[0] }}" {% if request.POST['kazpost_city'] %}selected{% endif %}>{{ city[1] }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="kazpost_block">
<div class="form-group">
<label class="control-label" for="id_city">Ближайшее областное отделение</label>
<div>
<select name="kazpost_city" id="id_kazpost_city" class="form-control">
{% for city in kazpost_cities %}
<option value="{{ city[0] }}" {% if request.POST['kazpost_city'] %}selected{% endif %}>{{ city[1] }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label" for="id_kazpost_address">Адрес</label>
<div>
<input name="kazpost_address" type="text" id="id_kazpost_address"
class="form-control" value="{{ request.POST['kazpost_address'] or '' }}">
</div>
</div>
</div>
<div class="form-group">
<label class="control-label" for="id_kazpost_address">Адрес</label>
<div>
<input name="kazpost_address" type="text" id="id_kazpost_address"
class="form-control" value="{{ request.POST['kazpost_address'] or '' }}">
</div>
</div>
</div>
{{ form|bootstrap }}
<br>

Loading…
Cancel
Save