Changeset 987 for trunk/grails-app/views
- Timestamp:
- Oct 25, 2010, 4:23:39 PM (10 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/edit.gsp
r959 r987 126 126 <td colspan="3" valign="top" class="value ${hasErrors(bean: personInstance, field: 'affiliations', 'errors')}"> 127 127 <g:select name="affiliations" from="${dbnp.studycapturing.PersonAffiliation.list()}" multiple="yes" optionKey="id" size="5" value="${personInstance?.affiliations}" /> 128 </td> 128 129 <g:link controller="personAffiliation" action="list" params="${extraparams}">Edit Affiliations</g:link> 130 </td> 129 131 </tr> 130 132 -
trunk/grails-app/views/person/list.gsp
r959 r987 64 64 <div class="buttons"> 65 65 <span class="button"><g:link class="create" action="create" params="${extraparams}"><g:message code="default.new.label" args="[entityName]" /></g:link></span> 66 </div> 66 <span class="button"><g:link class="otherList" controller="personAffiliation" action="list" params="${extraparams}">Edit Affiliations</g:link></span> 67 </div> 67 68 <div class="paginateButtons"> 68 69 <g:paginate total="${personInstanceTotal}" prev="« Previous" next="» Next" params="${extraparams}" /> -
trunk/grails-app/views/personAffiliation/create.gsp
r959 r987 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: 'personAffiliation.label', default: 'PersonAffiliation')}" /> 8 8 <title><g:message code="default.create.label" args="['Affiliation']" /></title> … … 45 45 </div> 46 46 <div class="buttons"> 47 <g:each in="${extraparams}" var="param"> 48 <input type="hidden" name="${param.key}" value="${param.value}"> 49 </g:each> 47 50 <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span> 48 <span class="button"><g:link class="cancel" action="list" >Cancel</g:link></span>51 <span class="button"><g:link class="cancel" action="list" params="${extraparams}">Cancel</g:link></span> 49 52 </div> 50 53 </g:form> -
trunk/grails-app/views/personAffiliation/edit.gsp
r959 r987 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: 'personAffiliation.label', default: 'PersonAffiliation')}" /> 8 8 <title><g:message code="default.edit.label" args="['Affiliation']" /></title> … … 46 46 </div> 47 47 <div class="buttons"> 48 <g:each in="${extraparams}" var="param"> 49 <input type="hidden" name="${param.key}" value="${param.value}"> 50 </g:each> 48 51 <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span> 49 52 <span class="button"><g:actionSubmit class="cancel" action="show" value="Cancel" /></span> -
trunk/grails-app/views/personAffiliation/list.gsp
r959 r987 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: 'personAffiliation.label', default: 'PersonAffiliation')}" /> 8 8 <title><g:message code="default.list.label" args="['Affiliation']" /></title> … … 19 19 <tr> 20 20 21 <g:sortableColumn p roperty="institute" title="${message(code: 'personAffiliation.institute.label', default: 'Institute')}" />22 <g:sortableColumn p roperty="department" title="${message(code: 'personAffiliation.department.label', default: 'Department')}" />21 <g:sortableColumn params="${extraparams}" property="institute" title="${message(code: 'personAffiliation.institute.label', default: 'Institute')}" /> 22 <g:sortableColumn params="${extraparams}" property="department" title="${message(code: 'personAffiliation.department.label', default: 'Department')}" /> 23 23 24 24 </tr> … … 28 28 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 29 29 30 <td><g:link action="show" id="${personAffiliationInstance.id}">${fieldValue(bean: personAffiliationInstance, field: "institute")}</g:link></td>30 <td><g:link params="${extraparams}" action="show" id="${personAffiliationInstance.id}">${fieldValue(bean: personAffiliationInstance, field: "institute")}</g:link></td> 31 31 <td>${fieldValue(bean: personAffiliationInstance, field: "department")}</td> 32 32 </tr> … … 36 36 </div> 37 37 <div class="buttons"> 38 <span class="button"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span> 38 <span class="button"><g:link class="create" params="${extraparams}" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span> 39 <span class="button"><g:link class="otherList" controller="person" action="list" params="${extraparams}">Edit Persons</g:link></span> 39 40 </div> 40 41 <div class="paginateButtons"> 41 <g:paginate total="${personAffiliationInstanceTotal}" prev="« Previous" next="» Next" />42 <g:paginate params="${extraparams}" total="${personAffiliationInstanceTotal}" prev="« Previous" next="» Next" /> 42 43 </div> 43 44 </div> -
trunk/grails-app/views/personAffiliation/show.gsp
r959 r987 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: 'personAffiliation.label', default: 'PersonAffiliation')}" /> 8 8 <title><g:message code="default.show.label" args="['Affiliation']" /></title> … … 37 37 <g:form> 38 38 <g:hiddenField name="id" value="${personAffiliationInstance?.id}" /> 39 <g:each in="${extraparams}" var="param"> 40 <input type="hidden" name="${param.key}" value="${param.value}"> 41 </g:each> 42 39 43 <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span> 40 44 <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> 41 <span class="button"><g:link class="backToList" action="list" >Back to list</g:link></span>45 <span class="button"><g:link class="backToList" action="list" params="${extraparams}">Back to list</g:link></span> 42 46 </g:form> 43 47 </div>
Note: See TracChangeset
for help on using the changeset viewer.