Skip to content
Snippets Groups Projects
video_clips_new.php 1.69 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?= $this->extend('_layout') ?>
    
    <?= $this->section('title') ?>
    <?= lang('Episode.video_clips.title') ?>
    <?= $this->endSection() ?>
    
    <?= $this->section('pageTitle') ?>
    <?= lang('Episode.video_clips.title') ?>
    <?= $this->endSection() ?>
    
    <?= $this->section('content') ?>
    
    <form action="<?= route_to('video-clips-generate', $podcast->id, $episode->id) ?>" method="POST" class="flex flex-col max-w-sm gap-y-4">
    
    <fieldset>
    <legend>Format</legend>
    <div class="mx-auto">
    
        <input type="radio" name="format" value="landscape" id="landscape" checked="checked"/>
    
        <label for="landscape">Landscape - 16:9</label>
    </div>
    <div class="mx-auto">
    
        <input type="radio" name="format" value="portrait" id="portrait"/>
        <label for="portrait">Portrait - 9:16</label>
    
    </div>
    <div class="mx-auto">
    
        <input type="radio" name="format" value="squared" id="square"/>
        <label for="square">Square - 1:1</label>
    
    <div class="grid gap-4 grid-cols-colorButtons">
    
        <?php foreach (config('MediaClipper')->themes as $themeName => $colors): ?>
    
            value="<?= $themeName ?>"
            name="theme"
    
            isChecked="<?= $themeName === 'pine' ? 'true' : 'false' ?>"
            style="--color-accent-base: <?= $colors['preview']?>"><?= lang('Settings.theme.' . $themeName) ?></Forms.ColorRadioButton>
    
    <Forms.Field
        type="number"
        name="start_time"
        label="START"
        required="true"
    
    />
    <Forms.Field
        type="number"
        name="end_time"
        label="END"
        required="true"
    
    />
    
    <Button variant="primary" type="submit"><?= lang('Episode.video_clips.submit') ?></Button>
    
    </form>
    
    <?= $this->endSection() ?>