

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Entry</title>
    </head>
    <body>
        <div class="nav">
            <h1>Show Entry</h1>
        </div>
        <div class="body">
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:entryInstance, field:'id')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Task:</td>
                            
                            <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${entryInstance?.task?.id}">${entryInstance?.task?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Comment:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:entryInstance, field:'comment')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date Done:</td>
                            
                            <td valign="top" class="value">
                                <g:formatDate date="${entryInstance.dateDone}" format="EEE, dd-MMM-yyyy"/>
                            </td>
                            
                        </tr>

                        <g:if test="${entryInstance.productionReference}">
                            <tr class="prop">
                                <td valign="top" class="name">Production:</td>

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

                            </tr>
                        </g:if>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Duration:</td>
                            <td valign="top" class="value">${entryInstance.durationHour}h : ${entryInstance.durationMinute}min</td>
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date Entered:</td>
                            
                            <td valign="top" class="value">
                                <g:formatDate date="${entryInstance.dateEntered}" format="EEE, dd-MMM-yyyy @ HH:mm"/>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Entered By:</td>
                            
                            <td valign="top" class="value">${entryInstance?.enteredBy?.encodeAsHTML()}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Entry Type:</td>
                            
                            <td valign="top" class="value">${entryInstance?.entryType?.encodeAsHTML()}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${entryInstance?.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>
