mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-04-18 12:36:33 +00:00
32 lines
1002 B
Plaintext
32 lines
1002 B
Plaintext
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>
|
|
</div>
|
|
</form>;
|
|
} |