{% import "fmt" %} {% import "net/http" %} {% import "github.com/bouncepaw/mycorrhiza/l18n" %} {% func DeleteAskHTML(rq *http.Request, hyphaName string, isOld bool) %} {% code lc := l18n.FromRequest(rq) %} {%= modalBegin( "delete-confirm", hyphaName, "", fmt.Sprintf(lc.Get("ui.ask_delete"), beautifulLink(hyphaName))) %} {%= modalReallyWant(hyphaName, lc.Get("ui.ask_delete_verb"), lc) %}

{%s lc.Get("ui.ask_delete_tip") %}

{%= modalEnd(hyphaName, true, lc) %} {% endfunc %} {% func UnattachAskHTML(rq *http.Request, hyphaName string, isOld bool) %} {% code lc := l18n.FromRequest(rq) %} {%= modalBegin( "unattach", hyphaName, "", fmt.Sprintf(lc.Get("ui.ask_unattach"), beautifulLink(hyphaName))) %} {%= modalReallyWant(hyphaName, lc.Get("ui.ask_unattach_verb"), lc) %} {%= modalEnd(hyphaName, true, lc) %} {% endfunc %} {% func RenameAskHTML(rq *http.Request, hyphaName string, isOld bool) %} {% code lc := l18n.FromRequest(rq) %} {%= modalBegin( "rename-confirm", hyphaName, ` method="post" enctype="multipart/form-data"`, fmt.Sprintf(lc.Get("ui.ask_rename"), beautifulLink(hyphaName))) %}

{%s lc.Get("ui.rename_tip") %}

{%= modalEnd(hyphaName, false, lc) %} {% endfunc %} {% func modalReallyWant(hyphaName, verb string, lc *l18n.Localizer) %} {% endfunc %} {% func modalBegin(path, hyphaName, formAttrs, legend string) %}
{% endfunc %}