79 lines
2.4 KiB
HTML
79 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2021, All Rights Reserved #}
|
|
{% load origin %}
|
|
{% load static %}
|
|
{% load django_bootstrap5 %}
|
|
|
|
{% block pagehead %}
|
|
<link rel="stylesheet" href="{% static 'ietf/css/select2.css' %}">
|
|
{% endblock %}
|
|
|
|
{% block morecss %}
|
|
|
|
#empty-author-form {
|
|
display: none;
|
|
}
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
Edit authors for {{ titletext }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% origin %}
|
|
<h1>Edit authors<br><small class="text-muted">{{ titletext }}</small></h1>
|
|
|
|
<form enctype="multipart/form-data" method="post" id="authors-form">
|
|
{% csrf_token %}
|
|
{% bootstrap_form change_basis_form %}
|
|
|
|
|
|
|
|
<button id="add-author-button" type="button" class="btn btn-primary" onclick="local_js.add_author()">Add new author</button>
|
|
|
|
|
|
|
|
{% bootstrap_form formset.management_form %}
|
|
<div id="authors-list" class="well">
|
|
{% for form in formset %}
|
|
<div class="card author-panel">
|
|
<div class="card-body draggable">
|
|
<span class="handle bi bi-list"></span>
|
|
<div class="form-horizontal">
|
|
{% bootstrap_form form layout='horizontal' %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
<div id="empty-author-form" class="template">
|
|
<div class="card author-panel">
|
|
<div class="card-body draggable">
|
|
<span class="handle bi bi-list"></span>
|
|
<div class="form-horizontal">
|
|
{% bootstrap_form formset.empty_form layout='horizontal' %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
<a class="btn btn-secondary float-end"
|
|
href="{% url "ietf.doc.views_doc.document_main" name=doc.canonical_name %}">Back</a>
|
|
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
<script src="{% static 'ietf/js/sortable.js' %}"></script>
|
|
<script src="{% static 'ietf/js/select2.js' %}"></script>
|
|
<script type="text/javascript">
|
|
var ajax_url = '{% url "ietf.person.ajax.person_email_json" personid="123454321" %}';
|
|
</script>
|
|
<script src="{% static 'ietf/js/edit_authors.js' %}"></script>
|
|
|
|
{% endblock %} |