2020-11-16 15:26:03 +00:00
|
|
|
{% import "net/http" %}
|
|
|
|
|
2020-09-29 15:04:22 +00:00
|
|
|
This dialog is to be shown to a user when they try to delete a hypha.
|
2020-11-16 15:26:03 +00:00
|
|
|
{% func DeleteAskHTML(rq *http.Request, hyphaName string, isOld bool) %}
|
2020-09-29 15:04:22 +00:00
|
|
|
<main>
|
2020-11-16 15:26:03 +00:00
|
|
|
{%= navHTML(rq, hyphaName, "delete-ask") %}
|
2020-09-29 15:04:22 +00:00
|
|
|
{% if isOld %}
|
|
|
|
<section>
|
|
|
|
<h1>Delete {%s hyphaName %}?</h1>
|
|
|
|
<p>Do you really want to delete hypha <em>{%s hyphaName %}</em>?</p>
|
|
|
|
<p>In this version of MycorrhizaWiki you cannot undelete a deleted hypha but the history can still be accessed.</p>
|
|
|
|
<p><a href="/delete-confirm/{%s hyphaName %}"><strong>Confirm</strong></a></p>
|
|
|
|
<p><a href="/page/{%s hyphaName %}">Cancel</a></p>
|
|
|
|
</section>
|
|
|
|
{% else %}
|
|
|
|
{%= cannotDeleteDueToNonExistence(hyphaName) %}
|
|
|
|
{% endif %}
|
|
|
|
</main>
|
|
|
|
{% endfunc %}
|
|
|
|
|
|
|
|
{% func cannotDeleteDueToNonExistence(hyphaName string) %}
|
|
|
|
<section>
|
|
|
|
<h1>Cannot delete {%s hyphaName %}</h1>
|
|
|
|
<p>This hypha does not exist.</p>
|
|
|
|
<p><a href="/page/{%s hyphaName %}">Go back</a></p>
|
|
|
|
</section>
|
|
|
|
{% endfunc %}
|