2021-09-06 17:46:34 +00:00
|
|
|
{% import "fmt" %}
|
2021-02-22 18:11:37 +00:00
|
|
|
{% import "net/http" %}
|
2021-09-06 17:46:34 +00:00
|
|
|
{% import "github.com/bouncepaw/mycorrhiza/l18n" %}
|
2021-02-22 18:11:37 +00:00
|
|
|
|
2022-03-20 21:24:40 +00:00
|
|
|
{% func RemoveMediaAsk(rq *http.Request, hyphaName string) %}
|
2021-09-06 17:46:34 +00:00
|
|
|
{% code
|
|
|
|
lc := l18n.FromRequest(rq)
|
|
|
|
%}
|
2022-06-16 10:40:37 +00:00
|
|
|
<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>
|
2021-02-22 18:11:37 +00:00
|
|
|
{% endfunc %}
|
|
|
|
|