From ad5173f3588d816a7816b9ae78b16b11b0c4dd6e Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Sun, 16 Feb 2020 17:12:47 +0100 Subject: [PATCH] =?UTF-8?q?Standardsumbaum=20komplett=20fertig,=200.8.0=20?= =?UTF-8?q?f=C3=BCr=20QS=20bereit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- standards/__pycache__/models.cpython-38.pyc | Bin 2006 -> 2006 bytes standards/__pycache__/urls.cpython-38.pyc | Bin 1126 -> 1198 bytes standards/__pycache__/views.cpython-38.pyc | Bin 7480 -> 9026 bytes .../standards/standards_management.html | 21 +- .../templates/standards/standards_single.html | 35 +- .../templates/standards/standards_update.html | 304 +++++++++++++++++- standards/urls.py | 1 + standards/views.py | 99 +++++- users/templates/users/base.html | 2 +- 9 files changed, 444 insertions(+), 18 deletions(-) diff --git a/standards/__pycache__/models.cpython-38.pyc b/standards/__pycache__/models.cpython-38.pyc index 59d37158b427330994dc41a7ad8795b54b7a4545..6e67bcbccdffcfaa4bf938de7ca9bb0bef10b50a 100644 GIT binary patch delta 19 Zcmcb{e~q6jl$V!_0SGK&H*%d}2LLX*1aSZW delta 19 Zcmcb{e~q6jl$V!_0SNXfY~(t_4gfH%1iAnK diff --git a/standards/__pycache__/urls.cpython-38.pyc b/standards/__pycache__/urls.cpython-38.pyc index 29e42d32824cef7b763b480ffc27da2ccd9c232b..ca044698c3065ba60cd280fcb0297cef3d84a10f 100644 GIT binary patch delta 209 zcmaFHv5r$al$V!_0SKHEJ>yoeFfcp@agYHYkmCTv#SbQGcL_6R@uvu-aP=~$GNuTp zaxUOr$T0DQfdr5zoywdgoFW5~OXrFbNs$d^(3IQE#Hhfi!Izj-T2QQSlbKgyRgi5L zC0<&Pl30=&UtE%ymy%eN5}#BVpO}?cFb$pIa~ V!^p!Z0E9ejB8+@cC;(%90|0*JF#-Sp delta 137 zcmZ3-`HVw5l$V!_0SLA^zmJV%VPJR+;vfTF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N#TG)I-)LOeZ0YhyQ zCEt%?frjD@`2}Uzr`n{@Jt#B#e-J zng!LTFdqDci2hK6+yl>+(*T7~2bT~-9(uz@N{on_J_r(^4%B>8c47Nr17+}nKupz@ zO;vDSM9XS`DQg7EcNrgptS%!laB~xAq1CWcFG8Rv03Ha0_1XHi#tj1Zrr<{YhkK{S z4FUH)aHFdcCsvCauEZ^iz;D;c^+5hvki-8b3vRx~jfnSY2X-7nSKb<@9R0_X_te;x zQ*ThP!!>q!D_vo6Sil5JxYQs^1O%NN-Yk zwx$IaX9>=}k{cSfu-f}7OsjZNhm!!jm9u0Vo%p4ZQy!&@7%Ly2EAlBwgz6Od0ptpJ z7NbRHXPD;b_Sk}EYV!wB&^=(s%8LooA;(A-5++-_C*T<_RiQj^3y6cc{*7a8lO%_q vKD>l*6=4zK8p1Ndbp*@@e#`s1eFr(@{n_4|8Kxwxrjmg5aJ6sVnDR4k2lRn%bAgo7a(iND|v5G{sgVOJ=Yifc;s{Tj$U-8euiW7-h5(D!v(A zmI|dYd4Ww{#$E=WQ1i)MG*m>vs8ny}cq3Tc5{~1YWCZuN_yYrOw71CD>c;!w19gf3 zeicx@t3GLCIC2m2_%NcuG=7Y!L-NLMQt2kbA@|P02YzMK#Q# zX`7PM`!{$Bt&h~7kxou zasO3wh@gmoPtKKp#ueD&?%qaI8+%=2&E48f*#&G%M8U!Xi7b4;d?ImaksSVM2ZanQ z{F9X-*q#ZP5Dply3JbyzjxfA;#e&!NQadP)*KLQYUU{5+-Nw~~OtWs`P;(}uDgT$> zEsf$HeWO+ut|ptP5OvYdys3M!L`YBteyNIF!eYw<%6lw1NHv&D9&P!;UiAczNP+9e zwfdo|av9$w->cI!BX44NZ5*Gq?x&yDTl>W~51ve=d@D59tL-VD*g6Ioz6;W3%rZE& ga*?sbSZ1tXCA|&05ZbfRg92*Q#s*?7iGO4K4Jb+EWdHyG diff --git a/standards/templates/standards/standards_management.html b/standards/templates/standards/standards_management.html index beaa4ff..8c1d5a5 100644 --- a/standards/templates/standards/standards_management.html +++ b/standards/templates/standards/standards_management.html @@ -54,10 +54,29 @@ {% setvar 0 %} {% for standard in standards_of_agency %} + + {% setbool False %} + {% for ag in standard.visibleby.all %} + {% if request.user|has_group:ag.group.name %} + {% setbool True %} + {% endif %} + {% endfor %} + + {% if standard.visibleby.all|length == 0 %} + {% setbool True %} + {% endif %} + + {% getbool as groupchecker %} + + {% getvar as varcounter %} {% if standard.task == task and standard.area == area and varcounter < 3 %} {% incvar %} -

{{standard.name}}

+ {% if groupchecker %} +

{{standard.name|truncatechars:40}}

+ {% else %} +

 {{standard.name|truncatechars:40}}

+ {% endif %} {% endif %} {% endfor %} diff --git a/standards/templates/standards/standards_single.html b/standards/templates/standards/standards_single.html index 145be84..e97f652 100644 --- a/standards/templates/standards/standards_single.html +++ b/standards/templates/standards/standards_single.html @@ -1,4 +1,5 @@ {% extends "users/base.html" %} +{% load counter_tag %} {% block content %}