source: branches/TaskRewrite/src/grails-app/views/authority/create.gsp @ 84

Last change on this file since 84 was 59, checked in by gav, 16 years ago

Lots of changes to setup Acegi, should be complete with all current pages secured.
Added CSS and PersonGroup? and PersonGroupType?.
Adjust BootStrap? to suite.
Add Home and Admin pages.

File size: 1.4 KB
Line 
1<head>
2        <meta name="layout" content="main" />
3        <title>Create Authority</title>
4</head>
5
6<body>
7
8        <div class="nav">
9                <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
10                <span class="menuButton"><g:link class="list" action="list">Authority List</g:link></span>
11        </div>
12
13        <div class="body">
14
15                <h1>Create Authority</h1>
16                <g:if test="${flash.message}">
17                <div class="message">${flash.message}</div>
18                </g:if>
19                <g:hasErrors bean="${authority}">
20                <div class="errors">
21                <g:renderErrors bean="${authority}" as="list" />
22                </div>
23                </g:hasErrors>
24
25                <g:form action="save">
26                <div class="dialog">
27                <table>
28                <tbody>
29                        <tr class="prop">
30                                <td valign="top" class="name"><label for="authority">Authority Name:</label></td>
31                                <td valign="top" class="value ${hasErrors(bean:authority,field:'authority','errors')}">
32                                        <input type="text" id="authority" name="authority" value="${authority?.authority?.encodeAsHTML()}"/>
33                                </td>
34                        </tr>
35
36                        <tr class="prop">
37                                <td valign="top" class="name"><label for="description">Description:</label></td>
38                                <td valign="top" class="value ${hasErrors(bean:authority,field:'description','errors')}">
39                                        <input type="text" id="description" name="description" value="${authority?.description?.encodeAsHTML()}"/>
40                                </td>
41                        </tr>
42                </tbody>
43                </table>
44                </div>
45
46                <div class="buttons">
47                        <span class="button"><input class="save" type="submit" value="Create" /></span>
48                </div>
49                </g:form>
50        </div>
51</body>
Note: See TracBrowser for help on using the repository browser.