{% load bootstrap_helpers %} {% load django_bootstrap5 %} {% load community_utils %} {% card card_id="contributingauthor-card_id{{ pos }}" card_class="ca-form-card" %} {% with pos=ca_form.get_authorlist_position|add:-1 %} {% card header="Author" card_class="mb-4 mt-4" %} {% bootstrap_field ca_form.author show_label=False %}
Can't find the author? {% bootstrap_alert "Please first try to find the author in the database before registering a new one. Each person that has logged in to this site is already registered and can be selected as a co-author."|safe extra_classes="mt-2" dismissible=False %}
{% bootstrap_form author_form %}
{% endcard %} {% card header="Affiliation" card_class="mb-4 mt-4" %} {% bootstrap_field ca_form.affiliation show_label=False %}
Can't find the affiliation?
{% for affil_form in affiliation_forms %}
{% bootstrap_form affil_form %}
{% endfor %}
{% endcard %} {% endwith %} {% bootstrap_switch ca_form.is_presenter %} {% bootstrap_form ca_form exclude="is_presenter,author,affiliation" %} {% endcard %}