#132 | #121: backoffice / dev-1.0-121 #131

Merged
thomas merged 151 commits from dev-1.0-121 into develop-1.0 2024-04-28 20:02:14 +00:00
4 changed files with 16 additions and 4 deletions
Showing only changes of commit 2a75608701 - Show all commits

View File

@ -6850,6 +6850,16 @@ a.tag:hover {
margin-top: auto !important; margin-top: auto !important;
} }
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
}
.grid-3 {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.flex-row { .flex-row {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@ -12,11 +12,10 @@
:init-data="{% track_inline_data formset=formset %}" :init-data="{% track_inline_data formset=formset %}"
settings-url="{% url "api:user-settings" %}" settings-url="{% url "api:user-settings" %}"
data-prefix="{{ formset.prefix }}-"> data-prefix="{{ formset.prefix }}-">
{% comment %}
<template #title> <template #title>
<h5 class="title is-4">{% trans "Playlist" %}</h5> <h5 class="title is-4">{% trans "Playlist" %}</h5>
</template> </template>
<template v-slot:top="{items}"> <template #top="{items}">
<input type="hidden" name="{{ formset.prefix }}-TOTAL_FORMS" <input type="hidden" name="{{ formset.prefix }}-TOTAL_FORMS"
:value="items.length || 0"/> :value="items.length || 0"/>
<input type="hidden" name="{{ formset.prefix }}-INITIAL_FORMS" <input type="hidden" name="{{ formset.prefix }}-INITIAL_FORMS"
@ -80,7 +79,6 @@
</template> </template>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endcomment %}
</a-playlist-editor> </a-playlist-editor>
</div> </div>
{% endwith %} {% endwith %}

View File

@ -12,7 +12,7 @@
<span>{% translate "Today" %}</span> <span>{% translate "Today" %}</span>
</h1> </h1>
{% if diffusions %} {% if diffusions %}
<div class="card-grid"> <div class="grid-3">
{% for obj in diffusions %} {% for obj in diffusions %}
{% page_widget "card" obj.episode diffusion=obj timetable=True admin=True tag_class="" %} {% page_widget "card" obj.episode diffusion=obj timetable=True admin=True tag_class="" %}
{% endfor %} {% endfor %}

View File

@ -14,6 +14,10 @@
.push-right, .flex-push-right { margin-left: auto !important; } .push-right, .flex-push-right { margin-left: auto !important; }
.push-bottom { margin-top: auto !important; } .push-bottom { margin-top: auto !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr }
.flex-row { display: flex; flex-direction: row } .flex-row { display: flex; flex-direction: row }
.flex-column { display: flex; flex-direction: column } .flex-column { display: flex; flex-direction: column }
.flex-grow-0 { flex-grow: 0 !important; } .flex-grow-0 { flex-grow: 0 !important; }