mirror of https://github.com/interlegis/sapl.git
1 changed files with 32 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
{% load common_tags %} |
|||
|
|||
{% block actions %}{% endblock %} |
|||
|
|||
{% block detail_content %} |
|||
|
|||
<form method="post"> |
|||
{% csrf_token %} |
|||
<fieldset class="form-group"> |
|||
<textarea rows="5" cols="50" name="conteudo" id="conteudo" class="form-control">{{conteudo}}</textarea> |
|||
</fieldset> |
|||
<input type="submit" value="Salvar" class="btn btn-primary"/> |
|||
<input type="submit" id="apagar-ocorrencia_sessao" name="apagar-ocorrencia_sessao" value="Apagar" class="btn btn-danger" /> |
|||
</form> |
|||
|
|||
{% endblock detail_content %} |
|||
<!-- Texto RICO --> |
|||
{% block extra_js %} |
|||
{% if perms|get_add_perm:view %} |
|||
<script language="JavaScript"> |
|||
initTinymce(null); |
|||
</script> |
|||
<!-- Se nao tiver permissao, o texto rico fica readonly --> |
|||
{% else %} |
|||
<script language="JavaScript"> |
|||
initTinymce(null, true); |
|||
</script> |
|||
{% endif %} |
|||
{% endblock %} |
|||
Loading…
Reference in new issue