Ignore:
Timestamp:
Feb 24, 2010, 2:44:22 PM (15 years ago)
Author:
gav
Message:

Change views to use shared messages: ExtendedAttribute views for Asset, AssetSubItem?, Department, Section, Site.

Location:
trunk/grails-app/views/departmentExtendedAttributeDetailed
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/departmentExtendedAttributeDetailed/create.gsp

    r268 r413  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
     11            <h1>Create Department Extended Attribute</h1>
    1212        </div>
    1313        <div class="body">
    14             <h1>Create DepartmentExtendedAttribute</h1>
    15             <g:if test="${flash.message}">
    16             <div class="message">${flash.message}</div>
    17             </g:if>
     14            <g:render template="/shared/messages" />
    1815            <g:hasErrors bean="${departmentExtendedAttributeInstance}">
    1916            <div class="errors">
  • trunk/grails-app/views/departmentExtendedAttributeDetailed/edit.gsp

    r268 r413  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
     11            <h1>Edit Department Extended Attribute</h1>
    1312        </div>
    1413        <div class="body">
    15             <h1>Edit DepartmentExtendedAttribute</h1>
    16             <g:if test="${flash.message}">
    17             <div class="message">${flash.message}</div>
    18             </g:if>
     14            <g:render template="/shared/messages" />
    1915            <g:hasErrors bean="${departmentExtendedAttributeInstance}">
    2016            <div class="errors">
     
    7066                <div class="buttons">
    7167                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
     68                    <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span>
    7269                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
    7370                </div>
  • trunk/grails-app/views/departmentExtendedAttributeDetailed/list.gsp

    r268 r413  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
     11            <h1>Department Extended Attribute List</h1>
    1212        </div>
    1313        <div class="body">
    14             <h1>DepartmentExtendedAttribute List</h1>
    15             <g:if test="${flash.message}">
    16             <div class="message">${flash.message}</div>
    17             </g:if>
     14            <g:render template="/shared/messages" />
    1815            <div class="list">
    1916                <table>
     
    3027                           
    3128                                <th>Extended Attribute Type</th>
     29
     30                            <th></th>
    3231                           
    3332                        </tr>
     
    3534                    <tbody>
    3635                    <g:each in="${departmentExtendedAttributeInstanceList}" status="i" var="departmentExtendedAttributeInstance">
    37                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
     36                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/departmentExtendedAttributeDetailed/show/${departmentExtendedAttributeInstance.id}"'/>
    3837                       
    39                             <td><g:link action="show" id="${departmentExtendedAttributeInstance.id}">${fieldValue(bean:departmentExtendedAttributeInstance, field:'id')}</g:link></td>
     38                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'id')}</td>
    4039                       
    4140                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'value')}</td>
     
    4645                       
    4746                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'extendedAttributeType')}</td>
     47
     48                            <td>
     49                                <g:link action="show" id="${departmentExtendedAttributeInstance.id}">
     50                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
     51                                </g:link>
     52                            </td>
    4853                       
    4954                        </tr>
  • trunk/grails-app/views/departmentExtendedAttributeDetailed/show.gsp

    r268 r413  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
     11            <h1>Show Department Extended Attribute</h1>
    1312        </div>
    1413        <div class="body">
    15             <h1>Show DepartmentExtendedAttribute</h1>
    16             <g:if test="${flash.message}">
    17             <div class="message">${flash.message}</div>
    18             </g:if>
     14            <g:render template="/shared/messages" />
    1915            <div class="dialog">
    2016                <table>
     
    4642                            <td valign="top" class="name">Department:</td>
    4743                           
    48                             <td valign="top" class="value"><g:link controller="department" action="show" id="${departmentExtendedAttributeInstance?.department?.id}">${departmentExtendedAttributeInstance?.department?.encodeAsHTML()}</g:link></td>
     44                            <td valign="top" class="value"><g:link controller="departmentDetailed" action="show" id="${departmentExtendedAttributeInstance?.department?.id}">${departmentExtendedAttributeInstance?.department?.encodeAsHTML()}</g:link></td>
    4945                           
    5046                        </tr>
     
    5349                            <td valign="top" class="name">Extended Attribute Type:</td>
    5450                           
    55                             <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${departmentExtendedAttributeInstance?.extendedAttributeType?.id}">${departmentExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
     51                            <td valign="top" class="value"><g:link controller="extendedAttributeTypeDetailed" action="show" id="${departmentExtendedAttributeInstance?.extendedAttributeType?.id}">${departmentExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
    5652                           
    5753                        </tr>
Note: See TracChangeset for help on using the changeset viewer.