2021-12-02 17:45:41 +01:00
|
|
|
<?= $this->extend('_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
2021-12-24 18:55:56 +01:00
|
|
|
<?= lang('VideoClip.form.title') ?>
|
2021-12-02 17:45:41 +01:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
2021-12-24 18:55:56 +01:00
|
|
|
<?= lang('VideoClip.form.title') ?>
|
2021-12-02 17:45:41 +01:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-12-24 18:55:56 +01:00
|
|
|
<form action="<?= route_to('video-clips-create', $podcast->id, $episode->id) ?>" method="POST" class="flex flex-col gap-y-4">
|
2021-12-02 17:45:41 +01:00
|
|
|
|
2021-12-24 18:55:56 +01:00
|
|
|
<Forms.Section title="<?= lang('VideoClip.form.params_section_title') ?>" >
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="label"
|
|
|
|
label="<?= lang('VideoClip.form.clip_title') ?>"
|
|
|
|
required="true"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<fieldset class="flex gap-1">
|
|
|
|
<legend><?= lang('VideoClip.form.format.label') ?></legend>
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="landscape"
|
|
|
|
name="format"
|
|
|
|
hint="<?= lang('VideoClip.form.format.landscape_hint') ?>"><?= lang('VideoClip.form.format.landscape') ?></Forms.RadioButton>
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="portrait"
|
|
|
|
name="format"
|
|
|
|
hint="<?= lang('VideoClip.form.format.portrait_hint') ?>"><?= lang('VideoClip.form.format.portrait') ?></Forms.RadioButton>
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="squared"
|
|
|
|
name="format"
|
|
|
|
hint="<?= lang('VideoClip.form.format.squared_hint') ?>"><?= lang('VideoClip.form.format.squared') ?></Forms.RadioButton>
|
2021-12-02 17:45:41 +01:00
|
|
|
</fieldset>
|
|
|
|
|
2021-12-24 18:55:56 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend><?= lang('VideoClip.form.theme') ?></legend>
|
2021-12-07 17:58:12 +01:00
|
|
|
<div class="grid gap-4 grid-cols-colorButtons">
|
2021-12-08 18:05:34 +01:00
|
|
|
<?php foreach (config('MediaClipper')->themes as $themeName => $colors): ?>
|
2021-12-07 17:58:12 +01:00
|
|
|
<Forms.ColorRadioButton
|
2021-12-08 18:05:34 +01:00
|
|
|
class="mx-auto"
|
2021-12-07 17:58:12 +01:00
|
|
|
value="<?= $themeName ?>"
|
|
|
|
name="theme"
|
2021-12-08 18:05:34 +01:00
|
|
|
style="--color-accent-base: <?= $colors['preview']?>"><?= lang('Settings.theme.' . $themeName) ?></Forms.ColorRadioButton>
|
2021-12-07 17:58:12 +01:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2021-12-24 18:55:56 +01:00
|
|
|
</fieldset>
|
2021-12-07 17:58:12 +01:00
|
|
|
|
2021-12-24 18:55:56 +01:00
|
|
|
<div class="flex flex-col gap-x-2 gap-y-4 md:flex-row">
|
|
|
|
<Forms.Field
|
|
|
|
type="number"
|
|
|
|
name="start_time"
|
|
|
|
label="<?= lang('VideoClip.form.start_time') ?>"
|
|
|
|
required="true"
|
|
|
|
step="0.001"
|
|
|
|
/>
|
|
|
|
<Forms.Field
|
|
|
|
type="number"
|
|
|
|
name="duration"
|
|
|
|
label="<?= lang('VideoClip.form.duration') ?>"
|
|
|
|
required="true"
|
|
|
|
step="0.001"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" iconRight="arrow-right" class="self-end"><?= lang('VideoClip.form.submit') ?></Button>
|
2021-12-02 17:45:41 +01:00
|
|
|
|
2021-12-24 18:55:56 +01:00
|
|
|
</Forms.Section>
|
2021-12-02 17:45:41 +01:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|