|
2 | 2 | <.error :if={@changeset.action}>
|
3 | 3 | Oops, something went wrong! Please check the errors below.
|
4 | 4 | </.error>
|
5 |
| - <.input field={f[:name]} type="text" label="Name" /> |
6 |
| - <.input field={f[:output_path_template]} type="text" label="Output path template" /> |
| 5 | + <h3 class="my-4 text-2xl text-black dark:text-white"> |
| 6 | + General Options |
| 7 | + </h3> |
| 8 | + <.input field={f[:name]} type="text" label="Name" placeholder="New Profile" help="(required)" /> |
| 9 | + <.input |
| 10 | + field={f[:output_path_template]} |
| 11 | + type="text" |
| 12 | + label="Output path template" |
| 13 | + help="TODO: provide docs (required)" |
| 14 | + /> |
| 15 | + |
| 16 | + <h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> |
| 17 | + Subtitle Options |
| 18 | + </h3> |
| 19 | + <.input field={f[:download_subs]} type="toggle" label="Download Subtitles" /> |
| 20 | + <.input |
| 21 | + field={f[:download_auto_subs]} |
| 22 | + type="toggle" |
| 23 | + label="Download Autogenerated Subtitles" |
| 24 | + help="Prefers normal subs but will download autogenerated if needed" |
| 25 | + /> |
| 26 | + <.input |
| 27 | + field={f[:embed_subs]} |
| 28 | + type="toggle" |
| 29 | + label="Embed Subtitles" |
| 30 | + help="Embeds subtitles in the video file itself, if supported" |
| 31 | + /> |
| 32 | + <.input |
| 33 | + field={f[:sub_langs]} |
| 34 | + type="text" |
| 35 | + label="Subtitle Languages" |
| 36 | + help="Use commas for multiple languages (eg: en,de)" |
| 37 | + /> |
7 | 38 |
|
8 |
| - <h3>Subtitle Options</h3> |
9 |
| - <.input field={f[:download_subs]} type="checkbox" label="Download Subs" /> |
10 |
| - <.input field={f[:download_auto_subs]} type="checkbox" label="Download Autogenerated Subs" /> |
11 |
| - <.input field={f[:embed_subs]} type="checkbox" label="Embed Subs" /> |
12 |
| - <.input field={f[:sub_langs]} type="text" label="Sub Langs" /> |
| 39 | + <h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> |
| 40 | + Thumbnail Options |
| 41 | + </h3> |
| 42 | + <.input field={f[:download_thumbnail]} type="toggle" label="Download Thumbnail" /> |
| 43 | + <.input field={f[:embed_thumbnail]} type="toggle" label="Embed Thumbnail" /> |
13 | 44 |
|
14 |
| - <h3>Thumbnail Options</h3> |
15 |
| - <.input field={f[:download_thumbnail]} type="checkbox" label="Download Thumbnail" /> |
16 |
| - <.input field={f[:embed_thumbnail]} type="checkbox" label="Embed Thumbnail" /> |
| 45 | + <h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> |
| 46 | + Metadata Options |
| 47 | + </h3> |
| 48 | + <.input field={f[:download_metadata]} type="toggle" label="Download Metadata" /> |
| 49 | + <.input field={f[:embed_metadata]} type="toggle" label="Embed Metadata" /> |
17 | 50 |
|
18 |
| - <h3>Metadata Options</h3> |
19 |
| - <.input field={f[:download_metadata]} type="checkbox" label="Download Metadata" /> |
20 |
| - <.input field={f[:embed_metadata]} type="checkbox" label="Embed Metadata" /> |
| 51 | + <h3 class="mb-4 mt-8 text-2xl text-black dark:text-white"> |
| 52 | + Release Format Options |
| 53 | + </h3> |
21 | 54 |
|
22 |
| - <h3>Release Format Options</h3> |
23 | 55 | <.input
|
24 | 56 | field={f[:shorts_behaviour]}
|
25 | 57 | options={friendly_format_type_options()}
|
26 | 58 | type="select"
|
27 | 59 | label="Include Shorts?"
|
| 60 | + help="Experimental" |
28 | 61 | />
|
29 | 62 | <.input
|
30 | 63 | field={f[:livestream_behaviour]}
|
|
34 | 67 | />
|
35 | 68 |
|
36 | 69 | <:actions>
|
37 |
| - <.button>Save Media profile</.button> |
| 70 | + <.button class="mt-15 mb-5 sm:mb-7.5">Save Media profile</.button> |
38 | 71 | </:actions>
|
39 | 72 | </.simple_form>
|
0 commit comments