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...">
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Name</th>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table" >
|
||||
<table class="table table-hover" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Titel</th>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -47,15 +47,9 @@
|
|||
{% endif %}
|
||||
{% endfor %}
|
||||
{% getvar as varcounter %}
|
||||
{% if varcounter > 3%}
|
||||
<h5 class="card-title">
|
||||
<a href="{% url 'standard-task' task.pk %}" style="color: #000000;">{{task.name}} ({{varcounter}})</a>
|
||||
</h5>
|
||||
{% else %}
|
||||
<h5 class="card-title">
|
||||
<a href="{% url 'standard-task' task.pk %}" style="color: #000000;">{{task.name}}</a>
|
||||
</h5>
|
||||
{% endif %}
|
||||
<a href="{% url 'standard-task' task.pk %}" style="color: #000000;">{{task.name}}</a> <small>({{varcounter}})</small>
|
||||
</h5>
|
||||
{% setvar 0 %}
|
||||
{% for standard in standards_of_agency %}
|
||||
{% getvar as varcounter %}
|
||||
|
|
@ -76,7 +70,7 @@
|
|||
<input class="form-control" id="tableSearch" size="20" type="text" placeholder="Suche in Tabelle...">
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Titel</th>
|
||||
|
|
|
|||
|
|
@ -32,10 +32,8 @@ class StandardsManagement(LoginRequiredMixin, ListView):
|
|||
def StandardAdd(request):
|
||||
if request.method == 'POST':
|
||||
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():
|
||||
print(request.POST)
|
||||
normalForm.agency = request.user.profile.agency
|
||||
normalForm.created_standard_by = request.user
|
||||
normalForm.created_standard_date = datetime.now()
|
||||
|
|
@ -57,7 +55,7 @@ def StandardAdd(request):
|
|||
new_standard.public = normalForm.cleaned_data['public']
|
||||
new_standard.save()
|
||||
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.')
|
||||
else:
|
||||
new_standard.public = False
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Name</th>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
<div id="wrapper">
|
||||
|
||||
<!-- 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 -->
|
||||
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{% url 'users-dashboard' %}">
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@
|
|||
{% else %}
|
||||
<p>Keine Ergebnisse in Standards</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<hr>
|
||||
<h4>Bereiche</h4>
|
||||
{% if res_areas|length > 0 %}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Name</th>
|
||||
|
|
|
|||
Loading…
Reference in New Issue