Changeset 1517


Ignore:
Timestamp:
Jan 20, 2012, 11:01:16 AM (11 years ago)
Author:
Nicklas Nordborg
Message:

References #350: Blood referral form registration wizard

Added form for blood registration. It is more or less the same as the personal registration form. The differences are in the third step that have input fields for sampling date, freezer date, and serum/plasma.

There is not yet a servlet for loading/storing information. Step 1 and 2 use the personal information servlet.

Re-organized the index page into 3 sections and added different icons for the different wizards.

Location:
extensions/net.sf.basedb.reggie/trunk/resources
Files:
7 added
1 edited

Legend:

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

    r1472 r1517  
    1717  import="net.sf.basedb.clients.web.Base"
    1818  import="net.sf.basedb.clients.web.util.HTML"
     19  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
    1920  import="net.sf.basedb.util.Values"
    2021  import="java.util.List"
     
    2627final String ID = sc.getId();
    2728final float scale = Base.getScale(sc);
     29final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
    2830DbControl dc = null;
    2931try
     
    120122      {
    121123        %>
    122         <dt>
     124        <dt style="border-top: 1px solid #999999; padding-top: 4px;">
    123125          <table border="0" cellspacing="0" cellpadding="0">
    124126          <tr>
     
    142144          <table border="0" cellspacing="0" cellpadding="0">
    143145          <tr>
    144             <td><base:icon image="file.gif" style="padding-right: 4px;"/></td>
     146            <td><base:icon image="<%=home + "/images/blood.png" %>" style="padding-right: 4px;"/></td>
     147            <td><a href="bloodform.jsp?ID=<%=ID%>">Blood referral form registration wizard</a></td>
     148          </tr>
     149          </table>
     150        </dt>
     151        <dd>
     152          <ul>
     153          <li>Register new blood referral forms and patients.
     154          <li>Update information for existing blood referral forms.
     155          </ul>
     156        </dd>
     157        <%
     158      }
     159      if (isPatientCurator || isAdmin)
     160      {
     161        %>
     162        <dt>
     163          <table border="0" cellspacing="0" cellpadding="0">
     164          <tr>
     165            <td><base:icon image="<%=home+"/images/consent.png" %>" style="padding-right: 4px;"/></td>
     166            <td><a href="consentform.jsp?ID=<%=ID%>">Consent form registration wizard</a></td>
     167          </tr>
     168          </table>
     169        </dt>
     170        <dd>
     171          <ul>
     172          <li>Register consent forms.
     173          </ul>
     174        </dd>
     175        <%
     176      }
     177      if (isPatientCurator || isAdmin)
     178      {
     179        %>
     180        <dt>
     181          <table border="0" cellspacing="0" cellpadding="0">
     182          <tr>
     183            <td><base:icon image="<%=home+"/images/pdffile.png" %>" style="padding-right: 4px;"/></td>
    145184            <td><a href="refform.jsp?ID=<%=ID%>">Referral form registration wizard</a></td>
    146185          </tr>
     
    154193        <%
    155194      }
    156       if (isPatientCurator || isAdmin)
    157       {
    158         %>
    159         <dt>
    160           <table border="0" cellspacing="0" cellpadding="0">
    161           <tr>
    162             <td><base:icon image="file.gif" style="padding-right: 4px;"/></td>
    163             <td><a href="consentform.jsp?ID=<%=ID%>">Consent form registration wizard</a></td>
    164           </tr>
    165           </table>
    166         </dt>
    167         <dd>
    168           <ul>
    169           <li>Register consent forms.
    170           </ul>
    171         </dd>
    172         <%
    173       }
    174195      if (hasCreateSamplePermission)
    175196      {
    176197        %>
    177         <dt>
    178           <table border="0" cellspacing="0" cellpadding="0">
    179           <tr>
    180             <td><base:icon image="file.gif" style="padding-right: 4px;"/></td>
     198        <dt style="border-top: 1px solid #999999; padding-top: 4px;">
     199          <table border="0" cellspacing="0" cellpadding="0">
     200          <tr>
     201            <td><base:icon image="<%=home+"/images/specimen.png" %>" style="padding-right: 4px;"/></td>
    181202            <td><a href="specimentube.jsp?ID=<%=ID%>">Specimen tube registration wizard</a></td>
    182203          </tr>
     
    197218          <table border="0" cellspacing="0" cellpadding="0">
    198219          <tr>
    199             <td><base:icon image="file.gif" style="padding-right: 4px;"/></td>
     220            <td><base:icon image="<%=home+"/images/partition.png" %>" style="padding-right: 4px;"/></td>
    200221            <td><a href="partitionform.jsp?ID=<%=ID%>">Partition registration wizard</a></td>
    201222          </tr>
Note: See TracChangeset for help on using the changeset viewer.