mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-13 05:50:27 +00:00
b1cdb1e279
All the remaining QTPL files were spread across the codebase. The plan is to get rid of them step by step and migrate to the new l10n approach, all based on Go std templates.
29 lines
912 B
Plaintext
29 lines
912 B
Plaintext
{% import "fmt" %}
|
|
{% import "net/http" %}
|
|
{% import "github.com/bouncepaw/mycorrhiza/l18n" %}
|
|
|
|
{% func RemoveMediaAsk(rq *http.Request, hyphaName string) %}
|
|
{% code
|
|
lc := l18n.FromRequest(rq)
|
|
%}
|
|
<main class="main-width">
|
|
<form class="modal" action="/remove-media/{%s hyphaName %}" method="post">
|
|
<fieldset class="modal__fieldset">
|
|
<legend class="modal__title">
|
|
{%s= fmt.Sprintf(lc.Get("ui.ask_remove_media"), beautifulLink(hyphaName)) %}
|
|
</legend>
|
|
<p class="modal__confirmation-msg">
|
|
{%s= lc.Get("ui.ask_really", &l18n.Replacements{"verb": lc.Get("ui.ask_remove_media_verb"), "name": fmt.Sprintf("<em>%s</em>", hyphaName)}) %}
|
|
</p>
|
|
<button type="submit" value="Confirm" class="btn" autofocus>
|
|
{%s lc.Get("ui.confirm") %}
|
|
</button>
|
|
<a href="/hypha/{%s hyphaName %}" class="btn btn_weak">
|
|
{%s lc.Get("ui.cancel") %}
|
|
</a>
|
|
</fieldset>
|
|
</form>
|
|
</main>
|
|
{% endfunc %}
|
|
|