<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="main" />
<title>Start</title>
<nav:resources override="true"/>
<resource:tabView skin="tabviewCustom" />
</head>
    <body>
        <div class="nav">
            <nav:renderSubItems group="nav"/>
        </div>
        <div class="body">
            <g:if test="${flash.message}">
                <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${appCore}">
                <div class="errors">
                    <g:renderErrors bean="${appCore}" as="list" />
                </div>
            </g:hasErrors>

            <richui:tabView id="tabView">

                <richui:tabLabels>
                    <richui:tabLabel selected="true" title="Quick Links" />
                    <richui:tabLabel selected="${0}" title="Reports" />
                    <richui:tabLabel selected="${0}" title="Options" />
                    <richui:tabLabel selected="${0}" title="About" />
                </richui:tabLabels>

                <richui:tabContents>

<!-- Tasks tab -->
                    <richui:tabContent>
                        <br />
                        <br />
                        <div class="dialog">
                            <table>
                                <tbody>
                        
                                    <tr class="prop">
                                        <td valign="top" class="name">
                                            <label>My Tasks:</label>
                                        </td>
                                        <td valign="top" class="value">
                                            <g:link controller="taskDetailed" 
                                                            action="searchMyTodays">
                                                            Today's
                                            </g:link>
                                            <br />
                                            <g:link controller="taskDetailed" 
                                                            action="searchMyInTheLastWeek">
                                                            In the last week
                                            </g:link>
                                        </td>
                                    </tr>
                        
                                    <tr class="prop">
                                        <td valign="top" class="name">
                                            <label>Tasks:</label>
                                        </td>
                                        <td valign="top" class="value">
                                            <g:link controller="taskDetailed" 
                                                            action="searchTodays">
                                                            Today's
                                            </g:link>
                                            <br />
                                            <g:link controller="taskDetailed" 
                                                            action="searchInTheLastWeek">
                                                            In the last week
                                            </g:link>
                                        </td>
                                    </tr>
                                    
                                </tbody>
                            </table>
                        </div>
                        <br />
                        <br />
                    </richui:tabContent>
<!-- End Tasks tab -->

<!-- Reports tab -->
                    <richui:tabContent>
                        <br />
                        <br />
                        Static reports
                    </richui:tabContent>
<!-- End Reports tab  -->

<!-- Options tab -->
                    <richui:tabContent>
                        <br />
                        <br />
                        <a href="${createLink(action:'changePassword')}">Change Password</a>
                        <br />
                        <br />
                        <a href="${createLink(action:'changeSessionTimeout')}">Change Session Timeout</a>
                    </richui:tabContent>
<!-- End Options tab -->

<!-- About tab -->
                    <richui:tabContent>
                        <g:render template="/about" />
                    </richui:tabContent>
<!-- End About tab -->

                </richui:tabContents>
            </richui:tabView>
            
        </div>
    </body>
</html>
