mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-04-18 15:46:32 +00:00
First commit
This commit is contained in:
33
Tesses.YouTubeDownloader.Server/src/components/add.tcross
Normal file
33
Tesses.YouTubeDownloader.Server/src/components/add.tcross
Normal file
@@ -0,0 +1,33 @@
|
||||
func Components.Add()
|
||||
{
|
||||
return <form hx-post="./add" hx-swap="outerHTML">
|
||||
<div class="field border fill">
|
||||
<input type="text" name="url">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="max">
|
||||
<div class="field label suffix border fill">
|
||||
<select name="res">
|
||||
<each(var item : Resolution.Resolutions)>
|
||||
<if(item.default)>
|
||||
<true>
|
||||
<option value={item.value} selected>{item.name}</option>
|
||||
</true>
|
||||
<false>
|
||||
<option value={item.value}>{item.name}</option>
|
||||
</false>
|
||||
</if>
|
||||
</each>
|
||||
</select>
|
||||
<label>Resolution</label>
|
||||
<i>arrow_drop_down</i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button name="action" value="add"><i>add</i></button>
|
||||
<button name="action" value="info"><i>info</i></button>
|
||||
<button name="action" value="download"><i>download</i></button>
|
||||
<button name="action" value="play"><i>play_arrow</i></button>
|
||||
</div>
|
||||
</form>;
|
||||
}
|
||||
Reference in New Issue
Block a user