Bugs gelöst
This commit is contained in:
parent
0a674f71ca
commit
bdc0ca92ce
|
|
@ -230,11 +230,11 @@
|
|||
Benutzername: <b/>{{pass.agpass_username }}</b><br />
|
||||
Passwort: <b/>{{pass.agpass_username }}</b><br />
|
||||
{% else %}
|
||||
Sie dürfen keine Informationen dieses Passwords einsehen.
|
||||
Sie dürfen keine Informationen dieses Passwortes einsehen.
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal">Schließen</button>
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Schließen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -41,8 +41,7 @@ def has_group(user, group_name):
|
|||
if g.name == group_name:
|
||||
in_group = True
|
||||
return in_group
|
||||
|
||||
|
||||
|
||||
@register.simple_tag
|
||||
def setbool(value):
|
||||
global groupbool
|
||||
|
|
|
|||
|
|
@ -257,6 +257,10 @@ def StandardAdd(request, id=False):
|
|||
standard.freefield_content = normalForm.cleaned_data['freefield_content']
|
||||
standard.freefield_title = normalForm.cleaned_data['freefield_title']
|
||||
|
||||
# Clear Users, will set again next step
|
||||
standard.authority.clear()
|
||||
standard.executor.clear()
|
||||
standard.representative.clear()
|
||||
|
||||
# ADD NEW INFOS
|
||||
# REPRESENTATIV
|
||||
|
|
|
|||
|
|
@ -144,9 +144,9 @@
|
|||
<div class="modal-body">
|
||||
{% setbool False %}
|
||||
|
||||
{% for passgrous in pass.visibleby.all %}
|
||||
{% if user|has_group:pass.group.name %}
|
||||
{% setbool True %}
|
||||
{% for passgroup in pass.visibleby.all %}
|
||||
{% if user|has_group:passgroup.group.name %}
|
||||
{% setbool True %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
|
@ -161,11 +161,11 @@
|
|||
Benutzername: <b/>{{pass.agpass_username }}</b><br />
|
||||
Passwort: <b/>{{pass.agpass_username }}</b><br />
|
||||
{% else %}
|
||||
Sie dürfen keine Informationen dieses Passwords einsehen.
|
||||
Sie dürfen keine Informationen dieses Passwortes einsehen.
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal">Schließen</button>
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Schließen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -645,9 +645,9 @@ def GlobalSearch(request):
|
|||
|
||||
res_files = DataFile.objects.filter(agency__pk=ag).filter(name__icontains=searchfor)
|
||||
|
||||
print(res_files)
|
||||
|
||||
|
||||
html = render_to_string('users/searchres.html', {'links': links, 'res_standard': res_standard, 'res_areas': res_areas, 'res_tasks': res_tasks, 'res_pers': res_pers, 'res_news' : res_news, 'res_pass' : res_pass, 'res_contacts' : res_contacts, 'res_files' : res_files})
|
||||
html = render_to_string('users/searchres.html', {'links': links, 'res_standard': res_standard, 'res_areas': res_areas, 'res_tasks': res_tasks, 'res_pers': res_pers, 'res_news' : res_news, 'res_pass' : res_pass, 'res_contacts' : res_contacts, 'res_files' : res_files, 'user' : request.user})
|
||||
return HttpResponse(html)
|
||||
else:
|
||||
return HttpResponse("Request method is not a GET")
|
||||
|
|
|
|||
Loading…
Reference in New Issue