better design
This commit is contained in:
parent
e3ea8d7b17
commit
ca9168cff4
@ -92,7 +92,7 @@
|
||||
{% for user in habit_list.get_users() %}
|
||||
{% if current_user.id != user.id %}
|
||||
<img class="avatar" src="/{{user.profile_image}}" data-toggle="tooltip" data-placement="top"
|
||||
title="{{user.name}}"/>
|
||||
title="{{user.name}}" alt=""/>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
@ -101,12 +101,11 @@
|
||||
|
||||
<!-- Knopf für das Hinzufügen einer Person zur gemeinsamen Liste -->
|
||||
<div class="col">
|
||||
<a href="/users?habit_list={{habit_list.id}}" style="width: 40px; height: 40px; min-height: 3em;"
|
||||
<a href="/users?habit_list={{habit_list.id}}" style="min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;"
|
||||
data-toggle="tooltip" data-placement="top" title="Benutzer einladen">
|
||||
|
||||
<i class="bi bi-plus-circle"></i>
|
||||
|
||||
<i class="bi bi-person-fill-add" style="font-size: 24px;"></i>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="col"></div>
|
||||
@ -131,9 +130,9 @@
|
||||
|
||||
<!-- Checkbox -->
|
||||
<div class="col-auto">
|
||||
<label for="{{ habit.id }}"></label>
|
||||
<input {% if habit.checked %} checked {% endif %} type="checkbox" class="task-checkbox"
|
||||
id="{{ habit.id }}"
|
||||
onclick="sendPostRequest('{{ habit.id }}')">
|
||||
id="{{ habit.id }}" onclick="sendPostRequest('{{ habit.id }}')">
|
||||
</div>
|
||||
|
||||
<!-- Name -->
|
||||
@ -189,13 +188,13 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var selectedHabitId = null;
|
||||
let selectedHabitId = null;
|
||||
|
||||
function setSelectedHabitId(habitId) {
|
||||
selectedHabitId = habitId;
|
||||
}
|
||||
|
||||
var selectedListId = null;
|
||||
let selectedListId = null;
|
||||
|
||||
function setSelectedListId(listId) {
|
||||
selectedlistId = listId;
|
||||
|
||||
@ -16,7 +16,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>
|
||||
<input hidden="hidden" name="habit_list_id" value="{{ habit_list.id }}">
|
||||
</label>
|
||||
|
||||
<!-- submit button -->
|
||||
<button type="submit" class="btn btn-primary">Einladen</button>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user