Buttons richtig und Zeichensatzcheck im Dashboard
This commit is contained in:
parent
c4b04715fd
commit
1b7f010a01
Binary file not shown.
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header" id="st_useraut">
|
||||
<h5 class="mb-0">
|
||||
|
|
@ -197,26 +195,29 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
|
||||
<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>
|
||||
<button type="submit" class="btn btn-success" href="{% url 'standard-update' standard_id %} ">Speichern</button>
|
||||
<hr>
|
||||
|
||||
<button type="submit" class="btn btn-success" href="{% url 'standard-update' standard_id %} ">Speichern</button>
|
||||
|
||||
{% if perms.users.standard_management %}
|
||||
{% if standard_status == False %}
|
||||
<a class="btn btn-primary" href="{% url 'standard-status' standard_id %} ">Standard veröffentlichen</a>
|
||||
<a class="btn btn-primary" href="{% url 'standard-status' standard_id %} ">Standard veröffentlichen</a>
|
||||
{% else %}
|
||||
<a class="btn btn-warning" href="{% url 'standard-status' standard_id %} ">Veröffentlichung aufheben</a>
|
||||
<a class="btn btn-warning" href="{% url 'standard-status' standard_id %} ">Veröffentlichung aufheben</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<a class="btn" href="{% url 'standards' %} ">Abbrechen</a>
|
||||
<a class="btn" href="{% url 'standards' %} ">Abbrechen</a>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- FILE FORBIDDEN DELETE FILE -->
|
||||
<div class="modal fade" id="forbiddenFileType" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="groupDelFunction" aria-hidden="true">
|
||||
|
|
|
|||
|
|
@ -86,6 +86,9 @@
|
|||
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
console.log("{{systemencode}}");
|
||||
</script>
|
||||
{% endblock content %}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue