Skip to content

Commit 1a1b49f

Browse files
author
Christian Blanquera
committed
Filterable no longer working fix CradlePHP/Cradle#195
1 parent c387528 commit 1a1b49f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/Model/template/search.html

+18-2
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,25 @@ <h3 class="box-title">{{_ 'Filters'}}</h3>
132132
{{#format 'list' ../schema.name this}}
133133
{{#each formats}}
134134
{{#in 'number,price,formula' config.format}}
135-
<td class="text-right">{{{value}}}</td>
135+
<td class="text-right">
136+
{{#in ../../../schema.filterable name}}
137+
<a href="?{{query 'filter' name raw}}">
138+
{{{value}}}
139+
</a>
140+
{{else}}
141+
{{{value}}}
142+
{{/in}}
143+
</td>
136144
{{else}}
137-
<td>{{{value}}}</td>
145+
<td>
146+
{{#in ../../../schema.filterable name}}
147+
<a href="?{{query 'filter' name raw}}">
148+
{{{value}}}
149+
</a>
150+
{{else}}
151+
{{{value}}}
152+
{{/in}}
153+
</td>
138154
{{/in}}
139155
{{/each}}
140156
{{/format}}

0 commit comments

Comments
 (0)