Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <legend>Itens do pedido</legend>
- {# <a class="add-row" href="javascript:void(0)">Novo Item</a>#}
- {{ formsetItens.management_form }}
- <table id="id_itenspedido_set" class="dataTable" width="100%">
- <thead>
- <tr>
- <th width="10%">Referência</th>
- <th width="30%">Produto</th>
- <th width="20%">Cor</th>
- <th width="10%">Qtde</th>
- <th width="10%">Preço Unit.</th>
- <th width="15%">Preço Total</th>
- <th width="5%">Excluir</th>
- </tr>
- </thead>
- <tbody>
- <div id="id_form_template">
- {% for itens in formsetItens.forms %}
- {% if itens.idproduto > 0 %}
- <tr id="{{ itens.prefix }}-row">
- {% if itens.errors %}
- <span class="label label-important">Erros</span>
- <div id="row alert alert-error">
- <p>Houve erros ao processar o formulário, por favor verifique e envie novamente:</p>
- <ul>
- {% for field in itens %}
- {% if field.errors %}<li>{{ field.label_tag }} {{ field.errors|striptags }}</li>{% endif %}
- {% endfor %}
- </ul>
- </div>
- {% endif %}
- <input type="hidden" id="{{ itens.prefix }}-iditenspedido" name="{{ itens.prefix }}-iditenspedido" value="{{ itens.iditenspedido.value }}">
- <input type="hidden" id="{{ itens.prefix }}-idproduto" name="{{ itens.prefix }}-idproduto" value="{{ itens.idproduto.value }}">
- <input type="hidden" id="{{ itens.prefix }}-idproduto_idcores" name="{{ itens.prefix }}-idproduto_idcores" value="{{ itens.instance.idproduto.idcores }}">
- <input type="hidden" name="{{ itens.prefix }}-idsys_point_cliente" value="{{ itens.idsys_point_cliente.value }}">
- <input type="hidden" name="{{ itens.prefix }}-idempresa" value="{{ itens.idempresa.value }}">
- <th><input type="text" id="{{ itens.prefix }}-ref" name="{{ itens.prefix }}-ref" value="{{ itens.instance.idproduto.idmercadoria.referencia }}" readonly=True> </th>
- <th><input type="text" id="{{ itens.prefix }}-desc" name="{{ itens.prefix }}-desc" value="{{ itens.instance.idproduto.idmercadoria.descricao }}" readonly=True> </th>
- <th><input type="text" id="{{ itens.prefix }}-cor" name="{{ itens.prefix }}-cor" value="{{ itens.instance.idproduto.idcores.descricao }}" readonly=True> </th>
- <th><input id="{{ itens.prefix }}-quantidade" name="{{ itens.prefix }}-quantidade" type="text" value="{{ itens.quantidade.value }}" style="text-align:right;" readonly=True></th>
- <th><input id="{{ itens.prefix }}-preco" name="{{ itens.prefix }}-preco" type="text" value="{{ itens.preco.value }}" style="text-align:right;" readonly=True></th>
- <th><input id="{{ itens.prefix }}-precototal" name="{{ itens.prefix }}-precototal" type="text" value="{{ itens.precototal.value }}" style="text-align:right;" readonly=True></th>
- <th>{% if itens.instance.pk %}{{ itens.DELETE }}{% endif %}</th>
- </tr>
- {% endif %}
- {% endfor %}
- </div>
- </tbody>
- </table>
- </fieldset>
Advertisement
Add Comment
Please, Sign In to add comment