diff --git a/engine/core/templates/admin_doc/bookmarklets.html b/engine/core/templates/admin_doc/bookmarklets.html new file mode 100644 index 00000000..33d3822c --- /dev/null +++ b/engine/core/templates/admin_doc/bookmarklets.html @@ -0,0 +1,34 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block title %}{% translate "Documentation bookmarklets" %}{% endblock %} + +{% block breadcrumbs %} +
{% blocktranslate trimmed %} + To install bookmarklets, drag the link to your bookmarks toolbar, or right-click + the link and add it to your bookmarks. Now you can select the bookmarklet + from any page in the site. + {% endblocktranslate %}
+ +{% translate "Jumps you from any page to the documentation for the view that generates that page." %}
+{% translate 'Models are descriptions of all the objects in the system and their associated fields. Each model has a list of fields which can be accessed as template variables' %}.
+ + + +{% translate 'Each page on the public site is generated by a view. The view defines which template is used to generate the page and which objects are available to that template.' %}
+ + + +{% translate 'List of all the template tags and their functions.' %}
+ + + +{% translate 'Filters are actions which can be applied to variables in a template to alter the output.' %}
+ + + +{% translate 'Tools for your browser to quickly access admin functionality.' %}
+ +{% blocktranslate with "https://docutils.sourceforge.io/" as link %}The admin documentation system requires Python's docutils library.{% endblocktranslate %}
+{% blocktranslate with "https://pypi.org/project/docutils/" as link %}Please ask your administrators to install docutils.{% endblocktranslate %}
+{{ summary }}
{% endif %} + {% if description %}| {% translate 'Field' %} | +{% translate 'Type' %} | +{% translate 'Description' %} | +
|---|---|---|
| {{ field.name }} | ++ {{ field.data_type }} + | +{{ field.verbose }}{% if field.help_text %} — {{ field.help_text|safe }}{% endif %} | +
| {% translate 'Method' %} | +{% translate 'Arguments' %} | +{% translate 'Description' %} | +
|---|---|---|
| {{ method.name }} | +{{ method.arguments }} | +{{ method.verbose }} | +
{{ name }}{% endblocktranslate %}{{ name }}:{% endblocktranslate %}{{ template.file }}
+ {% if not template.exists %}
+ {% translate '(does not exist)' %}
+ {% else %}
+ check_circle
+ {% endif %}
+
+ {% blocktranslate with code="{"|add:"% load "|add:library.grouper|add:" %"|add:"}" %}To use these filters, put {{ code }} in your template before using the filter.{% endblocktranslate %}
+
+ {% blocktranslate with code="{"|add:"% load "|add:library.grouper|add:" %"|add:"}" %}To use these tags, put {{ code }} in your template before using the tag.{% endblocktranslate %}
+
{{ tag.title|striptags }}
+ {{ tag.body }} +{{ summary }}
{% endif %} +{{ meta.Context }}
+ {% endif %} + + {% if meta.Templates %} +{{ meta.Templates }}
+ {% endif %} +
+ {% blocktranslate with view.full_name as full_name and view.url_name as url_name %}View function: {{ full_name }}. Name: {{ url_name }}.{% endblocktranslate %}
+
{{ view.title }}
{% endif %} +