Changeset 3828


Ignore:
Timestamp:
Apr 5, 2016, 1:55:00 PM (6 years ago)
Author:
Nicklas Nordborg
Message:

References #861: YellowLabel? tracking wizard

Display 'In progress' for items that exists but doesn't yet have a date (which typically means they are working with this in the lab).

Display 'Missing' in bold red text if there is no registered consent for a specimen.

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

    r3827 r3828  
    122122      html += '<td>'+Reggie.reformatDate(sp.SamplingDate)+'</td>';
    123123      html += '<td>'+Reggie.reformatDate(sp.ArrivalDate)+'</td>';
    124       html += '<td>'+Reggie.reformatDate(sp.ConsentDate)+'</td>';
    125       html += '<td class="dottedleft">'+(rna ? Reggie.reformatDate(rna.QiacubeDate):'')+'</td>';
     124      html += '<td>'+Reggie.reformatDate(sp.ConsentDate, '<span class="missing">Missing</span>')+'</td>';
     125      html += '<td class="dottedleft">'+(rna ? Reggie.reformatDate(rna.QiacubeDate, '<span class="in-progress">In progress</span>'):'')+'</td>';
    126126      html += '<td class="iconcol-2">'+yellow.asItemLink(rna, 'EXTRACT')+yellow.asFlag(rna)+'</td>';
    127       html += '<td>'+(rnaqc ? Reggie.formatNumber(rnaqc.RQS || rnaqc.RIN, '', 1) : '')+'</td>';
    128       html += '<td class="dottedleft">'+(lib ? Reggie.reformatDate(lib.creationDate):'')+'</td>';
     127      html += '<td>'+(rnaqc ? Reggie.formatNumber(rnaqc.RQS || rnaqc.RIN, '', 1) : (rna && rna.QiacubeDate ? '<span class="in-progress">In progress</span>' : ''))+'</td>';
     128      html += '<td class="dottedleft">'+(lib ? Reggie.reformatDate(lib.creationDate, '<span class="in-progress">In progress</span>'):'')+'</td>';
    129129      html += '<td class="iconcol-1">'+yellow.asItemLink(lib, 'EXTRACT')+'</td>';
    130       html += '<td class="dottedleft">'+(raw ? Reggie.reformatDate(raw.creationDate):'')+'</td>';
     130      html += '<td class="dottedleft">'+(raw ? Reggie.reformatDate(raw.creationDate, '<span class="in-progress">In progress</span>'):'')+'</td>';
    131131      html += '<td class="iconcol-1">'+yellow.asItemLink(raw, 'RAWBIOASSAY')+'</td>';
    132132      html += '<td class="dottedleft">'+(pilotReport ? Reggie.reformatDate(pilotReport.lastUpdatedDate):'')+'</td>';
  • extensions/net.sf.basedb.reggie/trunk/resources/yellowlabel/list.jsp

    r3827 r3828  
    7575}
    7676
     77.in-progress
     78{
     79  color: #808080;
     80  font-style: italic;
     81}
     82
     83.missing
     84{
     85  color: #E80000;
     86  font-weight: bold;
     87}
     88
    7789.completed
    7890{
Note: See TracChangeset for help on using the changeset viewer.