Canvas support V1
This commit is contained in:
@@ -16,6 +16,19 @@ confirmation), or fail with a plain-text error. */}}
|
||||
</form>
|
||||
</div>{{end}}
|
||||
|
||||
{{define "canvas"}}<div class="modal-backdrop">
|
||||
<form class="modal panel panel-floating" role="dialog" aria-modal="true" aria-labelledby="modal-title" hx-post="?canvas" hx-target="#modal-host">
|
||||
<div class="panel-header"><span id="modal-title">New canvas — name?</span></div>
|
||||
<div class="panel-body">
|
||||
<input class="input" type="text" name="name" placeholder="Canvas name" required autofocus />
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<button class="btn" type="button" data-modal-close>CANCEL</button>
|
||||
<button class="btn" type="submit">CREATE</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>{{end}}
|
||||
|
||||
{{define "move"}}<div class="modal-backdrop">
|
||||
<form class="modal panel panel-floating" role="dialog" aria-modal="true" aria-labelledby="modal-title" hx-post="?move" hx-target="#modal-host">
|
||||
<div class="panel-header"><span id="modal-title">Move — new name?</span></div>
|
||||
|
||||
Reference in New Issue
Block a user