mirror of https://github.com/interlegis/sapl.git
LeandroRoberto
9 years ago
8 changed files with 151 additions and 82 deletions
@ -0,0 +1,33 @@ |
|||||
|
|
||||
|
tinymce.init({selector:'textarea'}); |
||||
|
$(document).foundation(); |
||||
|
|
||||
|
$(document).ready(function(){ |
||||
|
|
||||
|
|
||||
|
$('.dateinput').fdatepicker({ |
||||
|
// TODO localize
|
||||
|
format: 'dd/mm/yyyy', |
||||
|
language: 'pt', |
||||
|
endDate: '31/12/2100', |
||||
|
todayBtn: true |
||||
|
}); |
||||
|
|
||||
|
$('.telefone').mask("(99) 9999-9999", {placeholder:"(__) ____ -____"}); |
||||
|
$('.cpf').mask("000.000.000-00", {placeholder:"___.___.___-__"}); |
||||
|
$('.cep').mask("00000-000", {placeholder:"_____-___"}); |
||||
|
$('.rg').mask("0.000.000", {placeholder:"_.___.___"}); |
||||
|
$('.titulo_eleitor').mask("0000.0000.0000.0000", {placeholder:"____.____.____.____"}); |
||||
|
$('.hora').mask("00:00", {placeholder:"hh:mm"}); |
||||
|
$('.hora_hms').mask("00:00:00", {placeholder:"hh:mm:ss"}); |
||||
|
|
||||
|
var href = location.href.split('?') |
||||
|
$('.masthead .sub-nav a').each(function() { |
||||
|
|
||||
|
if (href.length >= 1) { |
||||
|
if (href[0].endsWith($(this).attr('href'))) |
||||
|
$(this).parent().addClass('active') |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
}); |
@ -1,8 +1,7 @@ |
|||||
{% extends "crud/detail.html" %} |
{% extends "crud/detail.html" %} |
||||
{% load i18n %} |
{% load i18n %} |
||||
{% block actions %} {% endblock %} |
{% block actions %} |
||||
{% block sections_nav %} |
|
||||
<dl class="sub-nav left"> |
<dl class="sub-nav left"> |
||||
<dd><a href="{% url 'parlamentares_cadastro' legislatura_id %}" id="incluir-parlamentar" class="button secondary">{% trans 'Incluir Parlamentar' %}</a></dd> |
<dd><a href="{% url 'parlamentares_cadastro' legislatura_id %}" id="incluir-parlamentar" class="button secondary">{% trans 'Incluir Parlamentar' %}</a></dd> |
||||
</dl> |
</dl> |
||||
{% endblock sections_nav %} |
{% endblock actions %} |
||||
|
Loading…
Reference in new issue