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

#677 - cleanup

parent 14ef9e8a
Branches
Tags
No related merge requests found
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
</#macro> </#macro>
<#macro buttonLink url icon localizationKey id="" color="background-blue" classes="" isDataUrl=false noUrl=false disabled=false target=""> <#macro buttonLink url icon localizationKey id="" color="background-blue" classes="" isDataUrl=false noUrl=false disabled=false target="">
<a <#if target??>target="${target}"</#if> <#if !isDataUrl && !noUrl>href="<@s.url url/>"</#if> <a <#if target?has_content>target="${target}"</#if> <#if !isDataUrl && !noUrl>href="<@s.url url/>"</#if>
id="${id}" id="${id}"
class="waves-effect waves-light btn ${color} ${classes}" class="waves-effect waves-light btn ${color} ${classes}"
<#if isDataUrl>data-url="${url}"</#if> <#if isDataUrl>data-url="${url}"</#if>
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
</#macro> </#macro>
<#macro buttonSubmit name icon localizationKey id="" color="background-blue" classes="" disabled=false formaction="" value="" onclick=""> <#macro buttonSubmit name icon localizationKey id="" color="background-blue" classes="" disabled=false formaction="" value="" onclick="">
<button id="${id}" class="btn waves-effect waves-light ${color} ${classes}" type="submit" name="${name}" <#if disabled>disabled</#if> <#if formaction?has_content>formaction="<@s.url formaction/>"</#if> <#if value?has_content>value="${value}"</#if> <#if onclick??>onclick="${onclick}"</#if>> <button id="${id}" class="btn waves-effect waves-light ${color} ${classes}" type="submit" name="${name}" <#if disabled>disabled</#if> <#if formaction?has_content>formaction="<@s.url formaction/>"</#if> <#if value?has_content>value="${value}"</#if> <#if onclick?has_content>onclick="${onclick}"</#if>>
<i class="material-icons left <#if !localizationKey?has_content>no-margin</#if>">${icon}</i><#if localizationKey?has_content>${locale.getString(localizationKey)}</#if> <i class="material-icons left <#if !localizationKey?has_content>no-margin</#if>">${icon}</i><#if localizationKey?has_content>${locale.getString(localizationKey)}</#if>
</button> </button>
</#macro> </#macro>
......
...@@ -70,15 +70,6 @@ ...@@ -70,15 +70,6 @@
</ul> </ul>
</div> </div>
</div> </div>
<form name="Settings" action="<@s.url '/settings/save'/>" method="post">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" id="token"/>
<input type="hidden" name="ID" value="${settings.getID()?c}">
<input type="hidden" name="lastBackupReminderDate" value="${dateService.getLongDateString(settings.getLastBackupReminderDate())}">
<input type="hidden" name="installedVersionCode" value="${settings.getInstalledVersionCode()}">
<input type="hidden" name="whatsNewShownForCurrentVersion" value="${settings.getWhatsNewShownForCurrentVersion()?c}">
<input type="hidden" name="migrationDeclined" value="${settings.getMigrationDeclined()?c}">
</form>
</div> </div>
</@header.content> </@header.content>
</div> </div>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<@header.content> <@header.content>
<div class="container"> <div class="container">
<#import "../helpers/validation.ftl" as validation> <#import "../helpers/validation.ftl" as validation>
<form id="mainForm" name="NewTransaction" action="<@s.url '/transactions/newTransaction'/>" method="post" onsubmit="return validateForm()"> <form id="mainForm" name="NewTransaction" action="<@s.url '/transactions/newTransaction'/>" method="post">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/> <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<!-- only set ID for transactions not templates, otherwise the input is filled with the template ID and saving the transaction <!-- only set ID for transactions not templates, otherwise the input is filled with the template ID and saving the transaction
may then override an existing transactions if the ID is also already used in transactions table --> may then override an existing transactions if the ID is also already used in transactions table -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment