{% extends '../master.html' %} {% load i18n debug static widget_tweaks base form %} {% block title %}dnoticias | Backoffice{% endblock %} {% block description %}Latest updates and statistic charts{% endblock %} {% block style_template %} {% endblock %} {% block style_develop %} {% endblock %} {% block content %}
{% render_field form.id %} {% render_field form.object_id %} {% render_field form.content_type_id %}
{% if perms.notifications.list_fcm_topics %} Ver Lista {% endif %}
{% if form.instance.pk and perms.notifications.delete_fcmtopic %} {% endif %} {% if perms.notifications.change_fcmtopic and not form.is_system %} {% if form.id.value %} {% else %} {% endif %} {% endif %}
{% csrf_token %}

Detalhes

{% if form.name %} {% trans 'Título' as name_placeholder %} {% assign_variable "form-control slug_edit_name" as form_name_classes %} {% if form.is_bound %} {% if form.errors.name %} {% assign_variable "is-invalid" as validation_class %} {% else %} {% assign_variable "is-valid" as validation_class %} {% endif %} {% else %} {% assign_variable "" as validation_class %} {% endif %} {% add_string form_name_classes " " validation_class as form_name_classes_with_validation %} {% render_field form.name class+=form_name_classes_with_validation placeholder+=name_placeholder %} {% include "../includes/hidden_help_block_field.html" with valid_feedback=valid_feedback invalid_feedback=invalid_feedback input_html_name=form.name.html_name only %} {% endif %}
{% if form.slug %} {% trans 'Slug' as slug_placeholder %} {% assign_variable "form-control slug_edit_slug" as form_slug_classes %} {% if form.is_bound %} {% if form.errors.slug %} {% assign_variable "is-invalid" as validation_class %} {% else %} {% assign_variable "is-valid" as validation_class %} {% endif %} {% else %} {% assign_variable "" as validation_class %} {% endif %} {% add_string form_slug_classes " " validation_class as form_slug_classes_with_validation %} {% render_field form.slug class+=form_slug_classes_with_validation placeholder+=slug_placeholder %} {% include "../includes/hidden_help_block_field.html" with valid_feedback=valid_feedback invalid_feedback=invalid_feedback input_html_name=form.slug.html_name only %} {% endif %}
{% if form.active %} {% assign_variable "form-control" as form_active_classes %} {% if form.is_bound %} {% if form.errors.active %} {% assign_variable "is-invalid" as validation_class %} {% else %} {% assign_variable "is-valid" as validation_class %} {% endif %} {% else %} {% assign_variable "" as validation_class %} {% endif %} {% add_string form_active_classes " " validation_class as form_active_classes_with_validation %} {% include "../includes/hidden_help_block_field.html" with valid_feedback=valid_feedback invalid_feedback=invalid_feedback input_html_name=form.active.html_name only %} {% endif %}
{% if form.get_object_label %}
{{form.get_object_label}}
{% endif %}
{% if form.option_formset.can_order %} {% endif %} {% endblock %} {% block script_template %} {% endblock %} {% block script_develop %} {% endblock %}