@ -1,8 +1,8 @@
{% extends "crud/detail.html" %}
{% extends "crud/detail.html" %}
{% load i18n common_tags %}
{% load i18n common_tags %}
{% load tz %}
{% load tz %}
{% block sub_actions %}{{block.super}}
{% block sub_actions %}
{{block.super}}
< div class = "actions btn-group btn-group-sm {%block sub_actions_pull%}{% endblock%}" role = "group" >
< div class = "actions btn-group btn-group-sm {%block sub_actions_pull%}{% endblock%}" role = "group" >
{% if object.texto_articulado.exists %}
{% if object.texto_articulado.exists %}
< a class = "btn btn-success" href = "{% url 'sapl.materia:proposicao_ta' object.pk%}" > {% trans "Texto Eletrônico" %}< / a >
< a class = "btn btn-success" href = "{% url 'sapl.materia:proposicao_ta' object.pk%}" > {% trans "Texto Eletrônico" %}< / a >
@ -12,9 +12,7 @@
{% endif %}
{% endif %}
< / div >
< / div >
{% endblock sub_actions%}
{% endblock sub_actions%}
{% block editions %}
{% block editions %}
{% if object.data_envio %}
{% if object.data_envio %}
{% if user == object.autor.user %}
{% if user == object.autor.user %}
{% block editions_actions_return %}
{% block editions_actions_return %}
@ -26,161 +24,183 @@
< / div >
< / div >
{% endblock %}
{% endblock %}
{% endif %}
{% endif %}
{% else %}
{% else %}
{% block editions_actions_send %}
{% block editions_actions_send %}
< div class = "actions btn-group" role = "group" >
< div class = "actions btn-group" role = "group" >
< a href = "{{ view.detail_url }}?action=send" class = "btn btn-primary" > {% trans 'Enviar' %}< / a >
< a href = "{{ view.detail_url }}?action=send" class = "btn btn-primary" > {% trans 'Enviar' %}< / a >
< / div >
< / div >
< div class = "actions btn-group" role = "group" >
< div class = "actions btn-group" role = "group" >
< a href = "{{ view.update_url }}" class = "btn btn-outline-primary" > {% trans 'Editar' %}< / a >
< a href = "{{ view.update_url }}" class = "btn btn-outline-primary" > {% trans 'Editar' %}< / a >
< a href = "{{ view.delete_url }}" class = "btn btn-outline-primary btn-outline-danger" > {% trans 'Excluir' %}< / a >
< a href = "{{ view.delete_url }}" class = "btn btn-outline-primary btn-outline-danger" > {% trans 'Excluir' %}< / a >
< / div >
< / div >
{% endblock %}
{% endblock %}
{% endif %}
{% endif %}
{% endblock editions %}
{% endblock editions %}
{% block detail_content %}
{% block detail_content %}
< h2 class = "legend" > {% model_verbose_name 'sapl.materia.models.Proposicao' %}< / h2 >
< h2 class = "legend" > {% model_verbose_name 'sapl.materia.models.Proposicao' %}< / h2 >
< div class = "row" >
< div class = "row" >
< div class = "col-sm-3" >
< div class = "col-sm-3" >
< div id = "div_id_tipo" class = "form-group" >
< div id = "div_id_tipo" class = "form-group" >
< p class = "control-label" > {%field_verbose_name object 'tipo'%}< / p >
< p class = "control-label" > {%field_verbose_name object 'tipo'%}< / p >
< div class = "controls" >
< div class = "controls" >
< div class = "form-control-static" > {{object.tipo}}< / div >
< div class = "form-control-static" > {{object.tipo}}< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% if object.data_devolucao %}
< / div >
{% if object.data_devolucao %}
< div class = "col-sm-9" >
< div class = "col-sm-9" >
< div class = "alert alert-danger alert-dismissible " role = "alert" >
< div class = "alert alert-danger alert-dismissible " role = "alert" >
< strong > {% trans "Proposição devolvida em:" %} {{ object.data_devolucao}}< / strong >
< strong > {% trans "Proposição devolvida em:" %} {{ object.data_devolucao}}< / strong >
< div > {% trans "Justificativa:" %} {{object.justificativa_devolucao}}< / div >
< div > {% trans "Justificativa:" %} {{object.justificativa_devolucao}}< / div >
< / div >
< / div >
< / div >
< / div >
{% else %}
{% else %}
{% if object.data_envio %}
{% if object.data_envio %}
< div class = "col-sm-3" >
< div class = "col-sm-3" >
< div id = "div_id_data_envio" class = "form-group" >
< div id = "div_id_data_envio" class = "form-group" >
< p class = "control-label" > {%field_verbose_name object 'data_envio' %}< / p >
< p class = "control-label" > {%field_verbose_name object 'data_envio' %}< / p >
< div class = "controls" >
< div class = "controls" >
< div class = "form-control-static" > {{object.data_envio}}< / div >
< div class = "form-control-static" > {{object.data_envio}}< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
< / div >
{% endif %}
{% if object.data_recebimento %}
{% if object.data_recebimento %}
< div class = "col-sm-3" >
< div class = "col-sm-3" >
< div id = "div_id_data_envio" class = "form-group" >
< div id = "div_id_data_envio" class = "form-group" >
< p class = "control-label" > {%field_verbose_name object 'data_recebimento'%}< / p >
< p class = "control-label" > {%field_verbose_name object 'data_recebimento'%}< / p >
< div class = "controls" >
< div class = "controls" >
< div class = "form-control-static" > {{object.data_recebimento}}< / div >
< div class = "form-control-static" > {{object.data_recebimento}}< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% elif object.data_envio %}
< / div >
< div class = "col-sm-6" >
{% elif object.data_envio %}
< div class = "alert alert-info alert-dismissible " role = "alert " >
< div class = "col-sm-6 " >
< div > {% trans "Proposição aguardando recebimento" %}< / div >
< div class = "alert alert-info alert-dismissible " role = "alert" >
< / div >
< div > {% trans "Proposição aguardando recebimento" %}< / div >
< / div >
< / div >
{% endif %}
< / div >
{% endif %}
{% endif %}
{% endif %}
< / div >
< / div >
< div class = "row" >
< div class = "row" >
< div class = "col-sm-12" >
< div class = "col-sm-12" >
< div id = "div_id_descricao" class = "form-group" >
< div id = "div_id_descricao" class = "form-group" >
< p class = "control-label" > {%field_verbose_name object 'descricao'%}< / p >
< p class = "control-label" > {%field_verbose_name object 'descricao'%}< / p >
< div class = "controls" >
< div class = "controls" >
< div class = "form-control-static" > {{object.descricao}}< / div >
< div class = "form-control-static" > {{object.descricao}}< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% if object.observacao %}
{% if object.observacao %}
< div class = "row" >
< div class = "row" >
< div class = "col-sm-12" >
< div class = "col-sm-12" >
< div id = "div_id_obseracao" class = "form-group" >
< div id = "div_id_obseracao" class = "form-group" >
< p class = "control-label" > {%field_verbose_name object 'observacao'%}< / p >
< p class = "control-label" > {%field_verbose_name object 'observacao'%}< / p >
< div class = "controls" >
< div class = "controls" >
< div class = "form-control-static" > {{object.observacao}}< / div >
< div class = "form-control-static" > {{object.observacao}}< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
{% endif %}
< div class = "row" >
< div class = "row" >
{% if object.conteudo_gerado_related %}
{% if object.conteudo_gerado_related %}
< div class = "col-sm-6" >
< div class = "col-sm-6" >
< h2 class = "legend" > {% trans "Conteúdo Gerado" %}< / h2 >
< h2 class = "legend" > {% trans "Conteúdo Gerado" %}< / h2 >
< div id = "div_id_conteudo_gerado_related" class = "form-group" >
< div id = "div_id_conteudo_gerado_related" class = "form-group" >
< div class = "controls" >
< div class = "controls" >
< a href = "{% url object|urldetail_content_type:object.conteudo_gerado_related object.conteudo_gerado_related.id%}" >
< a href = "{% url object|urldetail_content_type:object.conteudo_gerado_related object.conteudo_gerado_related.id%}" >
{{object.conteudo_gerado_related}}
{{object.conteudo_gerado_related}}
< / a >
< / a >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
{% endif %}
{% if object.materia_de_vinculo %}
{% if object.materia_de_vinculo %}
< div class = "col-sm-6" >
< div class = "col-sm-6" >
< h2 class = "legend" > {% trans "Vínculo com a Matéria Legislativa" %}< / h2 >
< h2 class = "legend" > {% trans "Vínculo com a Matéria Legislativa" %}< / h2 >
< div id = "div_id_materia_de_vinculo" class = "form-group" >
< div id = "div_id_materia_de_vinculo" class = "form-group" >
< div class = "controls" >
< div class = "controls" >
Matéria< / br >
Matéria< / br >
< a href = "{% url object.materia_de_vinculo|urldetail object.materia_de_vinculo.id%}" >
< a href = "{% url object.materia_de_vinculo|urldetail object.materia_de_vinculo.id%}" >
{{object.materia_de_vinculo}}
{{object.materia_de_vinculo}}
< / a >
< / a >
< / br >
< / br >
{% if object.materia_de_vinculo.autoria_set.all %}
{% if object.materia_de_vinculo.autoria_set.all %}
Autores
Autores
{% for a in object.materia_de_vinculo.autoria_set.all %}
{% for a in object.materia_de_vinculo.autoria_set.all %}
< / br > {{a.autor}}
< / br > {{a.autor}}
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
< / br >
< / br >
Texto Original
Texto Original
< / br >
< / br >
{% if object.materia_de_vinculo.texto_original %}
{% if object.materia_de_vinculo.texto_original %}
< a href = "{{object.materia_de_vinculo.texto_original.url}}" >
< a href = "{{object.materia_de_vinculo.texto_original.url}}" >
{{object.materia_de_vinculo.texto_original| to_str | split:"/" | get_last_item_from_list:-1}}
{{object.materia_de_vinculo.texto_original| to_str | split:"/" | get_last_item_from_list:-1}}
< / a >
< / a >
{% endif %}
{% endif %}
< / br >
< / br >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
{% endif %}
{% if not AppConfig.receber_recibo_proposicao %}
{% if not AppConfig.receber_recibo_proposicao %}
{% if object.hash_code %}
{% if object.hash_code %}
< div class = "col-sm-12" >
< div class = "col-sm-12" >
< div id = "div_id_hash_code" class = "form-group" >
< div id = "div_id_hash_code" class = "form-group" >
< p class = "control-label" > {%field_verbose_name object 'hash_code'%}< / p >
< p class = "control-label" > {%field_verbose_name object 'hash_code'%}< / p >
< div class = "controls" >
< div class = "controls" >
< div class = "form-control-static" > {{object.hash_code}}< / div >
< div class = "form-control-static" > {{object.hash_code}}< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
< / div >
{% endif %}
{% endif %}
{% endif %}
< / div >
< / div >
{% if user.is_superuser %}
< div class = "row" >
{% if proposicao.user %}
< div class = "col-sm-4" >
< div id = "div_id_user" class = "form-group" >
< p class = "control-label" > Usuário< / p >
< div class = "controls" >
< div class = "form-control-static" >
< div class = "dont-break-out" >
< a href = "{% url 'sapl.base:user_edit' proposicao.user.pk %}" > {{ proposicao.user }}< / a >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
{% if proposicao.ip %}
< div class = "col-sm-4" >
< div id = "div_ip_user" class = "form-group" >
< p class = "control-label" > IP< / p >
< div class = "controls" >
< div class = "form-control-static" >
< div class = "dont-break-out" > {{ proposicao.ip }}< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
{% if proposicao.ultima_edicao %}
< div class = "col-sm-4" >
< div id = "div_ud_user" class = "form-group" >
< p class = "control-label" > Data e Hora da Edição< / p >
< div class = "controls" >
< div class = "form-control-static" >
< div class = "dont-break-out" > {{ proposicao.ultima_edicao }}< / div >
< / div >
< / div >
< / div >
< / div >
{% endif %}
< / div >
{% endif %}
{% endblock detail_content %}
{% endblock detail_content %}