source: trunk/grails-app/views/advancedQuery/_criteria.gsp @ 1501

Last change on this file since 1501 was 1501, checked in by robert@…, 10 years ago
  • Number of seconds for the rest controller to keep data in cache is now a configuration option
  • After searching, it is possible to choose which action to perform on the search results.
File size: 705 bytes
Line 
1<%@ page import="dbnp.query.*" %>
2<ul id="criteria">
3        <g:each in="${criteria}" var="criterion" status="j">
4                <li>
5                        <span class="entityfield">${criterion.entityField()}</span>
6                        <span class="operator">${criterion.operator}</span>
7                        <span class="value">
8                                <g:if test="${criterion.value != null && criterion.value instanceof Search}">
9                                        <g:link action="show" id="${criterion.value.id}">${criterion.value}</g:link>
10                                </g:if>
11                                <g:else>
12                                        ${criterion.value}
13                                </g:else>
14                        </span>
15                        <g:if test="${j < criteria.size() -1}">
16                                <g:if test="${search.searchMode == SearchMode.and}">and</g:if>
17                                <g:if test="${search.searchMode == SearchMode.or}">or</g:if>
18                        </g:if>
19                </li>
20        </g:each>
21</ul>
Note: See TracBrowser for help on using the repository browser.