Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
f0e8d5eb
Commit
f0e8d5eb
authored
5 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed #517 - recurring transactions: preselect month as repeating type
parent
a2419dc4
No related branches found
No related tags found
No related merge requests found
Pipeline
#3511
failed
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/templates/transactions/newTransactionMacros.ftl
+9
-7
9 additions, 7 deletions
...resources/templates/transactions/newTransactionMacros.ftl
with
9 additions
and
7 deletions
src/main/resources/templates/transactions/newTransactionMacros.ftl
+
9
−
7
View file @
f0e8d5eb
...
...
@@ -223,19 +223,21 @@
<input type="hidden" id="hidden-transaction-repeating-modifier" name="repeatingModifierNumber" value="<#if transaction.getRepeatingOption()??>$
{
transaction
.getRepeatingOption
()
.getModifier
()
.getQuantity
()}
</#if>">
<div class="input-field col s6 m6 l4">
<#if transaction.getRepeatingOption()??>
<#assign selectedOption=locale.getString(transaction.getRepeatingOption().getModifier().getLocalizationKey())>
<#else>
<#assign selectedOption=locale.getString("repeating.modifier.months")>
</#if>
<select id="transaction-repeating-modifier-type" name="repeatingModifierType">
<#list helpers.getRepeatingModifierTypes() as modifierType>
<#assign modifierName=locale.getString(modifierType.getLocalizationKey())>
<#if transaction.getRepeatingOption()??>
$
{
transaction
.getRepeatingOption
()
.getModifier
()
.getLocalizationKey
()}
<#if locale.getString(transaction.getRepeatingOption().getModifier().getLocalizationKey()) == modifierName>
<#if selectedOption == modifierName>
<option selected value="$
{
modifierName
}
">$
{
modifierName
}
</option>
<#else>
<option value="$
{
modifierName
}
">$
{
modifierName
}
</option>
</#if>
<#else>
<option value="$
{
modifierName
}
">$
{
modifierName
}
</option>
</#if>
</#list>
</select>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment