mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 19:56:16 +00:00
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
{{define "rename hypha?"}}Rename {{beautifulName .}}?{{end}}
|
|
{{define "title"}}{{template "rename hypha?" .HyphaName}}{{end}}
|
|
{{define "body"}}
|
|
<main class="main-width">
|
|
<form class="modal" action="/rename/{{.HyphaName}}" method="post" enctype="multipart/form-data">
|
|
<fieldset class="modal__fieldset">
|
|
<legend class="modal__title">
|
|
{{block "rename [[hypha]]?" .HyphaName}}Rename <a href="/hypha/{{.}}">{{beautifulName .}}</a>?{{end}}
|
|
</legend>
|
|
<label for="new-name">{{block "new name" .}}New name:{{end}}</label>
|
|
<input type="text" value="{{.HyphaName}}" required autofocus id="new-name" name="new-name"/>
|
|
|
|
<input type="checkbox" id="recursive" name="recursive" value="true" checked/>
|
|
<label for="recursive">{{block "rename recursively" .}}Rename subhyphae too{{end}}</label>
|
|
<br>
|
|
<input type="checkbox" id="redirection" name="redirection" value="true" checked/>
|
|
<label for="redirection">{{block "leave redirections" .}}Leave redirections{{end}}</label>
|
|
|
|
<p>{{block "rename tip" .}}Rename carefully. <a href="/help/en/rename">Documentation.</a>{{end}}</p>
|
|
<button type="submit" value="Confirm" class="btn">
|
|
{{template "confirm"}}
|
|
</button>
|
|
<a href="/hypha/{{.HyphaName}}" class="btn btn_weak">
|
|
{{template "cancel"}}
|
|
</a>
|
|
</fieldset>
|
|
</form>
|
|
</main>
|
|
{{end}} |