Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created backup of Entry views since Grails 1.1 will accidently overwr…
…ite them on generate-views
- Loading branch information
1 parent
e3cf118
commit c58d47a
Showing
54 changed files
with
341 additions
and
866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="entry"> | ||
<span class="entry-date"><g:longDate>${entryInstance.lastUpdated}</g:longDate> : ${entryInstance.author}</span> | ||
<h2><g:link action="show" id="${entryInstance.id}">${entryInstance.title}</g:link></h2> | ||
<p>${entryInstance.summary}</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<meta name="layout" content="main" /> | ||
<title>Create Entry</title> | ||
</head> | ||
<body> | ||
<div class="nav"> | ||
<span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> | ||
<span class="menuButton"><g:link class="list" action="list">Entry List</g:link></span> | ||
</div> | ||
<div class="body"> | ||
<h1>Create Entry</h1> | ||
<g:if test="${flash.message}"> | ||
<div class="message">${flash.message}</div> | ||
</g:if> | ||
<g:hasErrors bean="${entryInstance}"> | ||
<div class="errors"> | ||
<g:renderErrors bean="${entryInstance}" as="list" /> | ||
</div> | ||
</g:hasErrors> | ||
<g:form action="save" method="post" > | ||
|
||
<input type="hidden" name="author.id" value="${session.user.id}" /> | ||
|
||
<div class="dialog"> | ||
<table> | ||
<tbody> | ||
|
||
<tr class="prop"> | ||
<td valign="top" class="name"> | ||
<label for="title">Title:</label> | ||
</td> | ||
<td valign="top" class="value ${hasErrors(bean:entryInstance,field:'title','errors')}"> | ||
<input type="text" id="title" name="title" value="${fieldValue(bean:entryInstance,field:'title')}"/> | ||
</td> | ||
</tr> | ||
|
||
<tr class="prop"> | ||
<td valign="top" class="name"> | ||
<label for="summary">Summary:</label> | ||
</td> | ||
<td valign="top" class="value ${hasErrors(bean:entryInstance,field:'summary','errors')}"> | ||
<textarea rows="5" cols="40" name="summary">${fieldValue(bean:entryInstance, field:'summary')}</textarea> | ||
</td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
</div> | ||
<div class="buttons"> | ||
<span class="button"><input class="save" type="submit" value="Create" /></span> | ||
</div> | ||
</g:form> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<meta name="layout" content="main" /> | ||
<title>Edit Entry</title> | ||
</head> | ||
<body> | ||
<div class="nav"> | ||
<span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> | ||
<span class="menuButton"><g:link class="list" action="list">Entry List</g:link></span> | ||
<span class="menuButton"><g:link class="create" action="create">New Entry</g:link></span> | ||
</div> | ||
<div class="body"> | ||
<h1>Edit Entry</h1> | ||
<g:if test="${flash.message}"> | ||
<div class="message">${flash.message}</div> | ||
</g:if> | ||
<g:hasErrors bean="${entryInstance}"> | ||
<div class="errors"> | ||
<g:renderErrors bean="${entryInstance}" as="list" /> | ||
</div> | ||
</g:hasErrors> | ||
<g:form method="post" > | ||
<input type="hidden" name="id" value="${entryInstance?.id}" /> | ||
<div class="dialog"> | ||
<table> | ||
<tbody> | ||
|
||
<tr class="prop"> | ||
<td valign="top" class="name"> | ||
<label for="title">Title:</label> | ||
</td> | ||
<td valign="top" class="value ${hasErrors(bean:entryInstance,field:'title','errors')}"> | ||
<input type="text" id="title" name="title" value="${fieldValue(bean:entryInstance,field:'title')}"/> | ||
</td> | ||
</tr> | ||
|
||
<tr class="prop"> | ||
<td valign="top" class="name"> | ||
<label for="summary">Summary:</label> | ||
</td> | ||
<td valign="top" class="value ${hasErrors(bean:entryInstance,field:'summary','errors')}"> | ||
<textarea rows="5" cols="40" name="summary">${fieldValue(bean:entryInstance, field:'summary')}</textarea> | ||
</td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
</div> | ||
<div class="buttons"> | ||
<span class="button"><g:actionSubmit class="save" value="Update" /></span> | ||
<span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> | ||
</div> | ||
</g:form> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<meta name="layout" content="main" /> | ||
<title>Blogito</title> | ||
</head> | ||
<body> | ||
<g:if test="${session.user}"> | ||
<div class="nav"> | ||
<span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> | ||
<span class="menuButton"><g:link class="create" action="create">New Entry</g:link></span> | ||
</div> | ||
</g:if> | ||
|
||
<g:if test="${flash.message}"> | ||
<div class="message">${flash.message}</div> | ||
</g:if> | ||
|
||
<div class="body"> | ||
<div class="list"> | ||
<g:each in="${entryInstanceList}" status="i" var="entryInstance"> | ||
<g:render template="entry" bean="${entryInstance}" var="entryInstance" /> | ||
</g:each> | ||
</div> | ||
</div> | ||
<div class="paginateButtons"> | ||
<g:paginate total="${entryCount}" params="${flash}"/> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<meta name="layout" content="main" /> | ||
<title>Entry List</title> | ||
</head> | ||
<body> | ||
<div class="nav"> | ||
<span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> | ||
<span class="menuButton"><g:link class="create" action="create">New Entry</g:link></span> | ||
</div> | ||
<div class="body"> | ||
<h1>Entry List</h1> | ||
<g:if test="${flash.message}"> | ||
<div class="message">${flash.message}</div> | ||
</g:if> | ||
<div class="list"> | ||
<table> | ||
<thead> | ||
<tr> | ||
|
||
<g:sortableColumn property="id" title="Id" /> | ||
|
||
<g:sortableColumn property="title" title="Title" /> | ||
|
||
<g:sortableColumn property="summary" title="Summary" /> | ||
|
||
<g:sortableColumn property="dateCreated" title="Date Created" /> | ||
|
||
<g:sortableColumn property="lastUpdated" title="Last Updated" /> | ||
|
||
</tr> | ||
</thead> | ||
<tbody> | ||
<g:each in="${entryInstanceList}" status="i" var="entryInstance"> | ||
<tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> | ||
|
||
<td><g:link action="show" id="${entryInstance.id}">${fieldValue(bean:entryInstance, field:'id')}</g:link></td> | ||
|
||
<td>${fieldValue(bean:entryInstance, field:'title')}</td> | ||
|
||
<td>${fieldValue(bean:entryInstance, field:'summary')}</td> | ||
|
||
<td>${fieldValue(bean:entryInstance, field:'dateCreated')}</td> | ||
|
||
<td>${fieldValue(bean:entryInstance, field:'lastUpdated')}</td> | ||
|
||
</tr> | ||
</g:each> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="paginateButtons"> | ||
<g:paginate total="${Entry.count()}" /> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<meta name="layout" content="main" /> | ||
<title>Show Entry</title> | ||
</head> | ||
<body> | ||
<g:if test="${session.user}"> | ||
<div class="nav"> | ||
<span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> | ||
<span class="menuButton"><g:link class="list" action="list">Entry List</g:link></span> | ||
<span class="menuButton"><g:link class="create" action="create">New Entry</g:link></span> | ||
</div> | ||
</g:if> | ||
<div class="body"> | ||
<g:render template="entry" bean="${entryInstance}" var="entryInstance" /> | ||
|
||
<g:if test="${session.user}"> | ||
<div class="buttons"> | ||
<g:form> | ||
<input type="hidden" name="id" value="${entryInstance?.id}" /> | ||
<span class="button"><g:actionSubmit class="edit" value="Edit" /></span> | ||
<span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> | ||
</g:form> | ||
</div> | ||
</g:if> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.