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

#622 - use new macro in category circles

parent 72c6253b
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<i class="fas fa-edit"></i> <i class="fas fa-edit"></i>
</#if> </#if>
</td> </td>
<td><@header.entityIcon entity=account classes="account-icon"/></td> <td><@header.entityIcon entity=account classes="account-icon text-default"/></td>
<td>${account.getName()}</td> <td>${account.getName()}</td>
<td> <td>
<a href="<@s.url '/accounts/${account.getID()?c}/edit'/>" class="btn-flat no-padding text-default"><i class="material-icons left">edit</i></a> <a href="<@s.url '/accounts/${account.getID()?c}/edit'/>" class="btn-flat no-padding text-default"><i class="material-icons left">edit</i></a>
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
<div class="category-circle ${classes} <#if settings.getShowCategoriesAsCircles()?? && settings.getShowCategoriesAsCircles() == false>category-square</#if>" style="background-color: ${category.color}" <#if datasetValue>data-value="${category.getID()}"</#if>> <div class="category-circle ${classes} <#if settings.getShowCategoriesAsCircles()?? && settings.getShowCategoriesAsCircles() == false>category-square</#if>" style="background-color: ${category.color}" <#if datasetValue>data-value="${category.getID()}"</#if>>
<span style="color: ${category.getAppropriateTextColor()}"> <span style="color: ${category.getAppropriateTextColor()}">
<#if category.getIcon()?has_content> <#if category.getIconReference()??>
<i class="${category.getIcon()}"></i> <@header.entityIcon entity=category/>
<#else> <#else>
${categoryName?capitalize[0]} ${categoryName?capitalize[0]}
</#if> </#if>
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
<#macro accountIcon account accountName classes="" datasetValue=""> <#macro accountIcon account accountName classes="" datasetValue="">
<div class="category-circle ${classes} category-square <#if account.getIconReference()?? == false>account-square-border</#if>" <#if datasetValue?has_content>data-value="${account.getID()}"</#if>> <div class="category-circle ${classes} category-square <#if account.getIconReference()?? == false>account-square-border</#if>" <#if datasetValue?has_content>data-value="${account.getID()}"</#if>>
<#if account.getIconReference()??> <#if account.getIconReference()??>
<@header.entityIcon entity=account classes="account-select-icon"/> <@header.entityIcon entity=account classes="account-select-icon text-blue"/>
<#else> <#else>
<span class="text-blue"> <span class="text-blue">
${accountName?capitalize[0]} ${accountName?capitalize[0]}
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<#if wrapInCircle> <#if wrapInCircle>
<div class="category-circle"> <div class="category-circle">
</#if> </#if>
<i class="${entity.getIconReference().getBuiltinIdentifier()} text-default ${classes}"></i> <i class="${entity.getIconReference().getBuiltinIdentifier()} ${classes}"></i>
<#if wrapInCircle> <#if wrapInCircle>
</div> </div>
</#if> </#if>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<#macro templateHeader template> <#macro templateHeader template>
<#if template.getIconReference()??> <#if template.getIconReference()??>
<@header.entityIcon entity=template wrapInCircle=false classes="template-icon"/> <@header.entityIcon entity=template wrapInCircle=false classes="template-icon text-default"/>
<#elseif template.getTransferAccount()??> <#elseif template.getTransferAccount()??>
<i class="material-icons">swap_horiz</i> <i class="material-icons">swap_horiz</i>
<#else> <#else>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment