feat: add base for js-ification of add adoption form
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
console.log("Search script loaded");
|
@@ -20,6 +20,7 @@
|
|||||||
<script src="{% static 'fellchensammlung/js/toggles.js' %}"></script>
|
<script src="{% static 'fellchensammlung/js/toggles.js' %}"></script>
|
||||||
<script src="{% static 'fellchensammlung/js/jquery.min.js' %}"></script>
|
<script src="{% static 'fellchensammlung/js/jquery.min.js' %}"></script>
|
||||||
<script type="module" src="{% static 'fellchensammlung/js/photoswipe.js' %}"></script>
|
<script type="module" src="{% static 'fellchensammlung/js/photoswipe.js' %}"></script>
|
||||||
|
{% block additional_scrips %}{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'fellchensammlung/favicon/apple-touch-icon.png' %}">
|
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'fellchensammlung/favicon/apple-touch-icon.png' %}">
|
||||||
|
@@ -2,13 +2,18 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load crispy_forms_tags %}
|
{% load crispy_forms_tags %}
|
||||||
{% load widget_tweaks %}
|
{% load widget_tweaks %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}<title>{% translate "Vermittlung hinzufügen" %}</title>{% endblock %}
|
{% block title %}<title>{% translate "Vermittlung hinzufügen" %}</title>{% endblock %}
|
||||||
|
|
||||||
|
{% block additional_scrips %}
|
||||||
|
<script src="{% static 'fellchensammlung/js/adoption-notice-form.js' %}"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{% translate "Vermitteln" %}</h1>
|
<h1>{% translate "Vermitteln" %}</h1>
|
||||||
<div class="notification">
|
<div class="notification is-info">
|
||||||
<button class="delete"></button>
|
|
||||||
<p>
|
<p>
|
||||||
{% url 'terms-of-service' as rules_url %}
|
{% url 'terms-of-service' as rules_url %}
|
||||||
{% trans "Regeln" as rules_text %}
|
{% trans "Regeln" as rules_text %}
|
||||||
@@ -20,6 +25,8 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="add-adoption-notice-form">
|
||||||
|
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
@@ -74,8 +81,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="notification">
|
<div class="notification is-info">
|
||||||
<button class="delete"></button>
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
{% blocktranslate %}
|
{% blocktranslate %}
|
||||||
@@ -128,4 +134,5 @@
|
|||||||
|
|
||||||
<input class="button is-primary" type="submit" value="{% translate "Speichern" %}">
|
<input class="button is-primary" type="submit" value="{% translate "Speichern" %}">
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
@@ -1,7 +1,10 @@
|
|||||||
{% extends "fellchensammlung/base.html" %}
|
{% extends "fellchensammlung/base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block title %}<title>{% translate "Suche" %}</title>{% endblock %}
|
{% block title %}
|
||||||
|
<title>{% translate "Suche" %}</title>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% get_current_language as LANGUAGE_CODE_CURRENT %}
|
{% get_current_language as LANGUAGE_CODE_CURRENT %}
|
||||||
|
Reference in New Issue
Block a user