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