Skip to content

Commit

Permalink
Changed title for new and fixed None name (#249)
Browse files Browse the repository at this point in the history
WattsUp authored Jan 18, 2025
1 parent 9dd63e5 commit 92ff53a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nummus/templates/transaction_categories/edit.jinja
Original file line number Diff line number Diff line change
@@ -3,7 +3,14 @@
<div class="w-full max-md:min-h-full md:w-[500px] md:h-[400px] md:max-h-[90vh] bg-white opacity-100 m-auto flex flex-col py-2 px-6"
hx-swap="innerHTML">
<div class="flex items-start mb-2">
<h1 class="font-serif text-2xl text-green-600 grow">Edit transaction category</h1>
<h1 class="font-serif text-2xl text-green-600 grow">
{% if category["uri"] %}
Edit
{% else %}
New
{% endif %}
transaction category
</h1>
<button class="shrink-0" onclick="overlayEditor.close()">
{% with class="w-[32px] h-[32px]" %}
{% include "svg/x.svg" %}
@@ -17,7 +24,7 @@
<div class="w-44">Category Name</div>
<div class="grow">
<input name="name"
value="{{ category["name"] | e }}"
value="{{ (category["name"] or "") | e }}"
class="w-full"
autocomplete="off">
</div>

0 comments on commit 92ff53a

Please sign in to comment.