Ignore:
Timestamp:
Feb 2, 2012, 2:10:37 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #1655: GUI improvements

Array section of Array LIMS. This should complete the view pages for all items. Now, it is only the list pages left.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/lims/arrayslides/view_slide.jsp

    r5942 r5944  
    161161  </base:head>
    162162  <base:body>
    163     <p>
    164     <p:path>
    165       <p:pathelement title="Array slides" href="<%="index.jsp?ID="+ID%>" />
    166       <p:pathelement title="<%=HTML.encodeTags(slide.getName())%>" />
    167     </p:path>
     163    <p:path><p:pathelement
     164      title="Array slides" href="<%="index.jsp?ID="+ID%>"
     165      /><p:pathelement title="<%=HTML.encodeTags(slide.getName())%>"
     166      /></p:path>
    168167   
    169     <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false">
     168    <t:tabcontrol
     169      id="main"
     170      subclass="content mastertabcontrol"
     171      active="<%=tab%>" switch="switchTab" remember="false">
    170172    <t:tab id="properties" title="Properties">
    171     <tbl:toolbar
    172       >
    173       <tbl:button
    174         disabled="<%=!writePermission%>"
    175         image="edit.gif"
    176         onclick="editItem()"
    177         title="Edit&hellip;"
    178         tooltip="<%=writePermission ? "Edit this array slide" : "You do not have permission to edit this array slide"%>"
    179       />
    180       <tbl:button
    181         disabled="<%=!deletePermission%>"
    182         image="delete.gif"
    183         onclick="deleteItem()"
    184         title="Delete"
    185         visible="<%=!slide.isRemoved()%>"
    186         tooltip="<%=deletePermission ? "Delete this array slide" : "You do not have permission to delete this array slide"%>"
    187       />
    188       <tbl:button
    189         disabled="<%=!writePermission%>"
    190         image="restore.gif"
    191         onclick="restoreItem()"
    192         title="Restore"
    193         visible="<%=slide.isRemoved()%>"
    194         tooltip="<%=writePermission ? "Restore this array slide" : "You do not have permission to restore this array slide"%>"
    195       />
    196       <tbl:button
    197         disabled="<%=!sharePermission%>"
    198         image="share.gif"
    199         onclick="shareItem()"
    200         title="Share&hellip;"
    201         tooltip="<%=sharePermission ? "Share this array slide to other user, groups and projects" : "You do not have permission to share this array slide"%>"
    202       />
    203       <tbl:button
    204         disabled="<%=!setOwnerPermission%>"
    205         image="take_ownership.png"
    206         onclick="setOwner()"
    207         title="Set owner&hellip;"
    208         tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>"
    209       />
    210       <tbl:button
    211         image="import.gif"
    212         onclick="runPlugin('ImportItem')"
    213         title="Import&hellip;"
    214         tooltip="Import data"
    215         visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>"
    216       />
    217       <tbl:button
    218         image="export.gif"
    219         onclick="runPlugin('ExportItem')"
    220         title="Export&hellip;"
    221         tooltip="Export data"
    222         visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>"
    223       />
    224       <tbl:button
    225         image="runplugin.gif"
    226         onclick="runPlugin('RunPlugin')"
    227         title="Run plugin&hellip;"
    228         tooltip="Run a plugin"
    229         visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
    230       />
    231       <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
    232         wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    233       <tbl:button
    234         image="help.png"
    235         onclick="<%="Main.openHelp('" + ID +"', 'arrayslide.view.properties')"%>"
    236         title="Help&hellip;"
    237         tooltip="Get help about this page"
    238       />
    239       </tbl:toolbar>
    240     <div class="boxedbottom">
    241       <div class="itemstatus">Permissions on this item: <i><%=PermissionUtil.getFullPermissionNames(slide)%></i></div>
    242       <%
    243       if (slide.isRemoved() || slide.isShared())
    244       {
    245         %>
    246         <div class="itemstatus">
     173      <div>
     174      <table class="fullform bottomborder">
     175      <tr>
     176        <th class="itemstatus">
    247177          <base:icon
    248             image="<%=deletePermanentlyPermission ? "deleted.gif" : "deleted_disabled.gif"%>"
    249             onclick="<%=deletePermanentlyPermission ? "deleteItemPermanently()" : null%>"
    250             tooltip="<%=deletePermanentlyPermission ? "Permanently delete this item" : null%>"
    251             visible="<%=isRemoved%>"> This item has been flagged for deletion<br></base:icon>
     178            image="shared.gif"
     179            visible="<%=slide.isShared()%>"
     180            tooltip="This item is shared to other users, groups and/or projects"
     181          />
     182          <base:icon
     183            image="deleted.gif"
     184            onclick="deleteItemPermanently()"
     185            tooltip="This item has been flagged for deletion. Click to delete it now."
     186            enabled="<%=deletePermanentlyPermission %>"
     187            visible="<%=isRemoved%>"
     188          />
    252189          <base:icon image="used.gif"
    253190            onclick="showUsingItems()"
    254             tooltip="Show the items that are using this one"
    255             visible="<%=isUsed%>"> This item is used by other items and can't be permanently deleted<br></base:icon>
    256           <base:icon image="shared.gif"
    257             visible="<%=slide.isShared()%>"> This item is shared to other users, groups and/or projects</base:icon>
    258         </div>
    259         <%
    260       }
    261       %>
    262       <table class="form" cellspacing="0">
    263       <tr>
    264         <td class="prompt">Name</td>
     191            tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one"
     192            visible="<%=isRemoved && isUsed%>" />
     193        </th>
     194        <td style="padding: 0px;">
     195          <tbl:toolbar subclass="bottomborder">
     196            <tbl:button
     197              disabled="<%=!writePermission%>"
     198              image="edit.gif"
     199              onclick="editItem()"
     200              title="Edit&hellip;"
     201              tooltip="<%=writePermission ? "Edit this array slide" : "You do not have permission to edit this array slide"%>"
     202            />
     203            <tbl:button
     204              disabled="<%=!deletePermission%>"
     205              image="delete.gif"
     206              onclick="deleteItem()"
     207              title="Delete"
     208              visible="<%=!slide.isRemoved()%>"
     209              tooltip="<%=deletePermission ? "Delete this array slide" : "You do not have permission to delete this array slide"%>"
     210            />
     211            <tbl:button
     212              disabled="<%=!writePermission%>"
     213              image="restore.gif"
     214              onclick="restoreItem()"
     215              title="Restore"
     216              visible="<%=slide.isRemoved()%>"
     217              tooltip="<%=writePermission ? "Restore this array slide" : "You do not have permission to restore this array slide"%>"
     218            />
     219            <tbl:button
     220              disabled="<%=!sharePermission%>"
     221              image="share.gif"
     222              onclick="shareItem()"
     223              title="Share&hellip;"
     224              tooltip="<%=sharePermission ? "Share this array slide to other user, groups and projects" : "You do not have permission to share this array slide"%>"
     225            />
     226            <tbl:button
     227              disabled="<%=!setOwnerPermission%>"
     228              image="take_ownership.png"
     229              onclick="setOwner()"
     230              title="Set owner&hellip;"
     231              tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>"
     232            />
     233            <tbl:button
     234              image="import.gif"
     235              onclick="runPlugin('ImportItem')"
     236              title="Import&hellip;"
     237              tooltip="Import data"
     238              visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>"
     239            />
     240            <tbl:button
     241              image="export.gif"
     242              onclick="runPlugin('ExportItem')"
     243              title="Export&hellip;"
     244              tooltip="Export data"
     245              visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>"
     246            />
     247            <tbl:button
     248              image="runplugin.gif"
     249              onclick="runPlugin('RunPlugin')"
     250              title="Run plugin&hellip;"
     251              tooltip="Run a plugin"
     252              visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
     253            />
     254            <ext:render extensions="<%=invoker%>" context="<%=jspContext%>"
     255              wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
     256            <tbl:button
     257              image="help.png"
     258              onclick="<%="Main.openHelp('" + ID +"', 'arrayslide.view.properties')"%>"
     259              title="Help&hellip;"
     260              tooltip="Get help about this page"
     261            />
     262          </tbl:toolbar>
     263        </td>
     264      </tr>
     265      <tr>
     266        <th>Name</th>
    265267        <td><%=HTML.encodeTags(slide.getName())%></td>
    266268      </tr>
    267269      <tr>
    268         <td class="prompt">Registered</td>
     270        <th>Registered</th>
    269271        <td><%=dateFormatter.format(slide.getEntryDate())%></td>
    270272      </tr>
    271273      <tr>
    272         <td class="prompt">Barcode</td>
     274        <th>Barcode</th>
    273275        <td><%=HTML.encodeTags(slide.getBarcode())%></td>
    274276      </tr>
    275277      <tr>
    276         <td class="prompt">Destroyed</td>
     278        <th>Destroyed</th>
    277279        <td><%=slide.isDestroyed() ? "yes" : "no"%></td>
    278280      </tr>
    279281      <tr>
    280         <td class="prompt">Physical bioassay</td>
     282        <th>Physical bioassay</th>
    281283        <td><base:propertyvalue item="<%=slide%>" property="physicalBioAssay" /></td>
    282284      </tr>
    283285      <tr>
    284         <td class="prompt">Array batch</td>
    285         <td><base:propertyvalue item="<%=slide%>" property="arrayBatch" />
    286         (index: <%=slide.getBatchIndex()%>)
    287         </td>
    288       </tr>
    289       <tr>
    290         <td class="prompt">Array design</td>
     286        <th>Array batch</th>
     287        <td><base:propertyvalue item="<%=slide%>" property="arrayBatch" /></td>
     288      </tr>
     289      <tr>
     290        <th class="subprompt">- index</th>
     291        <td><%=slide.getBatchIndex()%></td>
     292      </tr>
     293      <tr>
     294        <th>Array design</th>
    291295        <td><base:propertyvalue item="<%=slide%>" property="arrayBatch.arrayDesign" /></td>
    292296      </tr>
    293297      <tr>
    294         <td class="prompt">Owner</td>
     298        <th>Owner</th>
    295299        <td><base:propertyvalue item="<%=slide%>" property="owner" /></td>
    296300      </tr>
    297301      <tr>
    298         <td class="prompt">Description</td>
     302        <th>Permissions</th>
     303        <td><%=PermissionUtil.getFullPermissionNames(slide)%></td>
     304      </tr>
     305      <tr>
     306        <th>Description</th>
    299307        <td><%=HTML.niceFormat(slide.getDescription())%></td>
    300308      </tr>
    301309      </table>
     310      </div>
     311     
    302312      <jsp:include page="../../common/anytoany/list_anytoany.jsp">
    303313        <jsp:param name="ID" value="<%=ID%>" />
     
    312322        <jsp:param name="title" value="Shared to" />
    313323      </jsp:include>
    314       </div>
    315324      </t:tab>
    316325     
     
    355364        %>
    356365      </t:tab>
    357       </t:tabcontrol>
     366    </t:tabcontrol>
    358367
    359368  </base:body>
Note: See TracChangeset for help on using the changeset viewer.