source: branches/TaskRewrite/src/plugins/acegi-0.5.1/src/templates/manager/views/user/create.gsp @ 58

Last change on this file since 58 was 58, checked in by gav, 15 years ago

Configure BootStrap? with latest concepts.
Install and setup Acegi plugin with custom views.
Test Fixture plugin in a test app but couldn't get it to work with Acegi encodePassword() so gave up.

File size: 3.4 KB
Line 
1<head>
2        <meta name="layout" content="main" />
3        <title>Create ${personClassName}</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">${personClassName} List</g:link></span>
11        </div>
12
13        <div class="body">
14                <h1>Create ${personClassName}</h1>
15                <g:if test="\${flash.message}">
16                <div class="message">\${flash.message}</div>
17                </g:if>
18                <g:hasErrors bean="\${person}">
19                <div class="errors">
20                        <g:renderErrors bean="\${person}" as="list" />
21                </div>
22                </g:hasErrors>
23                <g:form action="save">
24                        <div class="dialog">
25                                <table>
26                                <tbody>
27
28                                        <tr class="prop">
29                                                <td valign="top" class="name"><label for="username">Login Name:</label></td>
30                                                <td valign="top" class="value \${hasErrors(bean:person,field:'username','errors')}">
31                                                        <input type="text" id="username" name="username" value="\${person.username?.encodeAsHTML()}"/>
32                                                </td>
33                                        </tr>
34
35                                        <tr class="prop">
36                                                <td valign="top" class="name"><label for="userRealName">Full Name:</label></td>
37                                                <td valign="top" class="value \${hasErrors(bean:person,field:'userRealName','errors')}">
38                                                        <input type="text" id="userRealName" name="userRealName" value="\${person.userRealName?.encodeAsHTML()}"/>
39                                                </td>
40                                        </tr>
41
42                                        <tr class="prop">
43                                                <td valign="top" class="name"><label for="passwd">Password:</label></td>
44                                                <td valign="top" class="value \${hasErrors(bean:person,field:'passwd','errors')}">
45                                                        <input type="password" id="passwd" name="passwd" value="\${person.passwd?.encodeAsHTML()}"/>
46                                                </td>
47                                        </tr>
48
49                                        <tr class="prop">
50                                                <td valign="top" class="name"><label for="enabled">Enabled:</label></td>
51                                                <td valign="top" class="value \${hasErrors(bean:person,field:'enabled','errors')}">
52                                                        <g:checkBox name="enabled" value="\${person.enabled}" ></g:checkBox>
53                                                </td>
54                                        </tr>
55
56                                        <tr class="prop">
57                                                <td valign="top" class="name"><label for="description">Description:</label></td>
58                                                <td valign="top" class="value \${hasErrors(bean:person,field:'description','errors')}">
59                                                        <input type="text" id="description" name="description" value="\${person.description?.encodeAsHTML()}"/>
60                                                </td>
61                                        </tr>
62
63                                        <tr class="prop">
64                                                <td valign="top" class="name"><label for="email">Email:</label></td>
65                                                <td valign="top" class="value \${hasErrors(bean:person,field:'email','errors')}">
66                                                        <input type="text" id="email" name="email" value="\${person.email?.encodeAsHTML()}"/>
67                                                </td>
68                                        </tr>
69
70                                        <tr class="prop">
71                                                <td valign="top" class="name"><label for="emailShow">Show Email:</label></td>
72                                                <td valign="top" class="value \${hasErrors(bean:person,field:'emailShow','errors')}">
73                                                        <g:checkBox name="emailShow" value="\${person.emailShow}"/>
74                                                </td>
75                                        </tr>
76
77                                        <tr class="prop">
78                                                <td valign="top" class="name" align="left">Assign Roles:</td>
79                                        </tr>
80
81                                        <g:each in="\${authorityList}">
82                                        <tr>
83                                                <td valign="top" class="name" align="left">\${it.authority.encodeAsHTML()}</td>
84                                                <td align="left"><g:checkBox name="\${it.authority}"/></td>
85                                        </tr>
86                                        </g:each>
87
88                                </tbody>
89                                </table>
90                        </div>
91
92                        <div class="buttons">
93                                <span class="button"><input class="save" type="submit" value="Create" /></span>
94                        </div>
95
96                </g:form>
97
98        </div>
99</body>
Note: See TracBrowser for help on using the repository browser.