Buttons richtig und Zeichensatzcheck im Dashboard

This commit is contained in:
holger.trampe 2020-04-19 19:14:52 +02:00
parent c4b04715fd
commit 1b7f010a01
5 changed files with 21 additions and 16 deletions

View File

@ -15,9 +15,9 @@ import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
############################################## DEV ##################################### ############################################## DEV #####################################
BASE_URL = "https://dev01.digitale-agentur.com/" BASE_URL = "https://dev01.digitale-agentur.com/"
CRONAPIKEY = "gCddsaz6NOnE9QbXZM5LasdEk122D"
# MAIL DEV # MAIL DEV
EMAIL_HOST = 'smtp.strato.de' 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'] ALLOWED_HOSTS = ['digitale-agentur.com', 'www.digitale-agentur.com', 'localhost', 'dev01.digitale-agentur.com']
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'notificsys.apps.NotificsysConfig', 'notificsys.apps.NotificsysConfig',

View File

@ -40,8 +40,6 @@
</div> </div>
</div> </div>
<div class="card"> <div class="card">
<div class="card-header" id="st_useraut"> <div class="card-header" id="st_useraut">
<h5 class="mb-0"> <h5 class="mb-0">
@ -197,26 +195,29 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div style="float: left;">
</div>
<p>Wenn ein Standard bearbeitet wurde, kann er nur von einer Person mit dem Recht <i>Standards bearbeiten und freischalten</i> wieder veröffentlicht werden. Ein Standard wird nach Bearbeitung als <i>Nicht veröffentlicht</i> gesetzt.</p> <p>Wenn ein Standard bearbeitet wurde, kann er nur von einer Person mit dem Recht <i>Standards bearbeiten und freischalten</i> wieder veröffentlicht werden. Ein Standard wird nach Bearbeitung als <i>Nicht veröffentlicht</i> gesetzt.</p>
<hr> <hr>
<button type="submit" class="btn btn-success" href="{% url 'standard-update' standard_id %} ">Speichern</button>&nbsp;
<button type="submit" class="btn btn-success" href="{% url 'standard-update' standard_id %} ">Speichern</button>&nbsp;
{% if perms.users.standard_management %} {% if perms.users.standard_management %}
{% if standard_status == False %} {% if standard_status == False %}
<a class="btn btn-primary" href="{% url 'standard-status' standard_id %} ">Standard veröffentlichen</a>&nbsp; <a class="btn btn-primary" href="{% url 'standard-status' standard_id %} ">Standard veröffentlichen</a>&nbsp;
{% else %} {% else %}
<a class="btn btn-warning" href="{% url 'standard-status' standard_id %} ">Veröffentlichung aufheben</a>&nbsp; <a class="btn btn-warning" href="{% url 'standard-status' standard_id %} ">Veröffentlichung aufheben</a>&nbsp;
{% endif %} {% endif %}
{% endif %} {% endif %}
<a class="btn" href="{% url 'standards' %} ">Abbrechen</a> <a class="btn" href="{% url 'standards' %} ">Abbrechen</a>
</form> </form>
</div> </div>
</div>
<!-- FILE FORBIDDEN DELETE FILE --> <!-- FILE FORBIDDEN DELETE FILE -->
<div class="modal fade" id="forbiddenFileType" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="groupDelFunction" aria-hidden="true"> <div class="modal fade" id="forbiddenFileType" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="groupDelFunction" aria-hidden="true">

View File

@ -86,6 +86,9 @@
</div> </div>
<script type="text/javascript">
console.log("{{systemencode}}");
</script>
{% endblock content %} {% endblock content %}

View File

@ -35,7 +35,7 @@ from message.models import Message
from notificsys.models import UserNotification from notificsys.models import UserNotification
from organizer.models import AGContacts, AGPassword from organizer.models import AGContacts, AGPassword
import socket import socket
import sys
def randomString(stringLength=10): def randomString(stringLength=10):
"""Generate a random string of fixed length """ """Generate a random string of fixed length """
@ -171,8 +171,11 @@ def dashboard(request):
toUpdate(request) toUpdate(request)
storageinfo = sys.getfilesystemencoding()
context = { context = {
'active_link' : 'dashboard' 'active_link' : 'dashboard',
"systemencode" : storageinfo
} }
# Adding active_link # Adding active_link
# Loading only user same agency # Loading only user same agency