Skip to content

Commit

Permalink
Refs #81 - changes copied from master branch commit aa4d211
Browse files Browse the repository at this point in the history
  • Loading branch information
cbmarcum committed Nov 9, 2019
1 parent ed2e8c3 commit 9126734
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 111 deletions.
114 changes: 56 additions & 58 deletions grails-app/views/notice/index.gsp
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&hellip;"/></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&hellip;"/></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>
109 changes: 56 additions & 53 deletions grails-app/views/notice/show.gsp
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&hellip;"/></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&hellip;"/></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>

0 comments on commit 9126734

Please sign in to comment.