Changeset 527 for trunk/grails-app/views
- Timestamp:
- Jun 4, 2010, 12:15:24 PM (13 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/create.gsp
r496 r527 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="layout" content=" main" />6 <meta name="layout" content="${layout}" /> 7 7 <g:set var="entityName" value="${message(code: 'person.label', default: 'Person')}" /> 8 8 <title><g:message code="default.create.label" args="[entityName]" /></title> … … 114 114 </td> 115 115 </tr> 116 116 117 117 <tr class="prop"> 118 118 <td valign="top" class="name"> … … 123 123 </td> 124 124 </tr> 125 125 126 126 </tbody> 127 127 </table> 128 128 </div> 129 129 <div class="buttons"> 130 <g:each in="${extraparams}" var="param"> 131 <input type="hidden" name="${param.key}" value="${param.value}"> 132 </g:each> 130 133 <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span> 131 <span class="button"><g:link class="cancel" action="list" >Cancel</g:link></span>134 <span class="button"><g:link class="cancel" action="list" params="${extraparams}">Cancel</g:link></span> 132 135 </div> 133 136 </g:form> -
trunk/grails-app/views/person/edit.gsp
r496 r527 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="layout" content=" main" />6 <meta name="layout" content="${layout}" /> 7 7 <g:set var="entityName" value="${message(code: 'person.label', default: 'Person')}" /> 8 8 <title><g:message code="default.edit.label" args="[entityName]" /></title> … … 30 30 <label for="title"><g:message code="person.title.label" default="Title" /></label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'title', 'errors')}">32 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'title', 'errors')}"> 33 33 <g:textField name="title" value="${personInstance?.title}" /> 34 34 </td> … … 39 39 <label for="gender"><g:message code="person.gender.label" default="Gender" /></label> 40 40 </td> 41 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'gender', 'errors')}">41 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'gender', 'errors')}"> 42 42 <g:select name="gender" from="${possibleGenders}" noSelection="['' : 'Not specified']" value="${personInstance?.gender}" /> 43 43 </td> … … 51 51 <g:textField name="firstName" value="${personInstance?.firstName}" /> 52 52 </td> 53 </tr>54 55 <tr class="prop">56 53 <td valign="top" class="name"> 57 54 <label for="initials"><g:message code="person.initials.label" default="Initials" /></label> … … 64 61 <tr class="prop"> 65 62 <td valign="top" class="name"> 63 <label for="lastName"><g:message code="person.lastName.label" default="Last Name" /></label> 64 </td> 65 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'lastName', 'errors')}"> 66 <g:textField name="lastName" value="${personInstance?.lastName}" /> 67 </td> 68 <td valign="top" class="name"> 66 69 <label for="prefix"><g:message code="person.prefix.label" default="Prefix" /></label> 67 70 </td> 68 71 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'prefix', 'errors')}"> 69 72 <g:textField name="prefix" value="${personInstance?.prefix}" /> 70 </td>71 </tr>72 73 74 <tr class="prop">75 <td valign="top" class="name">76 <label for="lastName"><g:message code="person.lastName.label" default="Last Name" /></label>77 </td>78 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'lastName', 'errors')}">79 <g:textField name="lastName" value="${personInstance?.lastName}" />80 73 </td> 81 74 </tr> … … 85 78 <label for="address"><g:message code="person.address.label" default="Address" /></label> 86 79 </td> 87 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'address', 'errors')}">80 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'address', 'errors')}"> 88 81 <g:textField name="address" value="${personInstance?.address}" /> 89 82 </td> … … 94 87 <label for="phone"><g:message code="person.phone.label" default="Work Phone" /></label> 95 88 </td> 96 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'phone', 'errors')}">89 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'phone', 'errors')}"> 97 90 <g:textField name="phone" value="${personInstance?.phone}" /> 98 91 </td> … … 103 96 <label for="mobile"><g:message code="person.mobile.label" default="Mobile Phone" /></label> 104 97 </td> 105 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'mobile', 'errors')}">98 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'mobile', 'errors')}"> 106 99 <g:textField name="mobile" value="${personInstance?.phone}" /> 107 100 </td> … … 113 106 <label for="fax"><g:message code="person.fax.label" default="Fax" /></label> 114 107 </td> 115 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'fax', 'errors')}">108 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'fax', 'errors')}"> 116 109 <g:textField name="fax" value="${personInstance?.fax}" /> 117 110 </td> … … 122 115 <label for="email"><g:message code="person.email.label" default="Email" /></label> 123 116 </td> 124 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'email', 'errors')}">117 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'email', 'errors')}"> 125 118 <g:textField name="email" value="${personInstance?.email}" /> 126 119 </td> … … 131 124 <label for="affiliations"><g:message code="person.affiliations.label" default="Affiliations" /></label> 132 125 </td> 133 <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'affiliations', 'errors')}">126 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'affiliations', 'errors')}"> 134 127 <g:select name="affiliations" from="${dbnp.studycapturing.PersonAffiliation.list()}" multiple="yes" optionKey="id" size="5" value="${personInstance?.affiliations}" /> 135 128 </td> … … 140 133 </div> 141 134 <div class="buttons"> 135 <g:each in="${extraparams}" var="param"> 136 <input type="hidden" name="${param.key}" value="${param.value}"> 137 </g:each> 138 142 139 <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span> 143 140 <span class="button"><g:actionSubmit class="cancel" action="show" value="Cancel" /></span> -
trunk/grails-app/views/person/list.gsp
r496 r527 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="layout" content=" main" />6 <meta name="layout" content="${layout}" /> 7 7 <g:set var="entityName" value="${message(code: 'person.label', default: 'Person')}" /> 8 8 <title><g:message code="default.list.label" args="[entityName]" /></title> … … 19 19 <tr> 20 20 21 <g:sortableColumn p roperty="firstName" title="${message(code: 'person.firstName.label', default: 'First Name')}" />21 <g:sortableColumn params="${extraparams}" property="firstName" title="${message(code: 'person.firstName.label', default: 'First Name')}" /> 22 22 23 <g:sortableColumn p roperty="prefix" title="${message(code: 'person.prefix.label', default: 'Prefix')}" />23 <g:sortableColumn params="${extraparams}" property="prefix" title="${message(code: 'person.prefix.label', default: 'Prefix')}" /> 24 24 25 <g:sortableColumn p roperty="lastName" title="${message(code: 'person.lasttName.label', default: 'Last Name')}" />25 <g:sortableColumn params="${extraparams}" property="lastName" title="${message(code: 'person.lasttName.label', default: 'Last Name')}" /> 26 26 27 <g:sortableColumn property="phone" title="${message(code: 'person.phone.label', default: 'Work Phone')}" /> 27 <g:if test="${layout!='dialog'}"> 28 <g:sortableColumn params="${extraparams}" property="phone" title="${message(code: 'person.phone.label', default: 'Work Phone')}" /> 28 29 29 <g:sortableColumn property="email" title="${message(code: 'person.email.label', default: 'Email')}" /> 30 <g:sortableColumn params="${extraparams}" property="email" title="${message(code: 'person.email.label', default: 'Email')}" /> 31 </g:if> 30 32 31 33 <th>Affiliations</th> … … 40 42 <td>${fieldValue(bean: personInstance, field: "prefix")}</td> 41 43 42 <td><g:link action="show" id="${personInstance.id}">${fieldValue(bean: personInstance, field: "lastName")}</g:link></td>44 <td><g:link params="${extraparams}" action="show" id="${personInstance.id}">${fieldValue(bean: personInstance, field: "lastName")}</g:link></td> 43 45 44 <td>${fieldValue(bean: personInstance, field: "phone")}</td> 46 <g:if test="${layout!='dialog'}"> 47 <td>${fieldValue(bean: personInstance, field: "phone")}</td> 45 48 46 <td>${fieldValue(bean: personInstance, field: "email")}</td> 49 <td>${fieldValue(bean: personInstance, field: "email")}</td> 50 </g:if> 47 51 48 52 <td> … … 59 63 </div> 60 64 <div class="buttons"> 61 <span class="button"><g:link class="create" action="create" ><g:message code="default.new.label" args="[entityName]" /></g:link></span>65 <span class="button"><g:link class="create" action="create" params="${extraparams}"><g:message code="default.new.label" args="[entityName]" /></g:link></span> 62 66 </div> 63 67 <div class="paginateButtons"> 64 <g:paginate total="${personInstanceTotal}" prev="« Previous" next="» Next" />68 <g:paginate total="${personInstanceTotal}" prev="« Previous" next="» Next" params="${extraparams}" /> 65 69 </div> 66 70 -
trunk/grails-app/views/person/show.gsp
r496 r527 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="layout" content=" main" />6 <meta name="layout" content="${layout}" /> 7 7 <g:set var="entityName" value="${message(code: 'person.label', default: 'Person')}" /> 8 8 <title><g:message code="default.show.label" args="[entityName]" /></title> … … 110 110 <g:form> 111 111 <g:hiddenField name="id" value="${personInstance?.id}" /> 112 <g:each in="${extraparams}" var="param"> 113 <input type="hidden" name="${param.key}" value="${param.value}"> 114 </g:each> 112 115 <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span> 113 116 <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span> 114 <span class="button"><g:link class="backToList" action="list" >Back to list</g:link></span>117 <span class="button"><g:link class="backToList" action="list" params="${extraparams}">Back to list</g:link></span> 115 118 </g:form> 116 119 </div> -
trunk/grails-app/views/personRole/create.gsp
r496 r527 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="layout" content=" main" />6 <meta name="layout" content="${layout}" /> 7 7 <g:set var="entityName" value="${message(code: 'personRole.label', default: 'PersonRole')}" /> 8 8 <title><g:message code="default.create.label" args="['Role']" /></title> … … 38 38 </div> 39 39 <div class="buttons"> 40 <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span> 41 <span class="button"><g:link class="cancel" action="list">Cancel</g:link></span> 40 <g:each in="${extraparams}" var="param"> 41 <input type="hidden" name="${param.key}" value="${param.value}"> 42 </g:each> 43 <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span> 44 <span class="button"><g:link class="cancel" action="list" params="${extraparams}">Cancel</g:link></span> 42 45 </div> 43 46 </g:form> -
trunk/grails-app/views/personRole/edit.gsp
r496 r527 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="layout" content=" main" />6 <meta name="layout" content="${layout}" /> 7 7 <g:set var="entityName" value="${message(code: 'personRole.label', default: 'PersonRole')}" /> 8 8 <title><g:message code="default.edit.label" args="['Role']" /></title> … … 40 40 </div> 41 41 <div class="buttons"> 42 <g:each in="${extraparams}" var="param"> 43 <input type="hidden" name="${param.key}" value="${param.value}"> 44 </g:each> 42 45 <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span> 43 46 <span class="button"><g:actionSubmit class="cancel" action="list" value="Cancel" /></span> -
trunk/grails-app/views/personRole/list.gsp
r496 r527 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="layout" content=" main" />6 <meta name="layout" content="${layout}" /> 7 7 <g:set var="entityName" value="${message(code: 'personRole.label', default: 'PersonRole')}" /> 8 8 <title><g:message code="default.list.label" args="['Role']" /></title> … … 30 30 <td class="buttons"> 31 31 <g:form> 32 <g:each in="${extraparams}" var="param"> 33 <input type="hidden" name="${param.key}" value="${param.value}"> 34 </g:each> 32 35 <g:hiddenField name="id" value="${personRoleInstance?.id}" /> 33 36 <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span> … … 41 44 </div> 42 45 <div class="buttons"> 43 <span class="button"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>46 <span class="button"><g:link params="${extraparams}" class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span> 44 47 </div> 45 48 <div class="paginateButtons"> 46 <g:paginate total="${personRoleInstanceTotal}" prev="« Previous" next="» Next" />49 <g:paginate total="${personRoleInstanceTotal}" prev="« Previous" next="» Next" params="${extraparams}" /> 47 50 </div> 48 51 </div> -
trunk/grails-app/views/personRole/show.gsp
r496 r527 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="layout" content=" main" />6 <meta name="layout" content="${layout}" /> 7 7 <g:set var="entityName" value="${message(code: 'personRole.label', default: 'PersonRole')}" /> 8 8 <title><g:message code="default.show.label" args="['Role']" /></title> … … 32 32 <g:form> 33 33 <g:hiddenField name="id" value="${personRoleInstance?.id}" /> 34 <g:each in="${extraparams}" var="param"> 35 <input type="hidden" name="${param.key}" value="${param.value}"> 36 </g:each> 34 37 <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span> 35 38 <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span> 36 <span class="button"><g:link class="backToList" action="list" >Back to list</g:link></span>39 <span class="button"><g:link class="backToList" action="list" params="${extraparams}">Back to list</g:link></span> 37 40 </g:form> 38 41 </div> -
trunk/grails-app/views/wizard/common/_navigation.gsp
r376 r527 28 28 // scriptable webflow action 29 29 function refreshWebFlow() { 30 <wizard:ajaxSubmitJs name="refresh" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" />30 <wizard:ajaxSubmitJs form="#wizardForm" name="refresh" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /> 31 31 } 32 32 </script> -
trunk/grails-app/views/wizard/pages/_study.gsp
r526 r527 30 30 31 31 <wizard:publicationSelectElement name="publication" value="${study?.publications}" /> 32 <wizard:contactSelectElement name="contacts" value="${study?.persons}" /> 32 33 33 34 </wizard:pageContent>
Note: See TracChangeset
for help on using the changeset viewer.