page_form: some fields horizontal
This commit is contained in:
parent
d293eb4a00
commit
21f856e731
File diff suppressed because one or more lines are too long
|
@ -2,6 +2,11 @@
|
|||
{% load static i18n humanize honeypot aircox %}
|
||||
|
||||
{% block page_form %}
|
||||
<a-modal ref="sound-edit-modal" title="{% translate "Edit sound" %}">
|
||||
<template #default>
|
||||
</template>
|
||||
</a-modal>
|
||||
|
||||
<a-episode :page="{title: "{{ object.title }}", podcasts: {{ object.sounds|json }}}">
|
||||
<template v-slot="{podcasts,page}">
|
||||
{{ block.super }}
|
||||
|
|
|
@ -60,10 +60,10 @@
|
|||
{% block page_form %}
|
||||
{% csrf_token %}
|
||||
{% for field in form %}
|
||||
<div class="field">
|
||||
{% if field.name == "cover" %}
|
||||
<input type="hidden" name="{{ field.name }}" value="{{ field.value }}" ref="cover-input"/>
|
||||
{% else %}
|
||||
{% if field.name == "cover" %}
|
||||
<input type="hidden" name="{{ field.name }}" value="{{ field.value }}" ref="cover-input"/>
|
||||
{% else %}
|
||||
<div class="field {% if field.name != "content" %}is-horizontal{% endif %}">
|
||||
<label class="label">{{ field.label }}</label>
|
||||
<div class="control clear-unset">
|
||||
{% if field.name == "pub_date" %}
|
||||
|
@ -75,8 +75,8 @@
|
|||
{{ field }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if field.errors %}
|
||||
<p class="help is-danger">{{ field.errors }}</p>
|
||||
{% endif %}
|
||||
|
|
|
@ -37,9 +37,10 @@
|
|||
<span class="fas fa-pause" v-if="playing"></span>
|
||||
<span class="fas fa-play" v-else></span>
|
||||
</button>
|
||||
<!--
|
||||
<div class="media-cover" v-if="current && current.data.cover">
|
||||
<img :src="current.data.cover" class="cover" />
|
||||
</div>
|
||||
</div> -->
|
||||
<div :class="['a-player-bar-content', loaded && duration ? 'has-progress' : '']">
|
||||
<slot name="content" :loaded="loaded" :live="live" :current="current"></slot>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user