Umbenennung Notfallhilfe
This commit is contained in:
parent
de959c5ec0
commit
045ddffd39
|
|
@ -35,11 +35,11 @@
|
||||||
<div id="agroup_{{aggroup.pk}}_card" class="collapse" aria-labelledby="agroup_{{aggroup.pk}}" data-parent="#groupAccordion">
|
<div id="agroup_{{aggroup.pk}}_card" class="collapse" aria-labelledby="agroup_{{aggroup.pk}}" data-parent="#groupAccordion">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5>Gruppenrechte{% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Gruppenrechte beeinflussen die Möglichkeiten der Mitarbeiter in einer Gruppe, z.B. dürfen nur Mitarbeiter in einer Gruppe mit dem Recht News entsprechend News erstellen, veröffentlichen und bearbeiten." class="far fa-question-circle"></i></small>{% endif %}</h5>
|
<h5>Gruppenrechte{% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Gruppenrechte beeinflussen die Möglichkeiten der Mitarbeiter in einer Gruppe, z.B. dürfen nur Mitarbeiter in einer Gruppe mit dem Recht News entsprechend News erstellen, veröffentlichen und bearbeiten." class="far fa-question-circle"></i></small>{% endif %}</h5>
|
||||||
{% if aggroup.agencygroupname != "Notfallordner" %}
|
{% if aggroup.agencygroupname != "Notfallhilfe" %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
{% for perm in perms %}
|
{% for perm in perms %}
|
||||||
{% if perm.help_text != "Notfallordner verwalten" %}
|
{% if perm.help_text != "Notfallhilfe verwalten" %}
|
||||||
{% if forloop.counter|divisibleby:8 %}
|
{% if forloop.counter|divisibleby:8 %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
</div><!-- END ROW RIGHT -->
|
</div><!-- END ROW RIGHT -->
|
||||||
<hr>
|
<hr>
|
||||||
{% else %}
|
{% else %}
|
||||||
Der Notfallordner ist für keine weiteren Rechte konfigurierbar.
|
Die Gruppe Notfallhilfe ist für keine weiteren Rechte konfigurierbar.
|
||||||
<hr>
|
<hr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div col="10">
|
<div col="10">
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ def DASettings(request):
|
||||||
if request.user.profile.agency.module_recoverdir:
|
if request.user.profile.agency.module_recoverdir:
|
||||||
agencygroups = AgencyGroup.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("agencygroupname").order_by("-savefordel")
|
agencygroups = AgencyGroup.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("agencygroupname").order_by("-savefordel")
|
||||||
else:
|
else:
|
||||||
agencygroups = AgencyGroup.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("agencygroupname").order_by("-savefordel").exclude(agencygroupname="Notfallordner")
|
agencygroups = AgencyGroup.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("agencygroupname").order_by("-savefordel").exclude(agencygroupname="Notfallhilfe")
|
||||||
|
|
||||||
context.update({"agencygroups" : agencygroups})
|
context.update({"agencygroups" : agencygroups})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class PersLetterForm(forms.ModelForm):
|
||||||
self.fields['text'] = forms.CharField(label="Ihr persönlicher Text", widget=forms.Textarea(attrs={"rows":15, "cols":35}))
|
self.fields['text'] = forms.CharField(label="Ihr persönlicher Text", widget=forms.Textarea(attrs={"rows":15, "cols":35}))
|
||||||
|
|
||||||
|
|
||||||
# NOTFALLORDNER FORMS
|
# Notfallhilfe FORMS
|
||||||
# 1 Handlungsleitfaden
|
# 1 Handlungsleitfaden
|
||||||
class HLForm(forms.ModelForm):
|
class HLForm(forms.ModelForm):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class PersLetter(models.Model):
|
||||||
text = encrypt(models.CharField(max_length=100000, blank=True, default="", null=True))
|
text = encrypt(models.CharField(max_length=100000, blank=True, default="", null=True))
|
||||||
history = HistoricalRecords()
|
history = HistoricalRecords()
|
||||||
|
|
||||||
# Notfallordner Datenfelder
|
# Notfallhilfe Datenfelder
|
||||||
# Handlungsleitfaden
|
# Handlungsleitfaden
|
||||||
class Handlungsleitfaden(models.Model):
|
class Handlungsleitfaden(models.Model):
|
||||||
agency = models.ForeignKey(Agency, on_delete=models.CASCADE, null=True)
|
agency = models.ForeignKey(Agency, on_delete=models.CASCADE, null=True)
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@ $("#id_document").on("change", function(){
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,15 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if request.user.profile.agency.module_recoverdir %}
|
{% if request.user.profile.agency.module_recoverdir %}
|
||||||
<div class="content-section col-12">
|
<div class="content-section col-12">
|
||||||
<h3>Notfallordner{% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Legen Sie hier die wichtigsten Dokumente für sich und Ihre Agentur an." class="far fa-question-circle"></i></small>{% endif %}
|
<h3>Notfallhilfe{% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Legen Sie hier die wichtigsten Dokumente für sich und Ihre Agentur an." class="far fa-question-circle"></i></small>{% endif %}
|
||||||
<!-- TASK: Video für Notfallordner <small><i onclick="javascript:$('#youtubevideoinformation').modal('toggle');" class="far fa-play-circle"></i></small>-->
|
<!-- TASK: Video für Notfallhilfe <small><i onclick="javascript:$('#youtubevideoinformation').modal('toggle');" class="far fa-play-circle"></i></small>-->
|
||||||
</h3>
|
</h3>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<ul class="nav nav-tabs" id="rd_tabs" role="tablist" >
|
<ul class="nav nav-tabs" id="rd_tabs" role="tablist" >
|
||||||
<li class="nav-item " >
|
<li class="nav-item " >
|
||||||
<a class="nav-link" id="rd" style="" data-toggle="tab" href="#t_rd" role="tab" aria-controls="t_rd" aria-selected="false"> Notfallordner</a>
|
<a class="nav-link" id="rd" style="" data-toggle="tab" href="#t_rd" role="tab" aria-controls="t_rd" aria-selected="false"> Notfallhilfe</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item " >
|
<li class="nav-item " >
|
||||||
<a class="nav-link " id="infos" style="" data-toggle="tab" href="#t_infos" role="tab" aria-controls="t_infos" aria-selected="false">Wichtige Informationen</a>
|
<a class="nav-link " id="infos" style="" data-toggle="tab" href="#t_infos" role="tab" aria-controls="t_infos" aria-selected="false">Wichtige Informationen</a>
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="tab-content" id="rd_content">
|
<div class="tab-content" id="rd_content">
|
||||||
<div class="tab-pane" id="t_rd" role="tabpanel" aria-labelledby="rd">
|
<div class="tab-pane" id="t_rd" role="tabpanel" aria-labelledby="rd">
|
||||||
<h5 class="mt-3">Notfallordner{% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Hinterlegen Sie hier alle Dokumente und Informationen im Notfallordner." class="far fa-question-circle"></i></small>{% endif %}</h5>
|
<h5 class="mt-3">Notfallhilfe{% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Hinterlegen Sie hier alle Dokumente und Informationen im Notfallhilfe." class="far fa-question-circle"></i></small>{% endif %}</h5>
|
||||||
<hr>
|
<hr>
|
||||||
{% block rd_content %}
|
{% block rd_content %}
|
||||||
{% include "recoverdir/rd_rd.html" %}
|
{% include "recoverdir/rd_rd.html" %}
|
||||||
|
|
@ -128,6 +128,6 @@ var defaultsettingsview = "rd";
|
||||||
|
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
Sie haben keinen Zugriff auf das Modul Notfallordner. Bitte wenden Sie sich an den Support!
|
Sie haben keinen Zugriff auf das Modul Notfallhilfe. Bitte wenden Sie sich an den Support!
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,6 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,6 @@ $(document).ready(function() {
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ def randomString(stringLength=40):
|
||||||
letters = string.ascii_lowercase
|
letters = string.ascii_lowercase
|
||||||
return ''.join(random.choice(letters) for i in range(stringLength))
|
return ''.join(random.choice(letters) for i in range(stringLength))
|
||||||
|
|
||||||
# NOTFALLORDNER ELEMENTE
|
# Notfallhilfe ELEMENTE
|
||||||
|
|
||||||
# ABNSCHNITT 1
|
# ABNSCHNITT 1
|
||||||
class RDAoneAddDoc(CreateView):
|
class RDAoneAddDoc(CreateView):
|
||||||
|
|
|
||||||
|
|
@ -485,7 +485,7 @@ class AgencyGroup(models.Model):
|
||||||
('filedirmanager', 'Ordner bearbeiten'),
|
('filedirmanager', 'Ordner bearbeiten'),
|
||||||
('filesviewer', 'Dateien lesen'),
|
('filesviewer', 'Dateien lesen'),
|
||||||
('absencemanager', 'Abwesenheiten verwalten'),
|
('absencemanager', 'Abwesenheiten verwalten'),
|
||||||
('recoverdirmanager', 'Notfallordner verwalten')
|
('recoverdirmanager', 'Notfallhilfe verwalten')
|
||||||
]
|
]
|
||||||
|
|
||||||
# SUBCLASS
|
# SUBCLASS
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@
|
||||||
{%endif%}
|
{%endif%}
|
||||||
<a class="nav-link " href="{% url 'recoverdir' %}" aria-expanded="true">
|
<a class="nav-link " href="{% url 'recoverdir' %}" aria-expanded="true">
|
||||||
<i class="fas fa-medkit"></i>
|
<i class="fas fa-medkit"></i>
|
||||||
<span>Notfallordner</span>
|
<span>Notfallhilfe</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -106,19 +106,19 @@ def toUpdate(request):
|
||||||
else:
|
else:
|
||||||
print("default groups existing")
|
print("default groups existing")
|
||||||
|
|
||||||
# UPDATE - Notfallordner
|
# UPDATE - Notfallhilfe
|
||||||
# Gruppe Notfallordner wird hinzugefügt, wenn die Anzahl der Gruppen savefordel=True zwei ist
|
# Gruppe Notfallhilfe wird hinzugefügt, wenn die Anzahl der Gruppen savefordel=True zwei ist
|
||||||
if (len(AgencyGroup.objects.filter(agency=request.user.profile.agency, savefordel=True)) == 2):
|
if (len(AgencyGroup.objects.filter(agency=request.user.profile.agency, savefordel=True)) == 2):
|
||||||
print("missing recoverdir-group...adding")
|
print("missing recoverdir-group...adding")
|
||||||
# NOTFALLORDNER
|
# Notfallhilfe
|
||||||
letters = string.ascii_lowercase
|
letters = string.ascii_lowercase
|
||||||
temgroup_notfallordner = Group(name=str(request.user.profile.agency.pk) + "_" + randomString(8))
|
temgroup_Notfallhilfe = Group(name=str(request.user.profile.agency.pk) + "_" + randomString(8))
|
||||||
temgroup_notfallordner.save()
|
temgroup_Notfallhilfe.save()
|
||||||
temgroup_notfallordner_ag = AgencyGroup(savefordel=True, group=temgroup_notfallordner, agency=request.user.profile.agency, agencygroupname="Notfallordner")
|
temgroup_Notfallhilfe_ag = AgencyGroup(savefordel=True, group=temgroup_Notfallhilfe, agency=request.user.profile.agency, agencygroupname="Notfallhilfe")
|
||||||
temgroup_notfallordner_ag.save()
|
temgroup_Notfallhilfe_ag.save()
|
||||||
|
|
||||||
recoverdirmanagingperm = Permission.objects.get(codename='recoverdirmanager')
|
recoverdirmanagingperm = Permission.objects.get(codename='recoverdirmanager')
|
||||||
temgroup_notfallordner_ag.group.permissions.add(recoverdirmanagingperm)
|
temgroup_Notfallhilfe_ag.group.permissions.add(recoverdirmanagingperm)
|
||||||
print("recoverdirgroup added and perms set")
|
print("recoverdirgroup added and perms set")
|
||||||
|
|
||||||
# CHECK FOR ALL POSSIBLE RIGHTS ON ADMINGROUP
|
# CHECK FOR ALL POSSIBLE RIGHTS ON ADMINGROUP
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue