Redmage/views/subreddits/put/fetch.templ

33 lines
621 B
Plaintext
Raw Normal View History

2024-05-27 21:10:37 +07:00
package put
templ FetchCheckbox() {
<div
x-data="{checked: false}"
class="form-control"
>
<label
class="label cursor-pointer input input-bordered"
:class="{'input-secondary': checked}"
>
<span
class="label-text"
:class="{'text-secondary': checked}"
>Fetch</span>
<input
type="checkbox"
class="checkbox"
:class="{'checkbox-secondary': checked}"
name="fetch"
@change="checked = !checked"
value="true"
/>
</label>
<span
class="label-text pl-1 mt-2"
:class="{'text-secondary': checked}"
>
Fetch images immediately after creation
</span>
</div>
}