Changeset 41


Ignore:
Timestamp:
Nov 2, 2009, 1:05:54 PM (10 years ago)
Author:
keesvb
Message:

changed index and moved it to Home controller/view structure, put query and my studies in the top menu

Location:
trunk
Files:
6 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/UrlMappings.groovy

    r16 r41  
    66                  }
    77          }
    8       "/"(view:"/index")
     8      "/"(controller: 'home', action: 'index')
    99          "500"(view:'/error')
    1010        }
  • trunk/grails-app/views/common/_topnav.gsp

    r37 r41  
    33    <ul class="topnav">
    44      <li><g:link url="/${meta(name: 'app.name')}/">Home</g:link></li>
     5      <li><g:link controller="query" action="index">Query database</g:link></li>
     6<n:isLoggedIn>
     7      <li><g:link controller="study" action="list">My studies</g:link></li>
     8</n:isLoggedIn>
    59      <li>
    610        <a href="#">Scaffolded controllers</a>
  • trunk/grails-app/views/home/index.gsp

    r40 r41  
    33      <title>Generic Study Capture Framework</title>
    44      <meta name="layout" content="main" />
    5       <g:javascript library="jquery"/>
    6       <link rel="stylesheet" href="${createLinkTo(dir:'css/jquery-ui', file: 'jquery-ui-1.7.2.custom.css')}"/>
    7       <script src="${createLinkTo(dir: 'js', file: 'jquery-ui-1.7.2.custom.min.js')}" type="text/javascript"></script>
    8       <script type="text/javascript">
    9         $(function() {
    10                 $("#tabs").tabs();
    11         });
    12       </script>
    135    </head>
    146    <body>
    15 
    16     <div id="tabs">
    17       <ul>
    18         <li><a href="#tab-query">Query database</a></li>
    19         <li><a href="#tab-add">My studies</a></li>
    20       </ul>
    21       <div id="tab-query">
    22         <g:form url="[action:'list',controller:'study']">
    23           <input type="hidden" name="targetUri" value="${targetUri}" />
    24           <label class="grey" for="querytext">Search for:</label>
    25           <input class="field" type="text" name="querytext" id="querytext" size="40" />
    26           <input type="submit" name="submit" value="Query"/>
    27         </g:form>
    28         <p><a href="<g:createLink url="[action:'create',controller:'query']"/>">Create advanced query</a></p>
    29         <p>
    30         <n:isNotLoggedIn>
    31         <small>To query private studies, please login above.</small>
    32         </n:isNotLoggedIn>
    33         </p>
    34       </div>
    35       <div id="tab-add">
    36         <n:isNotLoggedIn>
    37         To add or change study data, please login above.
    38         </n:isNotLoggedIn>
    39       </div>
    40     </div>
    41 
    42     <span style="border: 1px solid red;">
    43       use these credentials to log in: Administrator ( admin / admiN123! ), User ( user / useR123! )
    44     </span>
     7      Welcome to GSCF. At this moment, there are ${studyCount} studies in the database.
     8      <p><n:isNotLoggedIn>
     9        N.B. To query private studies, and to add or change study data, please login above.
     10      </n:isNotLoggedIn></p>
     11      <p><span style="border: 1px solid red;">
     12        use these credentials to log in: Administrator ( admin / admiN123! ), User ( user / useR123! )
     13      </span></p>
    4514  </body>
    4615</html>
Note: See TracChangeset for help on using the changeset viewer.