Bentzer nach ALphabet
Supprtfeld Email und Name nicht änderbar Support Imagefile weg Wort AGENTUR im Organigramm weg ALLEN Tabellen sind jetzt Responsive Bei ALLEN Tabellen kann jetzt oben gesucht werden Es gibt bei Standards jetzt eine Zahl, wenn es mehr als 3 gibt Bei Standards werden nur 3 angezeigt Die Cards bei Standards sind alle gleichgroß
This commit is contained in:
parent
b9c6c798b4
commit
8458b456d9
|
|
@ -12,6 +12,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row mt-3">
|
<div class="row mt-3">
|
||||||
|
<div class="form-group mb-2">
|
||||||
|
<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">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -22,6 +26,7 @@
|
||||||
<th scope="col"> </th>
|
<th scope="col"> </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tbody id="tableresults">
|
||||||
{% for item in areas_of_agency %}
|
{% for item in areas_of_agency %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ item.name }}</td>
|
<td>{{ item.name }}</td>
|
||||||
|
|
@ -44,6 +49,18 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#tableSearch").on("keyup", function() {
|
||||||
|
var value = $(this).val().toLowerCase();
|
||||||
|
$("#tableresults tr").filter(function() {
|
||||||
|
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,17 @@
|
||||||
Hier können aktuelle Nachrichten für die Agentur erstellt und verwaltet werden.
|
Hier können aktuelle Nachrichten für die Agentur erstellt und verwaltet werden.
|
||||||
</p>
|
</p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="content-section col-4">
|
|
||||||
<a class="btn btn-primary" href="{% url 'news-add' %} ">News erstellen</a>
|
<a class="btn btn-primary" href="{% url 'news-add' %} ">News erstellen</a>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row mt-3">
|
</div>
|
||||||
<table class="table">
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="form-group mb-2">
|
||||||
|
<input class="form-control" id="tableSearch" size="50" type="text" placeholder="Suche in Tabelle...">
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table" >
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Titel</th>
|
<th scope="col">Titel</th>
|
||||||
|
|
@ -23,6 +27,7 @@
|
||||||
<th scope="col"> </th>
|
<th scope="col"> </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tbody id="tableresults">
|
||||||
{% for news_single in news %}
|
{% for news_single in news %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url 'news-single' news_single.pk %}">{{news_single.name }}</a></td>
|
<td><a href="{% url 'news-single' news_single.pk %}">{{news_single.name }}</a></td>
|
||||||
|
|
@ -46,6 +51,18 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#tableSearch").on("keyup", function() {
|
||||||
|
var value = $(this).val().toLowerCase();
|
||||||
|
$("#tableresults tr").filter(function() {
|
||||||
|
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var data = [
|
var data = [
|
||||||
{ 'id': 'parent', 'role': "", 'name': 'Agentur {{request.user.profile.agency.name}}', 'color': '#71AF17', "imageUrl": ""},
|
{ 'id': 'parent', 'role': "", 'name': '{{request.user.profile.agency.name}}', 'color': '#71AF17', "imageUrl": ""},
|
||||||
{% for u in agencyuser %}
|
{% for u in agencyuser %}
|
||||||
{% if u.profile.parent == u %}
|
{% if u.profile.parent == u %}
|
||||||
{ 'id': '{{u.pk}}' , 'name': "{{u.first_name}} {{u.last_name}}",'role': '{{u.profile.get_func_display}}\n{{u.profile.compfunc}}', 'manager': 'parent', 'color': '#1859B7', "imageUrl": "{{u.profile.get_photo_url}}", 'userid' : '{{u.pk}}' },
|
{ 'id': '{{u.pk}}' , 'name': "{{u.first_name}} {{u.last_name}}",'role': '{{u.profile.get_func_display}}\n{{u.profile.compfunc}}', 'manager': 'parent', 'color': '#1859B7', "imageUrl": "{{u.profile.get_photo_url}}", 'userid' : '{{u.pk}}' },
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,23 @@
|
||||||
{% if task.area == area %}
|
{% if task.area == area %}
|
||||||
<div class="card text-center mt-1 mr-3 mb-3" style="width: 18rem; height: 12rem; float: left">
|
<div class="card text-center mt-1 mr-3 mb-3" style="width: 18rem; height: 12rem; float: left">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title"><a href="{% url 'standard-task' task.pk %}" style="color: #000000;">{{task.name}}</a></h5>
|
{% setvar 0 %}
|
||||||
|
{% for standard in standards_of_agency %}
|
||||||
|
{% getvar as varcounter %}
|
||||||
|
{% if standard.task == task and standard.area == area%}
|
||||||
|
{% incvar %}
|
||||||
|
{% 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 %}
|
||||||
{% setvar 0 %}
|
{% setvar 0 %}
|
||||||
{% for standard in standards_of_agency %}
|
{% for standard in standards_of_agency %}
|
||||||
{% getvar as varcounter %}
|
{% getvar as varcounter %}
|
||||||
|
|
@ -52,11 +68,14 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="tab-pane fade" id="t_userown" role="tabpanel" aria-labelledby="userown">
|
<div class="tab-pane fade" id="t_userown" role="tabpanel" aria-labelledby="userown">
|
||||||
<h4 class="mt-4 mb-4">Ihre Standards</h4>
|
<h4 class="mt-4 mb-4">Ihre Standards</h4>
|
||||||
|
<div class="form-group mb-2">
|
||||||
|
<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">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -68,6 +87,7 @@
|
||||||
<th scope="col"> </th>
|
<th scope="col"> </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tbody id="tableresults">
|
||||||
{% for standard in standards_of_user %}
|
{% for standard in standards_of_user %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url 'standard-single' standard.pk %}">{{standard.name}}</a></td>
|
<td><a href="{% url 'standard-single' standard.pk %}">{{standard.name}}</a></td>
|
||||||
|
|
@ -94,7 +114,9 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -102,6 +124,13 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#area_tabs li:first-child a').tab('show');
|
$('#area_tabs li:first-child a').tab('show');
|
||||||
|
|
||||||
|
$("#tableSearch").on("keyup", function() {
|
||||||
|
var value = $(this).val().toLowerCase();
|
||||||
|
$("#tableresults tr").filter(function() {
|
||||||
|
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||||
|
});
|
||||||
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -109,5 +138,6 @@
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
$(this).tab('show')
|
$(this).tab('show')
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
@ -13,7 +13,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row mt-3">
|
<div class="row mt-3">
|
||||||
|
<div class="form-group mb-2">
|
||||||
|
<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">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -24,6 +27,7 @@
|
||||||
<th scope="col"> </th>
|
<th scope="col"> </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tbody id="tableresults">
|
||||||
{% for item in tasks_of_agency %}
|
{% for item in tasks_of_agency %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url 'standard-task' item.pk %}">{{item.name }}</a></td>
|
<td><a href="{% url 'standard-task' item.pk %}">{{item.name }}</a></td>
|
||||||
|
|
@ -46,6 +50,18 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#tableSearch").on("keyup", function() {
|
||||||
|
var value = $(this).val().toLowerCase();
|
||||||
|
$("#tableresults tr").filter(function() {
|
||||||
|
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -12,6 +12,7 @@
|
||||||
<div class="card d-block mb-3 mr-3 " style="width: 60%" >
|
<div class="card d-block mb-3 mr-3 " style="width: 60%" >
|
||||||
<div class="card-body" >
|
<div class="card-body" >
|
||||||
<h5 class="card-title">News</h5>
|
<h5 class="card-title">News</h5>
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -29,6 +30,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card d-block mb-3" style="width: 34.8%">
|
<div class="card d-block mb-3" style="width: 34.8%">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
@ -40,6 +42,7 @@
|
||||||
<div class="card d-block mb-3" style="width: 96%">
|
<div class="card d-block mb-3" style="width: 96%">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">Neueste Standards</h5>
|
<h5 class="card-title">Neueste Standards</h5>
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -57,6 +60,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="form-group mb-2">
|
||||||
|
<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">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -29,6 +33,7 @@
|
||||||
<th scope="col"> </th>
|
<th scope="col"> </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tbody id="tableresults">
|
||||||
{% for item in users_of_agency %}
|
{% for item in users_of_agency %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url 'orga-single' item.pk %}">{{item.first_name }} {{ item.last_name }}</a></td>
|
<td><a href="{% url 'orga-single' item.pk %}">{{item.first_name }} {{ item.last_name }}</a></td>
|
||||||
|
|
@ -60,7 +65,19 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#tableSearch").on("keyup", function() {
|
||||||
|
var value = $(this).val().toLowerCase();
|
||||||
|
$("#tableresults tr").filter(function() {
|
||||||
|
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
@ -101,7 +101,6 @@ class UserAreaTaskForm(forms.Form):
|
||||||
|
|
||||||
|
|
||||||
class SupportForm(forms.Form):
|
class SupportForm(forms.Form):
|
||||||
|
|
||||||
def __init__(self, user, *args, **kwargs):
|
def __init__(self, user, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
user_name = user.first_name + " " + user.last_name
|
user_name = user.first_name + " " + user.last_name
|
||||||
|
|
@ -109,4 +108,5 @@ class SupportForm(forms.Form):
|
||||||
self.fields['mail'] = forms.EmailField(required=True, label="E-Mail", initial=user.email)
|
self.fields['mail'] = forms.EmailField(required=True, label="E-Mail", initial=user.email)
|
||||||
self.fields['problemconc'] = forms.CharField(required=True, label="Problemzusammenfassung")
|
self.fields['problemconc'] = forms.CharField(required=True, label="Problemzusammenfassung")
|
||||||
self.fields['problem'] = forms.CharField(required=True, widget=forms.Textarea, label="Ausführliche Beschreibung")
|
self.fields['problem'] = forms.CharField(required=True, widget=forms.Textarea, label="Ausführliche Beschreibung")
|
||||||
self.fields['image'] = forms.ImageField(required=False)
|
self.fields['name'].widget.attrs['readonly'] = True
|
||||||
|
self.fields['mail'].widget.attrs['readonly'] = True
|
||||||
|
|
@ -89,7 +89,7 @@ class UsersManagement(LoginRequiredMixin, ListView):
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
# Get all Users of the Same Agency as logged user
|
# Get all Users of the Same Agency as logged user
|
||||||
users_of_agency = User.objects.filter(profile__agency__pk=self.request.user.profile.agency.pk)
|
users_of_agency = User.objects.filter(profile__agency__pk=self.request.user.profile.agency.pk).order_by('last_name')
|
||||||
context.update({'active_link' : 'usersmanagement', 'users_of_agency':users_of_agency})
|
context.update({'active_link' : 'usersmanagement', 'users_of_agency':users_of_agency})
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue