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
89783fe4
Commit
89783fe4
authored
3 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed #630 - filter modal should use fixed footer for buttons
parent
1718747b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/templates/filter/filterMacros.ftl
+16
-10
16 additions, 10 deletions
src/main/resources/templates/filter/filterMacros.ftl
with
16 additions
and
10 deletions
src/main/resources/templates/filter/filterMacros.ftl
+
16
−
10
View file @
89783fe4
<#
import
"/spring.ftl" as s>
<#
import
"/spring.ftl" as s>
<#
macro
buttons>
<#
macro
buttons>
<div class="row hide-on-small-only valign-wrapper">
<div class="row hide-on-small-only no-margin-bottom">
<div class="col s6 right-align">
<div class="col s12 right-align">
<@buttonCloseModal/>
<@buttonReset/>
<@buttonReset/>
</div>
<div class="col s6 left-align">
<@buttonApply/>
<@buttonApply/>
</div>
</div>
</div>
</div>
<div class="hide-on-med-and-up valign-wrapper">
<div class="hide-on-med-and-up valign-wrapper no-margin-bottom">
<div class="row center-align">
<div class="col s12">
<@buttonCloseModal/>
</div>
</div>
<div class="row center-align">
<div class="row center-align">
<div class="col s12">
<div class="col s12">
<@buttonReset/>
<@buttonReset/>
...
@@ -30,7 +33,7 @@
...
@@ -30,7 +33,7 @@
</#
macro
>
</#
macro
>
<#
macro
buttonApply>
<#
macro
buttonApply>
<button class="btn waves-effect waves-light background-
blue
" type="submit" name="buttonSave">
<button class="btn waves-effect waves-light background-
green
" type="submit" name="buttonSave">
<i class="fas fa-filter left"></i>$
{
locale
.getString
(
"filter.apply"
)}
<i class="fas fa-filter left"></i>$
{
locale
.getString
(
"filter.apply"
)}
</button>
</button>
</#
macro
>
</#
macro
>
...
@@ -43,6 +46,10 @@
...
@@ -43,6 +46,10 @@
<a class="filter-button-close waves-effect waves-light background-blue btn white-text"><i class="fas fa-filter left"></i>$
{
locale
.getString
(
"filter.apply"
)}
</a>
<a class="filter-button-close waves-effect waves-light background-blue btn white-text"><i class="fas fa-filter left"></i>$
{
locale
.getString
(
"filter.apply"
)}
</a>
</#
macro
>
</#
macro
>
<#
macro
buttonCloseModal>
<@header.buttonLink url='' icon='clear' localizationKey='cancel' color='red' classes='modal-action modal-close text-white'/>
</#
macro
>
<#
macro
buttonsAllOrNone>
<#
macro
buttonsAllOrNone>
<div class="row no-margin">
<div class="row no-margin">
<div class="col s6 right-align">
<div class="col s6 right-align">
...
@@ -55,17 +62,16 @@
...
@@ -55,17 +62,16 @@
</#
macro
>
</#
macro
>
<#
macro
filterModal filterConfiguration>
<#
macro
filterModal filterConfiguration>
<div id="modalFilter" class="modal background-color">
<div id="modalFilter" class="modal
modal-fixed-footer
background-color">
<div class="modal-content">
<div class="modal-content">
<h4>$
{
locale
.getString
(
"title.filter"
)}
</h4>
<h4>$
{
locale
.getString
(
"title.filter"
)}
</h4>
<form name="NewFilterConfiguration" action="<@s.url '/filter/apply'/>" method="post">
<form name="NewFilterConfiguration" action="<@s.url '/filter/apply'/>" method="post">
<input type="hidden" name="$
{
_
csrf
.parameterName
}
" value="$
{
_
csrf
.token
}
"/>
<input type="hidden" name="$
{
_
csrf
.parameterName
}
" value="$
{
_
csrf
.token
}
"/>
<@filterModalContent filterConfiguration/>
<@filterModalContent filterConfiguration/>
<@buttons/>
</form>
</form>
</div>
</div>
<div class="modal-footer background-color">
<div class="modal-footer background-color">
<@
header.buttonLink url='' icon='clear' localizationKey='cancel' color='red' classes='modal-action modal-close text-white'
/>
<@
buttons
/>
</div>
</div>
</div>
</div>
</#
macro
>
</#
macro
>
...
...
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