Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed title for new and fixed None name #249

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions nummus/templates/transaction_categories/edit.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}
Expand All @@ -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>
Expand Down
Loading