Ignore:
Timestamp:
May 23, 2011, 4:40:03 PM (11 years ago)
Author:
Martin Svensson
Message:

References #317. The installation wizzard install new annotations. The new specimentube form is almost complete, some background-functionality is still missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/index.jsp

    r1342 r1372  
    77  import="net.sf.basedb.core.Group"
    88  import="net.sf.basedb.core.DbControl"
     9  import="net.sf.basedb.core.Item"
     10  import="net.sf.basedb.core.Permission"
    911  import="net.sf.basedb.core.SessionControl"
    1012  import="net.sf.basedb.core.SystemItems"
     
    3133  boolean isAdmin = false;
    3234  boolean isPatientCurator = false;
     35  boolean hasCreateSamplePermission = false;
    3336  try
    3437  {
     
    5053  catch (RuntimeException ex)
    5154  {}
     55  try
     56  {
     57    if (sc.hasPermission(Permission.CREATE, Item.SAMPLE))
     58    {
     59      hasCreateSamplePermission = true;
     60    }
     61  }
     62  catch(RuntimeException ex)
     63  {}
    5264%>
    5365<base:page type="default" >
     
    150162        <%
    151163      }
     164      if (hasCreateSamplePermission)
     165      {
     166        %>
     167        <dt>
     168          <table border="0" cellspacing="0" cellpadding="0">
     169          <tr>
     170            <td><base:icon image="file.gif" style="padding-right: 4px;"/></td>
     171            <td><a href="specimentube.jsp?ID=<%=ID%>">Specimen tube registration wizard</a></td>
     172          </tr>
     173          </table>
     174        </dt>
     175        <dd>
     176          <ul>
     177          <li>Register new specimen tubes.
     178          <li>Update existing specimen tubes.
     179          </ul>
     180        </dd>
     181        <%
     182      }
    152183      %>
    153184      </dl>
Note: See TracChangeset for help on using the changeset viewer.