Umbenennung Notfallhilfe

This commit is contained in:
holger.trampe 2020-10-06 08:25:14 +02:00
parent de959c5ec0
commit 045ddffd39
18 changed files with 31 additions and 31 deletions

View File

@ -35,11 +35,11 @@
<div id="agroup_{{aggroup.pk}}_card" class="collapse" aria-labelledby="agroup_{{aggroup.pk}}" data-parent="#groupAccordion">
<div class="card-body">
<h5>Gruppenrechte{% if request.user.profile.showtooltips %}&nbsp;<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="col-4">
{% for perm in perms %}
{% if perm.help_text != "Notfallordner verwalten" %}
{% if perm.help_text != "Notfallhilfe verwalten" %}
{% if forloop.counter|divisibleby:8 %}
</div>
<div class="col-4">
@ -59,7 +59,7 @@
</div><!-- END ROW RIGHT -->
<hr>
{% else %}
Der Notfallordner ist für keine weiteren Rechte konfigurierbar.
Die Gruppe Notfallhilfe ist für keine weiteren Rechte konfigurierbar.
<hr>
{% endif %}
<div col="10">

View File

@ -166,7 +166,7 @@ def DASettings(request):
if request.user.profile.agency.module_recoverdir:
agencygroups = AgencyGroup.objects.filter(agency__pk=request.user.profile.agency.pk).order_by("agencygroupname").order_by("-savefordel")
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})

View File

@ -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}))
# NOTFALLORDNER FORMS
# Notfallhilfe FORMS
# 1 Handlungsleitfaden
class HLForm(forms.ModelForm):

View File

@ -26,7 +26,7 @@ class PersLetter(models.Model):
text = encrypt(models.CharField(max_length=100000, blank=True, default="", null=True))
history = HistoricalRecords()
# Notfallordner Datenfelder
# Notfallhilfe Datenfelder
# Handlungsleitfaden
class Handlungsleitfaden(models.Model):
agency = models.ForeignKey(Agency, on_delete=models.CASCADE, null=True)

View File

@ -15,6 +15,6 @@
</form>
</div>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -22,6 +22,6 @@ $("#id_document").on("change", function(){
})
</script>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -15,6 +15,6 @@
</form>
</div>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -33,6 +33,6 @@
</form>
</div>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -15,6 +15,6 @@
</form>
</div>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -15,6 +15,6 @@
</form>
</div>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -15,6 +15,6 @@
</form>
</div>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -3,15 +3,15 @@
{% block content %}
{% if request.user.profile.agency.module_recoverdir %}
<div class="content-section col-12">
<h3>Notfallordner{% if request.user.profile.showtooltips %}&nbsp;<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>-->
<h3>Notfallhilfe{% if request.user.profile.showtooltips %}&nbsp;<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 Notfallhilfe <small><i onclick="javascript:$('#youtubevideoinformation').modal('toggle');" class="far fa-play-circle"></i></small>-->
</h3>
<hr>
<div class="row">
<div class="col-12">
<ul class="nav nav-tabs" id="rd_tabs" role="tablist" >
<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 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>
@ -33,7 +33,7 @@
<div class="col">
<div class="tab-content" id="rd_content">
<div class="tab-pane" id="t_rd" role="tabpanel" aria-labelledby="rd">
<h5 class="mt-3">Notfallordner{% if request.user.profile.showtooltips %}&nbsp;<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 %}&nbsp;<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>
{% block rd_content %}
{% include "recoverdir/rd_rd.html" %}
@ -128,6 +128,6 @@ var defaultsettingsview = "rd";
{% 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 %}
{% endblock content %}

View File

@ -34,6 +34,6 @@ $(document).ready(function() {
});
</script>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -35,6 +35,6 @@ $(document).ready(function() {
</script>
{% else %}
<h3>Das Modul Notfallordner wurden in ihrer Agentur deaktiviert.</h3>
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
{% endif %}
{% endblock content %}

View File

@ -125,7 +125,7 @@ def randomString(stringLength=40):
letters = string.ascii_lowercase
return ''.join(random.choice(letters) for i in range(stringLength))
# NOTFALLORDNER ELEMENTE
# Notfallhilfe ELEMENTE
# ABNSCHNITT 1
class RDAoneAddDoc(CreateView):

View File

@ -485,7 +485,7 @@ class AgencyGroup(models.Model):
('filedirmanager', 'Ordner bearbeiten'),
('filesviewer', 'Dateien lesen'),
('absencemanager', 'Abwesenheiten verwalten'),
('recoverdirmanager', 'Notfallordner verwalten')
('recoverdirmanager', 'Notfallhilfe verwalten')
]
# SUBCLASS

View File

@ -214,7 +214,7 @@
{%endif%}
<a class="nav-link " href="{% url 'recoverdir' %}" aria-expanded="true">
<i class="fas fa-medkit"></i>
<span>Notfallordner</span>
<span>Notfallhilfe</span>
</a>
</li>
{% endif %}

View File

@ -106,19 +106,19 @@ def toUpdate(request):
else:
print("default groups existing")
# UPDATE - Notfallordner
# Gruppe Notfallordner wird hinzugefügt, wenn die Anzahl der Gruppen savefordel=True zwei ist
# UPDATE - Notfallhilfe
# 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):
print("missing recoverdir-group...adding")
# NOTFALLORDNER
# Notfallhilfe
letters = string.ascii_lowercase
temgroup_notfallordner = Group(name=str(request.user.profile.agency.pk) + "_" + randomString(8))
temgroup_notfallordner.save()
temgroup_notfallordner_ag = AgencyGroup(savefordel=True, group=temgroup_notfallordner, agency=request.user.profile.agency, agencygroupname="Notfallordner")
temgroup_notfallordner_ag.save()
temgroup_Notfallhilfe = Group(name=str(request.user.profile.agency.pk) + "_" + randomString(8))
temgroup_Notfallhilfe.save()
temgroup_Notfallhilfe_ag = AgencyGroup(savefordel=True, group=temgroup_Notfallhilfe, agency=request.user.profile.agency, agencygroupname="Notfallhilfe")
temgroup_Notfallhilfe_ag.save()
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")
# CHECK FOR ALL POSSIBLE RIGHTS ON ADMINGROUP