mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
- This improves page rendering time. If JS files are not loaded in deferred or async mode, they will halt the page rendering until JS files are loaded from network. - 'defer' mode guarantees that the load order is same as the order in which JS files appeared in the HTML page. Tests: - Run at least one function of each affected JS file and ensure that is works. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
29 lines
563 B
HTML
29 lines
563 B
HTML
{% extends "base.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
{% block page_js %}
|
|
<script type="text/javascript" src="{% static 'sharing/sharing_add_edit.js' %}"
|
|
defer></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h3>{{ title }}</h3>
|
|
|
|
<form class="form form-add-edit" method="post">
|
|
{% csrf_token %}
|
|
|
|
{{ form|bootstrap }}
|
|
|
|
<input type="submit" class="btn btn-primary"
|
|
value="{% trans "Submit" %}"/>
|
|
</form>
|
|
|
|
{% endblock %}
|