Foto check und Link

This commit is contained in:
Holger Trampe 2019-12-16 22:47:44 +01:00
parent f3f3217659
commit 4fb6ef1d65
1 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,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> </div>
<div class="row mt-3 col-6" > <div class="row mt-3 col-9" >
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
@ -26,15 +26,17 @@
<th scope="col">Name</th> <th scope="col">Name</th>
<th scope="col">Link</th> <th scope="col">Link</th>
<th scope="col">Logo</th> <th scope="col">Logo</th>
{% if perms.users.ql_management %}
<th scope="col">&nbsp;</th> <th scope="col">&nbsp;</th>
{% endif %}
</tr> </tr>
</thead> </thead>
<tbody id="tableresults"> <tbody id="tableresults">
{% for ql in quicklinks %} {% for ql in quicklinks %}
<tr> <tr>
<td>{{ql.name }}</td> <td>{{ql.name }}</td>
<td><a href="{{ ql.link }}" target="_blank">{{ ql.link }}</a></td> <td><a href="https://{{ ql.link }}" target="_blank">{{ ql.link }}</a></td>
<td><img src="{{ ql.get_photo_url }}"></td> <td><img src="{{ ql.get_photo_url }}" width="10%"></td>
<td> <td>
{% if perms.users.ql_management %} {% if perms.users.ql_management %}
<div class="dropdown no-arrow"> <div class="dropdown no-arrow">
@ -57,7 +59,6 @@
</div> </div>
</div> </div>
<script> <script>
$(document).ready(function(){ $(document).ready(function(){
$("#tableSearch").on("keyup", function() { $("#tableSearch").on("keyup", function() {
var value = $(this).val().toLowerCase(); var value = $(this).val().toLowerCase();