Skip to content
Snippets Groups Projects
Commit 1598109b authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#626 - added new hint transaction save hotkey

parent 70b6004e
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ public class HintService implements Resettable ...@@ -54,7 +54,7 @@ public class HintService implements Resettable
@Override @Override
public void createDefaults() public void createDefaults()
{ {
final List<String> hintKeys = List.of("hint.first.use.teaser", "hint.report.columns", "hint.template.arrow.keys"); final List<String> hintKeys = List.of("hint.first.use.teaser", "hint.report.columns", "hint.template.arrow.keys", "hint.transaction.save");
for(String localizationKey : hintKeys) for(String localizationKey : hintKeys)
{ {
......
...@@ -3,5 +3,6 @@ button.hints.reset=Alle Tipps zurücksetzen ...@@ -3,5 +3,6 @@ button.hints.reset=Alle Tipps zurücksetzen
notification.hints.reset=Alle Tipps zurückgesetzt notification.hints.reset=Alle Tipps zurückgesetzt
hint.first.use.teaser=Neu im BudgetMaster? Sieh dir die Einführung an! hint.first.use.teaser=Neu im BudgetMaster? Sieh dir die Einführung an!
hint.report.columns=Hinweis: Du kannst die Reihenfolge der Spalten per Drag&Drop anpassen hint.report.columns=Tipp: Du kannst die Reihenfolge der Spalten per Drag&Drop anpassen
hint.template.arrow.keys=Du kannst eine Vorlage mit den Pfeiltasten auswählen und mit Enter bestätigen hint.template.arrow.keys=Tipp: Du kannst eine Vorlage mit den Pfeiltasten auswählen und mit Enter bestätigen
hint.transaction.save=Tipp: Nutze Strg+Enter zum Speichern der Buchung
\ No newline at end of file
...@@ -3,5 +3,6 @@ button.hints.reset=Reset all hints ...@@ -3,5 +3,6 @@ button.hints.reset=Reset all hints
notification.hints.reset=All hints reset notification.hints.reset=All hints reset
hint.first.use.teaser=New to BudgetMaster? Check out the first use guide! hint.first.use.teaser=New to BudgetMaster? Check out the first use guide!
hint.report.columns=Note: You can change the order of the columns by drag&drop hint.report.columns=Hint: You can change the order of the columns by drag&drop
hint.template.arrow.keys=You can select a template by using the arrow keys and confirm with enter hint.template.arrow.keys=Hint: You can select a template by using the arrow keys and confirm with enter
\ No newline at end of file hint.transaction.save=Hint: Use Ctrl+Enter to save the transaction
\ No newline at end of file
...@@ -43,6 +43,9 @@ ...@@ -43,6 +43,9 @@
<#-- isPayment switch --> <#-- isPayment switch -->
<@newTransactionMacros.isExpenditureSwitch transaction/> <@newTransactionMacros.isExpenditureSwitch transaction/>
<#assign hint=helpers.getHintByLocalizationKey("hint.transaction.save")/>
<@header.hint hint=hint/>
<#-- name --> <#-- name -->
<@newTransactionMacros.transactionName transaction suggestionsJSON/> <@newTransactionMacros.transactionName transaction suggestionsJSON/>
......
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
<#-- isPayment switch --> <#-- isPayment switch -->
<@newTransactionMacros.isExpenditureSwitch transaction/> <@newTransactionMacros.isExpenditureSwitch transaction/>
<#assign hint=helpers.getHintByLocalizationKey("hint.transaction.save")/>
<@header.hint hint=hint/>
<#-- name --> <#-- name -->
<@newTransactionMacros.transactionName transaction suggestionsJSON/> <@newTransactionMacros.transactionName transaction suggestionsJSON/>
......
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
<input type="hidden" name="isExpenditure" value="true"> <input type="hidden" name="isExpenditure" value="true">
<input type="hidden" name="previousType" value="<#if previousType??>${previousType.name()}</#if>"> <input type="hidden" name="previousType" value="<#if previousType??>${previousType.name()}</#if>">
<#assign hint=helpers.getHintByLocalizationKey("hint.transaction.save")/>
<@header.hint hint=hint/>
<#-- name --> <#-- name -->
<@newTransactionMacros.transactionName transaction suggestionsJSON/> <@newTransactionMacros.transactionName transaction suggestionsJSON/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment