From 17a15beaeaf9fe0d58c8e8a96687b9f0b7417ada Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Sat, 13 Mar 2021 11:24:16 +0100 Subject: [PATCH] #419 - added basic text input field for icon --- src/main/resources/languages/base_de.properties | 1 + src/main/resources/languages/base_en.properties | 1 + src/main/resources/templates/accounts/newAccount.ftl | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/src/main/resources/languages/base_de.properties b/src/main/resources/languages/base_de.properties index 598bc7163..26c727eac 100644 --- a/src/main/resources/languages/base_de.properties +++ b/src/main/resources/languages/base_de.properties @@ -260,6 +260,7 @@ settings.database.delete.verification=Bestätigungscodes settings.search.itemsPerPage=Anzahl der Suchergebnisse pro Seite account.new.label.name=Name +account.new.label.icon=Icon account.default.name=Standardkonto account.all=Alle Konten account.budget.asof=Stand diff --git a/src/main/resources/languages/base_en.properties b/src/main/resources/languages/base_en.properties index 693f66be1..626faad57 100644 --- a/src/main/resources/languages/base_en.properties +++ b/src/main/resources/languages/base_en.properties @@ -260,6 +260,7 @@ settings.database.delete.verification=Verification Code settings.search.itemsPerPage=Number of search results per page account.new.label.name=Name +account.new.label.icon=Icon account.default.name=Default Account account.all=All Accounts account.budget.asof=as of diff --git a/src/main/resources/templates/accounts/newAccount.ftl b/src/main/resources/templates/accounts/newAccount.ftl index f4dab542b..5d3a24137 100644 --- a/src/main/resources/templates/accounts/newAccount.ftl +++ b/src/main/resources/templates/accounts/newAccount.ftl @@ -42,6 +42,16 @@ <label for="account-name">${locale.getString("account.new.label.name")}</label> </div> </div> + + <#-- icon --> + <div class="row"> + <div class="input-field col s12 m12 l8 offset-l2"> + <i class="fas fa-icons prefix"></i> + <input id="account-icon" type="text" name="iconPath" <@validation.validation "iconPath"/> value="<#if account.getIconPath()??>${account.getIconPath()}</#if>"> + <label for="account-icon">${locale.getString("account.new.label.icon")}</label> + </div> + </div> + <br> <#-- buttons --> -- GitLab