added notify helpers
This commit is contained in:
@@ -40,7 +40,7 @@ templ ErrorModalWS(code int, stacktrace string, nt notify.Notification, id int)
|
||||
<button
|
||||
onclick={ templ.JSFuncCall("copyToClipboard", fmt.Sprintf("error-modal-ws-details-%v", id), "copyButton") }
|
||||
id="copyButton"
|
||||
class="mt-2 bg-mauve text-crust px-3 py-1 rounded text-xs hover:bg-mauve/75 transition"
|
||||
class="mt-2 bg-mauve text-crust px-3 py-1 rounded text-xs hover:bg-mauve/75 transition hover:cursor-pointer"
|
||||
title="Copy to clipboard"
|
||||
>
|
||||
Copy
|
||||
@@ -52,7 +52,7 @@ templ ErrorModalWS(code int, stacktrace string, nt notify.Notification, id int)
|
||||
<div class="mt-6">
|
||||
<button
|
||||
onclick="document.getElementById('error-modal-ws-container').innerHTML = ''"
|
||||
class="inline-block rounded-lg bg-mauve px-5 py-3 text-sm text-crust transition hover:bg-mauve/75"
|
||||
class="inline-block rounded-lg bg-mauve px-5 py-3 text-sm text-crust transition hover:bg-mauve/75 hover:cursor-pointer"
|
||||
>
|
||||
Close Modal
|
||||
</button>
|
||||
@@ -62,4 +62,3 @@ templ ErrorModalWS(code int, stacktrace string, nt notify.Notification, id int)
|
||||
<script src="/static/js/copytoclipboard.js"></script>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ templ Test() {
|
||||
Target
|
||||
</label>
|
||||
<input
|
||||
required
|
||||
type="text"
|
||||
name="target"
|
||||
id="target"
|
||||
@@ -73,7 +72,7 @@ templ Test() {
|
||||
<!-- Submit Button -->
|
||||
<button
|
||||
type="submit"
|
||||
class="mt-2 bg-mauve text-crust font-semibold px-6 py-3 rounded-lg hover:bg-mauve/75 transition"
|
||||
class="mt-2 bg-mauve text-crust font-semibold px-6 py-3 rounded-lg hover:bg-mauve/75 transition hover:cursor-pointer"
|
||||
>
|
||||
Send Notification
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user