From 1b7f010a010fb8ce3c940997d02bbac37e1182fd Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Sun, 19 Apr 2020 19:14:52 +0200 Subject: [PATCH] Buttons richtig und Zeichensatzcheck im Dashboard --- .../__pycache__/settings.cpython-38.pyc | Bin 3891 -> 3842 bytes digitaleagentur/settings.py | 4 +-- .../templates/standards/standards_update.html | 23 +++++++++--------- users/templates/users/dashboard.html | 3 +++ users/views.py | 7 ++++-- 5 files changed, 21 insertions(+), 16 deletions(-) diff --git a/digitaleagentur/__pycache__/settings.cpython-38.pyc b/digitaleagentur/__pycache__/settings.cpython-38.pyc index 0f8659dba989d310cc65f5de1894b575f2fe2acc..24d36b49e0e6855e06ca02062d8643be8c9e20bd 100644 GIT binary patch delta 353 zcmXX?IZpy%5Z!NCmKFGxTSPfjR75<$8!u42Z$)D=g^h2sSrcm$8xsrr&6ZL?V`;Ok zzr!ElFR=8JIForZc`tdB88`cq<=341B@sWbty^yM412Om^{S78@DYcG9{5ED5Cm^| zEk-(Y3L!*cged}*qKF`h7~-ZvF(mBw^0S$uIHoa!GAfwG9OkiLYLvht^&xrIEO0EEa3u| zXj)9nlaQNI@yh*RU~a`@X>7`Q3pCvCz=Q1n62DV|nkTI|cY1*-j;)uRwyrv#`r|K{ C^jw+% delta 404 zcmXYtIZpy%5Qh2K1yc=ADNFa$NEF*;#O`-v;(je9} z3mjO-2GZC>MiX_0t+uE!8p1aDkwuP^EOt!Io4Ttr?mmnHjbM*P`PKlhAoeMQ0~*62 zjpK+W8tm5kSr^PU*|2q3hv9h8LSd6kHNrUQSZNwXiu@BhN}SA~Oi^w&iwebX3I{)P z4ri$1TxWcqhqY>n*1F#eEJOh<4>Ye|R!ZfE!usjW1r<{#*G&}e63OIlR~2-LEf~+P uyiCsgS-F&}93B_y-5=MzRsQAA7G+5o6+~tv)d;g2S8B|7RPDxx`t%2VqG{s* diff --git a/digitaleagentur/settings.py b/digitaleagentur/settings.py index 9b28b17..22b2e57 100644 --- a/digitaleagentur/settings.py +++ b/digitaleagentur/settings.py @@ -15,9 +15,9 @@ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + ############################################## DEV ##################################### BASE_URL = "https://dev01.digitale-agentur.com/" -CRONAPIKEY = "gCddsaz6NOnE9QbXZM5LasdEk122D" # MAIL DEV EMAIL_HOST = 'smtp.strato.de' @@ -57,8 +57,6 @@ DEBUG = True ALLOWED_HOSTS = ['digitale-agentur.com', 'www.digitale-agentur.com', 'localhost', 'dev01.digitale-agentur.com'] - - # Application definition INSTALLED_APPS = [ 'notificsys.apps.NotificsysConfig', diff --git a/standards/templates/standards/standards_update.html b/standards/templates/standards/standards_update.html index 3030003..0f75ce8 100644 --- a/standards/templates/standards/standards_update.html +++ b/standards/templates/standards/standards_update.html @@ -40,8 +40,6 @@ - -
@@ -197,26 +195,29 @@
+ - - - - +
+

Wenn ein Standard bearbeitet wurde, kann er nur von einer Person mit dem Recht Standards bearbeiten und freischalten wieder veröffentlicht werden. Ein Standard wird nach Bearbeitung als Nicht veröffentlicht gesetzt.

-
-   +
+ +   {% if perms.users.standard_management %} {% if standard_status == False %} - Standard veröffentlichen  + Standard veröffentlichen  {% else %} - Veröffentlichung aufheben  + Veröffentlichung aufheben  {% endif %} {% endif %} - Abbrechen + Abbrechen +
+ + + {% endblock content %} diff --git a/users/views.py b/users/views.py index d05b6f4..d2c00e6 100644 --- a/users/views.py +++ b/users/views.py @@ -35,7 +35,7 @@ from message.models import Message from notificsys.models import UserNotification from organizer.models import AGContacts, AGPassword import socket - +import sys def randomString(stringLength=10): """Generate a random string of fixed length """ @@ -171,8 +171,11 @@ def dashboard(request): toUpdate(request) + storageinfo = sys.getfilesystemencoding() + context = { - 'active_link' : 'dashboard' + 'active_link' : 'dashboard', + "systemencode" : storageinfo } # Adding active_link # Loading only user same agency