Bug Standard veröffentlichen ja nein
kleiner Zahlen Fixed Navbar TRY
This commit is contained in:
parent
11672fb55d
commit
b901a749d6
|
|
@ -16,7 +16,7 @@
|
||||||
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table" >
|
<table class="table table-hover" >
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Titel</th>
|
<th scope="col">Titel</th>
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -47,15 +47,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% getvar as varcounter %}
|
{% getvar as varcounter %}
|
||||||
{% if varcounter > 3%}
|
|
||||||
<h5 class="card-title">
|
<h5 class="card-title">
|
||||||
<a href="{% url 'standard-task' task.pk %}" style="color: #000000;">{{task.name}} ({{varcounter}})</a>
|
<a href="{% url 'standard-task' task.pk %}" style="color: #000000;">{{task.name}}</a> <small>({{varcounter}})</small>
|
||||||
</h5>
|
</h5>
|
||||||
{% else %}
|
|
||||||
<h5 class="card-title">
|
|
||||||
<a href="{% url 'standard-task' task.pk %}" style="color: #000000;">{{task.name}}</a>
|
|
||||||
</h5>
|
|
||||||
{% endif %}
|
|
||||||
{% setvar 0 %}
|
{% setvar 0 %}
|
||||||
{% for standard in standards_of_agency %}
|
{% for standard in standards_of_agency %}
|
||||||
{% getvar as varcounter %}
|
{% getvar as varcounter %}
|
||||||
|
|
@ -76,7 +70,7 @@
|
||||||
<input class="form-control" id="tableSearch" size="20" type="text" placeholder="Suche in Tabelle...">
|
<input class="form-control" id="tableSearch" size="20" type="text" placeholder="Suche in Tabelle...">
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Titel</th>
|
<th scope="col">Titel</th>
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,7 @@ def StandardAdd(request):
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
normalForm = StandardAddStandard(request.POST, instance=request.user)
|
normalForm = StandardAddStandard(request.POST, instance=request.user)
|
||||||
editorForm = StandardAddStandardEditor(request.POST, instance=request.user)
|
editorForm = StandardAddStandardEditor(request.POST, instance=request.user)
|
||||||
|
|
||||||
if editorForm.is_valid() and normalForm.is_valid():
|
if editorForm.is_valid() and normalForm.is_valid():
|
||||||
print(request.POST)
|
|
||||||
normalForm.agency = request.user.profile.agency
|
normalForm.agency = request.user.profile.agency
|
||||||
normalForm.created_standard_by = request.user
|
normalForm.created_standard_by = request.user
|
||||||
normalForm.created_standard_date = datetime.now()
|
normalForm.created_standard_date = datetime.now()
|
||||||
|
|
@ -57,7 +55,7 @@ def StandardAdd(request):
|
||||||
new_standard.public = normalForm.cleaned_data['public']
|
new_standard.public = normalForm.cleaned_data['public']
|
||||||
new_standard.save()
|
new_standard.save()
|
||||||
tempstandardname = normalForm.cleaned_data['name']
|
tempstandardname = normalForm.cleaned_data['name']
|
||||||
if(new_standard.public and request.user.has_perm('standard-management')):
|
if(new_standard.public and request.user.has_perm('users.standard_management')):
|
||||||
messages.success(request, f'Standard {tempstandardname} hinzugefügt und veröffentlicht.')
|
messages.success(request, f'Standard {tempstandardname} hinzugefügt und veröffentlicht.')
|
||||||
else:
|
else:
|
||||||
new_standard.public = False
|
new_standard.public = False
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
|
||||||
<!-- Sidebar -->
|
<!-- Sidebar -->
|
||||||
<ul class="navbar-nav bg-gray-900 sidebar sidebar-dark accordion " id="accordionSidebar">
|
<ul class="navbar-nav bg-gray-900 sidebar sidebar-dark accordion fixed " id="accordionSidebar">
|
||||||
|
|
||||||
<!-- Sidebar - Brand -->
|
<!-- Sidebar - Brand -->
|
||||||
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{% url 'users-dashboard' %}">
|
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{% url 'users-dashboard' %}">
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,6 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Keine Ergebnisse in Standards</p>
|
<p>Keine Ergebnisse in Standards</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<h4>Bereiche</h4>
|
<h4>Bereiche</h4>
|
||||||
{% if res_areas|length > 0 %}
|
{% if res_areas|length > 0 %}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue