You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
{% code type TicketPage struct {
|
|
BaseOf
|
|
CSRF []byte
|
|
} %}
|
|
|
|
{% collapsespace %}
|
|
{% func (p *TicketPage) Body() %}
|
|
<header>
|
|
<h1>{%= p.T("TicketAuth") %}</h1>
|
|
</header>
|
|
|
|
<main>
|
|
<form class=""
|
|
accept-charset="utf-8"
|
|
action="/ticket/send"
|
|
autocomplete="off"
|
|
enctype="application/x-www-form-urlencoded"
|
|
method="post"
|
|
target="_self">
|
|
|
|
{% if p.CSRF != nil %}
|
|
<input type="hidden"
|
|
name="_csrf"
|
|
value="{%z p.CSRF %}">
|
|
{% endif %}
|
|
|
|
<div>
|
|
<label for="subject">{%= p.T("Recipient") %}</label>
|
|
<input id="subject"
|
|
type="url"
|
|
name="subject"
|
|
inputmode="url"
|
|
placeholder="https://bob.example.org/"
|
|
required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="resource">{%= p.T("Resource") %}</label>
|
|
<input id="resource"
|
|
type="url"
|
|
name="resource"
|
|
inputmode="url"
|
|
placeholder="https://alice.example.com/private/"
|
|
required>
|
|
</div>
|
|
|
|
<button type="submit">{%= p.T("Send") %}</button>
|
|
</form>
|
|
</main>
|
|
{% endfunc %}
|
|
{% endcollapsespace %}
|