{% extends 'base.html' %} {% load i18n %} {% load static %} {% block extra_css %} {% endblock %} {% block content %}

{% if form.instance.pk %}{% trans "Edit Link" %}{% else %}{% trans "New Link" %}{% endif %}

{% trans "Custom type allows you to create a link with custom HTML content. Use this when you want to display a message or custom content instead of redirecting." %}

⚡ 动作链接:打开链接时自动执行一个动作。链接后面跟的字会变成消息内容发给小黑。

{% csrf_token %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %}

{{ error }}

{% endfor %}
{% endif %} {% for field in form %} {% if field.name != 'link_type' and field.name != 'action_config' %} {% endif %} {% endfor %}
{% trans "Cancel" %}
{% endblock %} {% block extra_js %} {# jQuery and Select2 are loaded globally from vendor in base.html #} {% endblock %}