Changeset 3811


Ignore:
Timestamp:
Mar 23, 2016, 8:53:33 AM (6 years ago)
Author:
Nicklas Nordborg
Message:

References #861: YellowLabel? tracking wizard

Added linked icons to the regular BASE view/edit pages for "RNA", "Library" and "Raw bioassay".

Location:
extensions/net.sf.basedb.reggie/trunk/resources/yellowlabel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/yellowlabel/list.js

    r3810 r3811  
    108108      html += '<td>'+Reggie.reformatDate(sp.SamplingDate)+'</td>';
    109109      html += '<td>'+Reggie.reformatDate(sp.ArrivalDate)+'</td>';
    110       html += '<td class="dottedleft">'+(rna ? Reggie.reformatDate(rna.QiacubeDate):'')+'</td>';
    111       html += '<td class="dottedleft">'+(lib ? Reggie.reformatDate(lib.creationDate):'')+'</td>';
    112       html += '<td class="dottedleft">'+(raw ? Reggie.reformatDate(raw.creationDate):'')+'</td>';
     110      html += '<td class="dottedleft">'+(rna ? Reggie.reformatDate(rna.QiacubeDate)+yellow.asItemLink(rna, 'EXTRACT'):'')+'</td>';
     111      html += '<td class="dottedleft">'+(lib ? Reggie.reformatDate(lib.creationDate)+yellow.asItemLink(lib, 'EXTRACT'):'')+'</td>';
     112      html += '<td class="dottedleft">'+(raw ? Reggie.reformatDate(raw.creationDate)+yellow.asItemLink(raw, 'RAWBIOASSAY'):'')+'</td>';
    113113      html += '<td class="dottedleft">'+(pilotReport ? Reggie.reformatDate(pilotReport.lastUpdatedDate):'') + yellow.asFileLink(pilotReport, 'pdffile.png')+'</td>';
    114114      html += '</tr>';
     
    227227  }
    228228 
     229  yellow.asItemLink = function(item, itemType)
     230  {
     231    var link = '';
     232    if (item)
     233    {
     234      link = '<span class="link linked-item" data-item-type="'+itemType+'" data-item-id="'+item.id+'"><img src="../../../images/edit.png"></span>';
     235    }
     236    return link;
     237  }
     238 
    229239  yellow.asFileLink = function(file, icon)
    230240  {
     
    232242    if (file)
    233243    {
    234       link = '<span class="link linked-file" data-file-id="'+file.id+'"><img src="'+home+'/images/'+icon+'" style="margin-left: 2px;"></span>';
     244      link = '<span class="link linked-file" data-file-id="'+file.id+'"><img src="'+home+'/images/'+icon+'"></span>';
    235245    }
    236246    return link;
  • extensions/net.sf.basedb.reggie/trunk/resources/yellowlabel/list.jsp

    r3810 r3811  
    5858#specimenTable tbody td
    5959{
    60   padding-top: 1px;
    61   padding-bottom: 1px;
     60  padding-top: 3px;
     61  padding-bottom: 3px;
    6262}
    6363
     
    7777}
    7878
    79 #specimenTable .case-summary
    80 {
    81   margin-left: 4px;
    82 }
    83 
    8479.completed
    8580{
     
    9489  background-color: #F8F0FF;
    9590}
     91
     92.linked-item img, .linked-file img, #specimenTable .case-summary
     93{
     94  float: right;
     95  padding-right: 3px;
     96}
     97
    9698</style>
    9799</base:head>
Note: See TracChangeset for help on using the changeset viewer.