24 lines
766 B
Text
24 lines
766 B
Text
package templates
|
|
|
|
import "nickiel.net/recount_server/types"
|
|
|
|
|
|
templ NewTransactionPane(entry_types *[]types.QuickTransactionTypes) {
|
|
<div id="new-transaction-pane" style="opacity: 0;" class="cr-all c-base d-flex-col">
|
|
<div class="my-3 d-flex">
|
|
<h2 class="ms-5">New Transaction</h2>
|
|
<button class="ms-auto me-4 my-auto exit-btn" id="close-transaction-pane">
|
|
<i class="my-auto" data-feather="x"></i>
|
|
</button>
|
|
</div>
|
|
<div class="d-flex" style="overflow-x: scroll;">
|
|
for _, value := range *entry_types {
|
|
<button class="borderless-btn mx-3">
|
|
{value.DisplayName}
|
|
</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
}
|
|
|