{% extends "users/base.html" %} {% load crispy_forms_tags %} {% load counter_tag %} {% block content %}
{% if update == True %}

Standard Bearbeiten {% if request.user.profile.showtooltips %} {% endif %}

{% else %}

Neuen Standard anlegen{% if request.user.profile.showtooltips %} {% endif %}

{% endif %}
{% csrf_token %}
{% for field in normalForm %} {% if field.is_hidden == False %} {% if forloop.counter|divisibleby:6 %}
{% if field.name != 'freefield_content' and field.name != 'freefield_title' and field.name != 'public' %} {{field|as_crispy_field }} {% endif %} {% else %} {% if field.name != 'freefield_content' and field.name != 'freefield_title' and field.name != 'public' %} {{field|as_crispy_field }} {% endif %} {% endif %} {% endif %} {% endfor %} {% for field in normalForm %} {% if field.is_hidden %} {{field}} {% endif %} {% endfor %}
{{ normalForm.freefield_title|as_crispy_field }} {{ normalForm.freefield_content|as_crispy_field }}

{% if update == True %} {% for s in standard_possible %} {% endfor %} {% else %} {% for s in standards %} {% endfor %} {% endif %}
Verlinkte Standards: {% if update == True %} {% for s in standard.linked_standards.all %} {% endfor %} {% endif %}
{{s.name}}



{% if request.user.profile.agency.module_files %}
{% for f in files %} {% endfor %}
Verlinkte Dateien: {% if update == True %} {% for f in standard.addedfiles_nc.all %} {% getNCFileInfos request f.nc_id as filename %} {% endfor %} {% endif %}
{{filename}}
{% endif %}
{% for g in agencygroups %} {% if g.agencygroupname == "Notfallhilfe" %} {% if request.user.profile.agency.module_recoverdir %}
{% endif %} {% else %}
{% endif %} {% endfor %}
{% if update == True %} {% if not standard.public %} Nur veröffentlichte Standards können geteilt werden. {% else %} {% for agn in agencynetworks %} {% ifaginadminagn agn.pk request.user.profile.agency.pk as is_admin %} {% ifsharemember agn.pk request.user.profile.agency.pk as is_sharemember %} {% ifstandardinagn agn.pk standard.pk as standard_in_agn %} {% if is_admin or is_sharemember %}
{% else %}  {{agn.name}} {% endif %} {% endfor %} {% endif %} {% else %} Das Zuweisen zu einem Agenturverbund ist erst nach dem Anlegen eines neuen Standards möglich. {% endif %}
{% if perms.users.standardgopublic %}

{{ normalForm.public }} Veröffentlichen

{% else %}

Wenn ein Standard erstellt/bearbeitet wurde, kann er nur von einer Person mit dem Recht Standards freischalten veröffentlicht werden.

{% endif %}
  Abbrechen
{% if not perms.users.standardmanager %} {% endif %} {% endblock content %}