DEV FÜR 0.9.0
This commit is contained in:
parent
47e99e6aff
commit
00c7b2ac24
|
|
@ -131,8 +131,8 @@
|
|||
Möchten Sie diesem Verbund beitreten?
|
||||
<br />
|
||||
<div class="mt-2">
|
||||
<a type="button" class="btn btn-secondary" data-dismiss="modal" href="{% url 'dasettings' %}">Abbrechen</a>
|
||||
<a type="button" class="btn btn-success" data-dismiss="modal" href="{% url 'joinagn' agn.pk %}">Verbund beitreten</a>
|
||||
<a type="button" class="btn btn-primary" data-dismiss="modal" href="{% url 'joinagn' agn.pk %}">Verbund beitreten</a>
|
||||
<a type="button" class="btn btn" data-dismiss="modal" href="{% url 'dasettings' %}">Abbrechen</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -404,11 +404,12 @@ def SettingsAjaxRouter(request):
|
|||
s.public = False
|
||||
s.save()
|
||||
|
||||
|
||||
tasks = Tasks.objects.filter(agency=request.user.profile.agency, area=todelarea).delete()
|
||||
todelarea.delete()
|
||||
success = True
|
||||
else:
|
||||
success = False
|
||||
|
||||
# ADD TASK
|
||||
elif request.method == 'GET' and request.GET['action'] == "add_task" :
|
||||
task = Tasks(created_area_by=request.user, area=Areas.objects.get(pk=request.GET['areaid']), agency=request.user.profile.agency, name=request.GET["newvalue"])
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -26,7 +26,7 @@ EMAIL_HOST = 'smtp.strato.de'
|
|||
EMAIL_PORT = 587
|
||||
EMAIL_USE_TLS = True
|
||||
EMAIL_HOST_USER = "support@dev01.digitale-agentur.com"
|
||||
EMAIL_HOST_PASSWORD = "support@dev01.digitale-agentur.com"
|
||||
EMAIL_HOST_PASSWORD = "n2xd7emyKZFb6UREzvbintuUIG"
|
||||
DEFAULT_FROM_EMAIL = "support@dev01.digitale-agentur.com"
|
||||
|
||||
# DEV
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
{% for item in standards_of_agency_area %}
|
||||
{% if item.public or item.created_standard_by == user or perms.users.standard_management %}
|
||||
{% if item.public or item.created_standard_by == user or perms.users.standardmanager %}
|
||||
<tr>
|
||||
<td><a href="{% url 'standard-single' item.pk %}">{{item.name}}</a></td>
|
||||
<td>{{item.created_standard_by.first_name}} {{item.created_standard_by.last_name}}</td>
|
||||
|
|
@ -32,16 +32,15 @@
|
|||
<td>{{ item.last_modified_on|date:"d.m.Y, H:i"}}</td>
|
||||
<td>{{item.public|yesno:"Öffentlich,Nicht öffentlich"}}</td>
|
||||
<td>
|
||||
{% if item.created_standard_by == user or perms.users.standard_management %}
|
||||
<div class="dropdown no-arrow">
|
||||
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink"> <a class="dropdown-item" href="{% url 'standard-add' item.pk %}">Bearbeiten</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-danger" href="{% url 'standard-delete' item.pk %}" >Löschen</a>
|
||||
</div>
|
||||
</div>
|
||||
{% if item.created_standard_by == user or perms.users.standardmanager %}
|
||||
<a style="float: right" class="btn btn-secondary btn-sm ml-2" href="{% url 'standard-delete' item.pk %}">
|
||||
<small>
|
||||
<i class="fas fa-trash"></i></small></a>
|
||||
|
||||
<a style="float: right" class="btn btn-secondary btn-sm " href="{% url 'standard-add' item.pk %}">
|
||||
<small>
|
||||
<i class="fas fa-pen"></i>
|
||||
</small></a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<li class="breadcrumb-item active" aria-current="page"><a href="{% url 'standard-task' taskid %}">{{taskname}}</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
<h4>Standards aus dem Aufgabenbereich {{taskname}} des Bereichs {{areaname}}</h4>
|
||||
<h4>Standards aus dem Tätigkeitsbereich {{taskname}} des Bereichs {{areaname}}</h4>
|
||||
<hr>
|
||||
<div class="col-12">
|
||||
<table class="table hover " id="standardstable">
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
{% for item in standards_of_agency_task %}
|
||||
{% if item.public or item.created_standard_by == user or perms.users.standard_management %}
|
||||
{% if item.public or item.created_standard_by == user or perms.users.standardmanager %}
|
||||
<tr>
|
||||
<td><a href="{% url 'standard-single' item.pk %}">{{item.name}}</a></td>
|
||||
<td>{{item.created_standard_by.first_name}} {{item.created_standard_by.last_name}}</td>
|
||||
|
|
@ -33,16 +33,15 @@
|
|||
<td>{{ item.last_modified_on|date:"d.m.Y, H:i"}}</td>
|
||||
<td>{{item.public|yesno:"Öffentlich,Nicht öffentlich"}}</td>
|
||||
<td>
|
||||
{% if item.created_standard_by == user or perms.users.standard_management %}
|
||||
<div class="dropdown no-arrow">
|
||||
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink"> <a class="dropdown-item" href="{% url 'standard-add' item.pk %}">Bearbeiten</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-danger" href="{% url 'standard-delete' item.pk %}" >Löschen</a>
|
||||
</div>
|
||||
</div>
|
||||
{% if item.created_standard_by == user or perms.users.standardmanager %}
|
||||
<a style="float: right" class="btn btn-secondary btn-sm ml-2" href="{% url 'standard-delete' item.pk %}">
|
||||
<small>
|
||||
<i class="fas fa-trash"></i></small></a>
|
||||
|
||||
<a style="float: right" class="btn btn-secondary btn-sm " href="{% url 'standard-add' item.pk %}">
|
||||
<small>
|
||||
<i class="fas fa-pen"></i>
|
||||
</small></a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -105,9 +105,6 @@ def checkUserDirRights(request, startdir, userid):
|
|||
return canview
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@login_required
|
||||
def StandardAdd(request, id=False):
|
||||
# NEW STANDARD
|
||||
|
|
@ -654,7 +651,7 @@ def CopyStandard(request, pk):
|
|||
|
||||
@login_required
|
||||
def StandardArea(request, pk):
|
||||
standards = Standards.objects.filter(agency__pk=request.user.profile.agency.pk).filter(area__pk=pk)
|
||||
standards = Standards.objects.filter(agency__pk=request.user.profile.agency.pk).exclude(area=None).exclude(task=None).filter(area__pk=pk)
|
||||
area = Areas.objects.get(pk=pk, agency=request.user.profile.agency)
|
||||
context = {
|
||||
'active_link':'standards',
|
||||
|
|
@ -666,7 +663,7 @@ def StandardArea(request, pk):
|
|||
|
||||
@login_required
|
||||
def StandardTask(request, pk):
|
||||
standards = Standards.objects.filter(agency__pk=request.user.profile.agency.pk).filter(task__pk=pk)
|
||||
standards = Standards.objects.filter(agency__pk=request.user.profile.agency.pk).exclude(area=None).exclude(task=None).filter(task__pk=pk)
|
||||
task = Tasks.objects.get(pk=pk, agency=request.user.profile.agency)
|
||||
area = Areas.objects.get(pk=task.area.pk, agency=request.user.profile.agency)
|
||||
context = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue