Browse Source

Add informative tooltips to the upload form

pjc 6 years ago
parent
commit
2bffed6b3f
3 changed files with 23 additions and 22 deletions
  1. 22
    22
      classes/torrent_form.class.php
  2. BIN
      static/common/symbols/donor.png
  3. 1
    0
      static/common/symbols/donor.png

+ 22
- 22
classes/torrent_form.class.php View File

@@ -115,11 +115,11 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
115 115
 <?    if ($this->NewTorrent) { ?>
116 116
     <table cellpadding="3" cellspacing="1" border="0" class="layout" width="100%">
117 117
       <tr>
118
-        <td class="label">Torrent File</td>
118
+        <td class="label tooltip" title="Use the above announce URL and set the private flag in your BitTorrent client">Torrent File</td>
119 119
         <td><input id="file" type="file" name="file_input" size="50" /></td>
120 120
       </tr>
121 121
       <tr>
122
-        <td class="label">Type</td>
122
+        <td class="label tooltip" title="What alphabet the sequence uses, n.b., plasmids fit in the Other category">Type</td>
123 123
         <td>
124 124
           <select id="categories" name="type" onchange="Categories()"<?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
125 125
 <?
@@ -200,7 +200,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
200 200
     <table cellpadding="3" cellspacing="1" border="0" class="layout slice" width="100%">
201 201
 <? if ($this->NewTorrent) { ?>
202 202
       <tr id="javdb_tr">
203
-        <td class="label tooltip" title='RefSeq accession number, e.g., NM_000202.8'>Accession Number</td>
203
+        <td class="label tooltip" title="RefSeq accession number, e.g., NM_001183340.1">Accession Number</td>
204 204
         <td>
205 205
           <input type="text" id="catalogue" name="catalogue" size="10" value="<?=display_str($Torrent['CatalogueNumber']) ?>" <?=$this->Disabled?>/>
206 206
 <? if (!$this->DisabledFlag) { ?>
@@ -227,19 +227,19 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
227 227
         </td>
228 228
       </tr>
229 229
       <tr id="title_tr">
230
-        <td class="label">Sequence Name</td>
230
+        <td class="label tooltip" title="FASTA definition line, e.g., Alcohol dehydrogenase ADH1">Sequence Name</td>
231 231
         <td><input type="text" id="title" name="title" size="60" value="<?=display_str($Torrent['Title']) ?>" <?=$this->Disabled?>/></td>
232 232
       </tr>
233 233
       <tr id="title_rj_tr">
234
-        <td class="label">Organism</td>
234
+        <td class="label tooltip" title="FASTA organism line binomial nomenclature, e.g., Saccharomyces cerevisiae">Organism</td>
235 235
         <td><input type="text" id="title_rj" name="title_rj" size="60" value="<?=display_str($Torrent['TitleRJ']) ?>" <?=$this->Disabled?>/></td>
236 236
       </tr>
237 237
       <tr id="title_jp_tr">
238
-        <td class="label">Strain/Variety</td>
238
+        <td class="label tooltip" title="FASTA organism line if applicable, e.g., S288C">Strain/Variety</td>
239 239
         <td><input type="text" id="title_jp" name="title_jp" size="60" value="<?=display_str($Torrent['TitleJP']) ?>" <?=$this->Disabled?>/></td>
240 240
       </tr>
241 241
       <tr id="idols_tr">
242
-        <td class="label">Collaborator(s)</td>
242
+        <td class="label tooltip" title="FASTA authors line, e.g., Robert K. Mortimer and David Schild">Collaborator(s)</td>
243 243
         <td id="idolfields">
244 244
 <?      if (!empty($Torrent['Artists'])) {
245 245
           foreach ($Torrent['Artists'] as $Num => $Artist) { ?>
@@ -255,20 +255,20 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
255 255
         </td>
256 256
       </tr>
257 257
       <tr id="studio_tr">
258
-        <td class="label">Department/Lab</td>
258
+        <td class="label tooltip" title="Who produced the sequence, e.g., Lawrence Berkeley Laboratory">Department/Lab</td>
259 259
         <td><input type="text" id="studio" name="studio" size="60" value="<?=display_str($Torrent['Studio']) ?>" <?=$this->Disabled?>/></td>
260 260
       </tr>
261 261
       <tr id="series_tr">
262
-        <td class="label">Location</td>
262
+        <td class="label tooltip" title="Their physical location, e.g., Berkeley, CA">Location</td>
263 263
         <td><input type="text" id="series" name="series" size="60" value="<?=display_str($Torrent['Series']) ?>" <?=$this->Disabled?>/></td>
264 264
       </tr>
265 265
       <tr id="year_tr">
266
-        <td class="label">Year</td>
266
+        <td class="label tooltip" title="What year they published the sequence in">Year</td>
267 267
         <td><input type="text" id="year" name="year" maxlength="4" size="5" value="<?=display_str($Torrent['Year']) ?>" <?=$this->Disabled?>/></td>
268 268
       </tr>
269 269
 <? } ?>
270 270
       <tr id="media_tr">
271
-        <td class="label">Platform</td>
271
+        <td class="label tooltip" title="What class of sequencing technology they used">Platform</td>
272 272
         <td>
273 273
           <select name="media">
274 274
             <option>---</option>
@@ -285,7 +285,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
285 285
         </td>
286 286
       </tr>
287 287
       <tr id="archive_tr">
288
-        <td class='label'>Archive</td>
288
+        <td class="label tooltip" title="How the data is archived and compressed">Archive</td>
289 289
         <td>
290 290
           <select name='archive'>
291 291
             <option>---</option>
@@ -302,7 +302,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
302 302
         </td>
303 303
       </tr>
304 304
       <tr id="container_tr">
305
-        <td class="label">Format</td>
305
+        <td class="label tooltip" title="What file format the sequence is in">Format</td>
306 306
         <td>
307 307
           <select name="container">
308 308
             <option>---</option>
@@ -319,7 +319,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
319 319
         </td>
320 320
       </tr>
321 321
       <tr id="codec_tr">
322
-        <td class="label">License</td>
322
+        <td class="label tooltip" title="What license the collaborators released the data under">License</td>
323 323
         <td>
324 324
           <select name="codec">
325 325
             <option>---</option>
@@ -336,7 +336,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
336 336
         </td>
337 337
       </tr>
338 338
       <tr id="resolution_tr">
339
-        <td class="label">Assembly Level</td>
339
+        <td class="label tooltip" title="How complete the sequence data is">Assembly Level</td>
340 340
         <td>
341 341
           <select id="ressel" name="ressel" onchange="SetResolution()">
342 342
             <option value="">---</option>
@@ -362,7 +362,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
362 362
       </tr>
363 363
 <?    if ($this->NewTorrent) { ?>
364 364
       <tr id="tags_tr">
365
-        <td class="label tooltip" title="Comma seperated list of tags">Tags</td>
365
+        <td class="label tooltip" title="Comma-seperated list of tags, n.b., use vanity.house for data you produced">Tags</td>
366 366
         <td>
367 367
 <?
368 368
   $GenreTags = G::$Cache->get_value('genre_tags');
@@ -387,12 +387,12 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
387 387
         </td>
388 388
       </tr>
389 389
       <tr id="cover_tr">
390
-        <td class="label">Picture</td>
390
+        <td class="label tooltip" title="A meaningful picture, e.g., of the specimen">Picture</td>
391 391
         <td><input type="text" id="image" name="image" size="60" value="<?=display_str($Torrent['Image']) ?>"<?=$this->Disabled?> /></td>
392 392
       </tr>
393 393
 <? if (!$this->DisabledFlag && $this->NewTorrent) { ?>
394 394
       <tr id="screenshots_tr">
395
-        <td class="label">Publications</td>
395
+        <td class="label tooltip" title="Relevant publications that use the data">Publications</td>
396 396
         <td>
397 397
           <textarea rows="8" cols="60" name="screenshots" id="screenshots"><?=display_str($Torrent['Screenshots'])?></textarea>
398 398
           <p>Enter up to 10 links to studies for the torrent, one per line. The system will automatically remove malformed or invalid links, as well as any links after the 10th. Remember to consult the <a href="/rules.php?p=upload#h1.4">rules for adding publications</a>.</p>
@@ -400,7 +400,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
400 400
       </tr>
401 401
 <? } ?>
402 402
 <tr id="group_desc_tr">
403
-        <td class="label">Torrent Group Description</td>
403
+        <td class="label tooltip" title="General info about the gene or protein's function or significance">Torrent Group Description</td>
404 404
         <td>
405 405
           <p class="min_padding notes"></p>
406 406
 <?php new TEXTAREA_PREVIEW('album_desc', 'album_desc', display_str($Torrent['GroupDescription']), 60, 8, !$this->DisabledFlag, !$this->DisabledFlag, false, array($this->Disabled)); ?>
@@ -408,20 +408,20 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
408 408
       </tr>
409 409
 <?    } ?>
410 410
       <tr id="release_desc_tr">
411
-        <td class="label">Torrent Description (optional)</td>
411
+        <td class="label tooltip" title="Specific info about what protocols and equipment helped generate the data">Torrent Description (optional)</td>
412 412
         <td>
413 413
           <p class="min_padding notes"></p>
414 414
 <?php new TEXTAREA_PREVIEW('release_desc', 'release_desc', display_str($Torrent['TorrentDescription']??''), 60, 8); ?>
415 415
         </td>
416 416
       </tr>
417 417
       <tr id="censored_tr">
418
-        <td class="label">Aligned Sequence?</td>
418
+        <td class="label tooltip" title="Whether the torrent contains raw reads or alignment data">Aligned Sequence?</td>
419 419
         <td>
420 420
           <input type="checkbox" name="censored" value="1" <?=(($Torrent['Censored'] ?? 0) ? 'checked ' : '')?>/>
421 421
         </td>
422 422
       </tr>
423 423
       <tr id="anon_tr">
424
-        <td class="label tooltip" title="Checking this will hide your username from other users on the torrent details page. Stats will still be attributed to you.">Upload Anonymously?</td>
424
+        <td class="label tooltip" title="Hide your username from other users on the torrent details page">Upload Anonymously?</td>
425 425
         <td><input type="checkbox" name="anonymous" value="1" <?=(($Torrent['Anonymous'] ?? false) ? 'checked ' : '')?>/></td>
426 426
       </tr>
427 427
     </table>

BIN
static/common/symbols/donor.png View File


+ 1
- 0
static/common/symbols/donor.png View File

@@ -0,0 +1 @@
1
+/var/www/static/common/symbols/nipple.png

Loading…
Cancel
Save