Skip to content

Commit

Permalink
Add search.gsp to Unit 07 GrailsWorkshop
Browse files Browse the repository at this point in the history
  • Loading branch information
paolo authored and paolo committed Feb 24, 2012
1 parent 006fede commit 7edf8cb
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions GEvents07/grails-app/views/event/search.gsp
@@ -0,0 +1,39 @@
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="layout" content="main" />
<title>GEvents Search Results</title>

</head>
<body>
<div class="nav" >
<span class="menuButton" >
<a class="home" href="${resource(dir:'')}" >Home</a>
</span>
</div>
<div class="body" >
<h1>Search Results</h1>
<ul>
<g:if test="${events}" >
<g:each in="${events}" var="event" >
<li>
<g:link action="show" id="${event.id}" >${event}</g:link>
</li>
</g:each>
</g:if>
<g:else>
<h3>No Matching Results Found</h3>
</g:else>
</ul>
</div>
</div>
</body>
</html>

0 comments on commit 7edf8cb

Please sign in to comment.