mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
{% extends "crud/detail.html" %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_tags %}
|
|
{% block actions %}{% endblock %}
|
|
|
|
{% block detail_content %}
|
|
{% block buttons %}
|
|
<div class="actions btn-group float-right" role="group">
|
|
<a href="{% url 'sapl.materia:autoria_list' pk_materia %}" class="btn btn-outline-primary">{% trans 'Autorias' %}</a>
|
|
</div>
|
|
<br />
|
|
<br />
|
|
{% endblock buttons %}
|
|
|
|
{% crispy filter.form %}
|
|
|
|
<table class="table table-striped table-bordered">
|
|
<thead class="thead-default">
|
|
<tr><td><h3>{% trans "Autor" %}</h3></td></tr>
|
|
</thead>
|
|
<br />
|
|
<form method="POST" enctype="application/x-www-form-urlencoded">
|
|
{% csrf_token %}
|
|
{% for m in filter.qs %}
|
|
<tr>
|
|
<td>
|
|
<input type="checkbox" name="autor_id" id="{{m.id}}" value="{{m.id}}" {% if check %} checked {% endif %}>
|
|
|
|
<strong>{{m}}</strong></a></br>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</table>
|
|
<div class="btn-group" style="float:right;">
|
|
<input type="submit" value="Adicionar autores selecionados" class="btn btn-primary">
|
|
</div>
|
|
</form>
|
|
{% endblock detail_content %}
|
|
|