

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Asset</title>
        <nav:resources override="true"/>
    </head>
    <body>
        <div class="nav">
            <nav:renderSubItems group="nav"/>
        </div>
        <div class="body">
            <g:render template="/shared/messages" />
            <div class="dialog">
                <table>
                    <tbody>

                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>

                            <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Asset:</td>

                            <td  valign="top" style="text-align:left;" class="value">
                                <g:render template="/shared/assetTree" />
                            </td>

                        </tr>

                            <tr class="prop">
                                <td valign="top" class="name">Description:</td>
                                
                                <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td>
                                
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">Comment:</td>
                                
                                <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'comment')}</td>
                                
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">Is Active:</td>
                                
                                <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td>
                                
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">Section:</td>
                                
                                <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td>
                                
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">Asset Extended Attributes:</td>
                                
                                <td  valign="top" style="text-align:left;" class="value">
                                    <ul>
                                    <g:each var="a" in="${assetInstance.assetExtendedAttributes}">
                                        <li><g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
                                    </g:each>
                                    </ul>
                                </td>
                                
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">Maintenance Actions:</td>
                                
                                <td  valign="top" style="text-align:left;" class="value">
                                    <ul>
                                    <g:each var="m" in="${assetInstance.maintenanceActions}">
                                        <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
                                    </g:each>
                                    </ul>
                                </td>
                                
                            </tr>
                        
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${assetInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
