-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
112 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="layout" content="main"/> | ||
<g:set var="entityName" value="${message(code: 'notice.label', default: 'Notice')}"/> | ||
<title><g:message code="default.list.label" args="[entityName]"/></title> | ||
</head> | ||
<head> | ||
<meta name="layout" content="main"/> | ||
<g:set var="entityName" value="${message(code: 'notice.label', default: 'Notice')}"/> | ||
<title><g:message code="default.list.label" args="[entityName]"/></title> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<a href="#list-notice" class="skip" tabindex="-1"><g:message code="default.link.skip.label" | ||
default="Skip to content…"/></a> | ||
|
||
<g:render template="/common/subnav-create"/> | ||
|
||
<div id="list-notice" class="page-header"> | ||
<h1><g:message code="default.list.label" args="[entityName]"/></h1> | ||
</div> | ||
|
||
<g:render template="/common/flash-message"/> | ||
|
||
<div class="table-responsive"> | ||
<table class="table table-condensed"> | ||
<thead> | ||
<tr> | ||
|
||
<g:sortableColumn property="name" | ||
title="${message(code: 'default.name.label', default: 'default.name.label')}"/> | ||
|
||
<g:sortableColumn property="page" | ||
title="${message(code: 'notice.page.label', default: 'notice.page.label')}"/> | ||
|
||
<g:sortableColumn property="fromDate" | ||
title="${message(code: 'notice.fromDate.label', default: 'notice.fromDate.label')}"/> | ||
|
||
<g:sortableColumn property="thruDate" | ||
title="${message(code: 'notice.thruDate.label', default: 'notice.thruDate.label')}"/> | ||
|
||
</tr> | ||
</thead> | ||
<tbody> | ||
<g:each in="${noticeList}" status="i" var="item"> | ||
<tr> | ||
<td><g:link action="show" id="${item.name}">${item.name}</g:link></td> | ||
<td>${item.page}</td> | ||
<td><g:formatDate format="yyyy-MMM-dd" date="${item.fromDate}"/></td> | ||
<td><g:formatDate format="yyyy-MMM-dd" date="${item.thruDate}"/></td> | ||
</tr> | ||
</g:each> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<g:if test="${noticeCount > params.max}"> | ||
<div class="text-center"> | ||
<cb:bsPaginate total="${noticeCount}" params="${params}"/> | ||
</div> | ||
</g:if> | ||
|
||
<body> | ||
<div class="container"> | ||
<a href="#list-notice" class="skip" tabindex="-1"><g:message code="default.link.skip.label" | ||
default="Skip to content…"/></a> | ||
|
||
<g:render template="/common/subnav-create"/> | ||
|
||
<div id="list-notice" class="page-header"> | ||
<h1><g:message code="default.list.label" args="[entityName]"/></h1> | ||
</div> | ||
|
||
<g:render template="/common/flash-message"/> | ||
|
||
<div class="table-responsive"> | ||
<table class="table table-condensed"> | ||
<thead> | ||
<tr> | ||
|
||
<g:sortableColumn property="name" | ||
title="${message(code: 'default.name.label', default: 'default.name.label')}"/> | ||
|
||
<g:sortableColumn property="longDescription" | ||
title="${message(code: 'notice.longDescription.label', default: 'notice.longDescription.label')}"/> | ||
|
||
<g:sortableColumn property="fromDate" | ||
title="${message(code: 'notice.fromDate.label', default: 'notice.fromDate.label')}"/> | ||
|
||
<g:sortableColumn property="thruDate" | ||
title="${message(code: 'notice.thruDate.label', default: 'notice.thruDate.label')}"/> | ||
|
||
</tr> | ||
</thead> | ||
<tbody> | ||
<g:each in="${noticeList}" status="i" var="item"> | ||
<tr> | ||
<td> | ||
<g:link action="show" id="${item.name}">${item.name}</g:link> | ||
</td> | ||
<td>${item.longDescription.take(20)} ...</td> | ||
<td><g:formatDate format="yyyy-MMM-dd" date="${item.fromDate}"/></td> | ||
<td><g:formatDate format="yyyy-MMM-dd" date="${item.thruDate}"/></td> | ||
</tr> | ||
</g:each> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<g:if test="${noticeCount > params.max}"> | ||
<div class="text-center"> | ||
<cb:bsPaginate total="${noticeCount}" params="${params}"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="layout" content="main"/> | ||
<g:set var="entityName" value="${message(code: 'notice.label', default: 'Notice')}"/> | ||
<title><g:message code="default.show.label" args="[entityName]"/></title> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
|
||
<a href="#show-notice" class="skip" tabindex="-1"><g:message code="default.link.skip.label" | ||
default="Skip to content…"/></a> | ||
|
||
<g:render template="/common/subnav-list-create"/> | ||
|
||
<div id="show-notice" class="page-header"> | ||
<h1><g:message code="default.show.label" args="[entityName]"/></h1> | ||
</div> | ||
|
||
<g:render template="/common/flash-message"/> | ||
|
||
<div> | ||
<dl class="dl-horizontal"> | ||
<dt><g:message code="default.name.label" default="default.name.label"/></dt> | ||
<dd><f:display bean="notice" property="name"/></dd> | ||
|
||
<dt><g:message code="notice.longDescription.label" default="notice.longDescription.label"/></dt> | ||
<dd><f:display bean="notice" property="longDescription"/></dd> | ||
|
||
<dt><g:message code="notice.page.label" default="notice.page.label"/></dt> | ||
<dd><f:display bean="notice" property="page"/></dd> | ||
|
||
<dt><g:message code="notice.fromDate.label" default="notice.fromDate.label"/></dt> | ||
<dd><f:display bean="notice" property="fromDate"/> | ||
<g:formatDate format="yyyy-MMM-dd" date="${value}"/></dd> | ||
|
||
<dt><g:message code="notice.thruDate.label" default="notice.thruDate.label"/></dt> | ||
<dd><f:display bean="notice" property="thruDate"/> | ||
<g:formatDate format="yyyy-MMM-dd" date="${value}"/></dd> | ||
</dl> | ||
</div> | ||
|
||
<g:form resource="${this.notice}" method="DELETE"> | ||
<fieldset class="buttons"> | ||
<g:link class="edit" action="edit" resource="${this.notice}"><g:message code="default.button.edit.label" | ||
default="Edit"/></g:link> | ||
<input class="delete" type="submit" | ||
value="${message(code: 'default.button.delete.label', default: 'Delete')}" | ||
onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/> | ||
</fieldset> | ||
</g:form> | ||
|
||
</div> <%-- /.container --%> | ||
</body> | ||
<head> | ||
<meta name="layout" content="main"/> | ||
<g:set var="entityName" value="${message(code: 'notice.label', default: 'Notice')}"/> | ||
<title><g:message code="default.show.label" args="[entityName]"/></title> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
|
||
<a href="#show-notice" class="skip" tabindex="-1"><g:message code="default.link.skip.label" | ||
default="Skip to content…"/></a> | ||
|
||
<g:render template="/common/subnav-list-create"/> | ||
|
||
<div id="show-notice" class="page-header"> | ||
<h1><g:message code="default.show.label" args="[entityName]"/></h1> | ||
</div> | ||
|
||
<g:render template="/common/flash-message"/> | ||
|
||
<div> | ||
<dl class="dl-horizontal"> | ||
<dt><g:message code="default.name.label" default="default.name.label"/></dt> | ||
<dd><f:display bean="notice" property="name"/></dd> | ||
|
||
<dt><g:message code="notice.page.label" default="notice.page.label"/></dt> | ||
<dd><f:display bean="notice" property="page"/></dd> | ||
|
||
<dt><g:message code="notice.longDescription.label" default="notice.longDescription.label"/></dt> | ||
<dd>${notice?.longDescription.encodeAsRaw()}</dd> | ||
|
||
<dt><g:message code="notice.page.label" default="notice.page.label"/></dt> | ||
<dd><f:display bean="notice" property="page"/></dd> | ||
|
||
<dt><g:message code="notice.fromDate.label" default="notice.fromDate.label"/></dt> | ||
<dd><f:display bean="notice" property="fromDate"/> | ||
<g:formatDate format="yyyy-MMM-dd" date="${value}"/></dd> | ||
|
||
<dt><g:message code="notice.thruDate.label" default="notice.thruDate.label"/></dt> | ||
<dd><f:display bean="notice" property="thruDate"/> | ||
<g:formatDate format="yyyy-MMM-dd" date="${value}"/></dd> | ||
</dl> | ||
</div> | ||
|
||
<g:form resource="${this.notice}" method="DELETE"> | ||
<fieldset class="buttons"> | ||
<g:link class="edit" action="edit" resource="${this.notice}"><g:message code="default.button.edit.label" | ||
default="Edit"/></g:link> | ||
<input class="delete" type="submit" | ||
value="${message(code: 'default.button.delete.label', default: 'Delete')}" | ||
onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/> | ||
</fieldset> | ||
</g:form> | ||
|
||
</div> <%-- /.container --%> | ||
</body> | ||
</html> |