Created
October 28, 2013 11:32
-
-
Save fellipeh/7195304 to your computer and use it in GitHub Desktop.
template do caixa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% load humanize %} | |
{% load foundation %} | |
{% load l10n %} | |
{% block script %} | |
<link rel="stylesheet" href="{{ STATIC_URL }}css/foundation-datepicker.css"> | |
<link rel="stylesheet" href="{{ STATIC_URL }}js/chosen/chosen.css"> | |
<script src="{{ STATIC_URL }}js/foundation-datepicker.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
<script type="text/javascript" src="{{ STATIC_URL }}js/masked.js"></script> | |
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.maskMoney.js"></script> | |
<script type="text/javascript"> | |
$().ready(function(){ | |
$(".mascdecimal2").maskMoney({ precision:2, decimal:",", thousands:"."}); | |
}); | |
</script> | |
{% endblock %} | |
{% block script_end %} | |
<script src="{{ STATIC_URL }}js/chosen/chosen.jquery.js" type="text/javascript"></script> | |
<script> | |
$(function () { | |
window.prettyPrint && prettyPrint(); | |
$('#id_dt_movimento').fdatepicker({ | |
format: 'dd/mm/yyyy' | |
}); | |
}); | |
var config = { | |
'.chosen-select' : {}, | |
'.chosen-select-deselect' : {allow_single_deselect:true}, | |
'.chosen-select-no-single' : {disable_search_threshold:10}, | |
'.chosen-select-no-results': {no_results_text:'Oops, nada encontrado!'}, | |
'.chosen-select-width' : {width:"100%"} | |
} | |
for (var selector in config) { | |
$(selector).chosen(config[selector]); | |
} | |
</script> | |
{% endblock %} | |
{% block top_title %} | |
<li><a href="{% url 'home' %}">Home</a></li> | |
<li class="unavailable"><a href="#">Movimento</a></li> | |
<li class="unavailable"><a href="#">Financeiro</a></li> | |
<li class="current"><a href="#">Editar/Nova Caixa</a></li> | |
{% endblock %} | |
{% block conteudo %} | |
<div class="large-12"> | |
<fieldset> | |
<legend>Incluir/Editar Lançamento no Caixa</legend> | |
<form method="post" action="" name="formcliente" class="custom.custom.dropbox"> | |
{% csrf_token %} | |
<div class="row"> | |
<div class="small-2 columns"> | |
{{ formCaixa.dthr_cadastro|foundation }} | |
</div> | |
<div class="small-2 columns"> | |
{{ formCaixa.dt_movimento|foundation }} | |
</div> | |
<div class="small-4 columns {% if formCaixa.conta.errors %} error {% endif %}"> | |
<label for="id_conta">Conta</label> | |
{{ formCaixa.conta }} | |
{% if formCaixa.conta.errors %}<small>{{ formCaixa.conta.errors|striptags }}</small>{% endif %} | |
</div> | |
<div class="small-4 columns {% if formCaixa.subconta.errors %} error {% endif %}"> | |
<label for="id_subconta">Sub-Conta</label> | |
{{ formCaixa.subconta }} | |
{% if formCaixa.subconta.errors %}<small>{{ formCaixa.subconta.errors|striptags }}</small>{% endif %} | |
</div> | |
</div> | |
<div class="row"> | |
<div class="small-8 columns"> | |
{{ formCaixa.historico|foundation }} | |
</div> | |
<div class="small-2 columns"> | |
{{ formCaixa.valor|foundation|localize }} | |
</div> | |
<div class="small-2 columns"> | |
{{ formCaixa.num_doc|foundation }} | |
</div> | |
</div> | |
<div class="row"> | |
<div class="small-12 columns"> | |
{{ formCaixa.obs|foundation }} | |
</div> | |
</div> | |
<a href="{% url 'ListaPessoa' %}"><p class="small button secondary"> « Voltar</p></a> | |
<button class="small button">Confirmar</button> | |
</form> | |
</fieldset> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment