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

#585 - cleanup

parent ae0a3567
No related branches found
No related tags found
No related merge requests found
...@@ -192,78 +192,6 @@ ...@@ -192,78 +192,6 @@
</html> </html>
<#macro stepCollapsible step stepName isActive>
<li <#if isActive>class="active"</#if>>
<div class="collapsible-header">
<span class="bold">${step}</span>
<span class="step-name">${stepName}</span>
</div>
<div class="collapsible-body">
<div class="row no-margin-bottom">
<#nested>
</div>
</div>
</li>
</#macro>
<#macro stepTwo>
<@stepCollapsible step=locale.getString("chart.steps.second.step") stepName=locale.getString("chart.steps.second") isActive=false>
<div class="input-field col s6 m6 l4 offset-l2">
<#assign startDate = dateService.getLongDateString(chartSettings.getStartDate())/>
<input id="chart-datepicker" type="text" class="datepicker" name="startDate" value="${startDate}">
<label for="chart-datepicker">${locale.getString("chart.steps.second.label.start")}</label>
</div>
<div class="input-field col s6 m6 l4 ">
<#assign endDate = dateService.getLongDateString(chartSettings.getEndDate())/>
<input id="chart-datepicker-end" type="text" class="datepicker" name="endDate" value="${endDate}">
<label for="chart-datepicker-end">${locale.getString("chart.steps.second.label.end")}</label>
</div>
</div>
<div class="row no-margin-bottom">
<div class="col s12 m12 l8 offset-l2 no-margin-top">
<table class="no-border-table">
<tr>
<td class="quick-date" data-quick="0">${locale.getString("chart.quick.this.week")}</td>
<td class="quick-date" data-quick="1">${locale.getString("chart.quick.this.month")}</td>
<td class="quick-date" data-quick="2">${locale.getString("chart.quick.this.year")}</td>
<td class="quick-date" data-quick="3">${locale.getString("chart.quick.all")}</td>
</tr>
<tr>
<td class="quick-date" data-quick="4">${locale.getString("chart.quick.last.week")}</td>
<td class="quick-date" data-quick="5">${locale.getString("chart.quick.last.month")}</td>
<td class="quick-date" data-quick="6">${locale.getString("chart.quick.last.year")}</td>
<td class="quick-date" data-quick="7">${locale.getString("chart.quick.until.endOfLastYear")}</td>
</tr>
<tr>
<td class="quick-date" data-quick="8">${locale.getString("chart.quick.last.week.days")}</td>
<td class="quick-date" data-quick="9">${locale.getString("chart.quick.last.month.days")}</td>
<td class="quick-date" data-quick="10">${locale.getString("chart.quick.last.year.days")}</td>
<td class="quick-date" data-quick="11">${locale.getString("chart.quick.until.today")}</td>
</tr>
</table>
</div>
<div class="col s12 m12 l8 offset-l2 no-margin-top quick-date-container">
</div>
<script>
startDate = "${startDate}".split(".");
startDate = new Date(startDate[2], startDate[1] - 1, startDate[0]);
endDate = "${endDate}".split(".");
endDate = new Date(endDate[2], endDate[1] - 1, endDate[0]);
</script>
</@stepCollapsible>
</#macro>
<#macro stepThree>
<@stepCollapsible step=locale.getString("chart.steps.third.step") stepName=locale.getString("chart.steps.third") isActive=false>
<div class="col s12 m12 l8 offset-l2 no-margin-top center-align">
<@transactionsMacros.buttonFilter chartSettings.getFilterConfiguration().isActive()/>
</div>
</@stepCollapsible>
</#macro>
<#macro chartTypeButton item buttonClass initialItem> <#macro chartTypeButton item buttonClass initialItem>
<#assign isInitialItem=item.name()==initialItem.name()/> <#assign isInitialItem=item.name()==initialItem.name()/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment