Changeset 5530


Ignore:
Timestamp:
08/06/14 15:47:14 (10 years ago)
Author:
Twan Goosen
Message:

Changed static notes into an 'extra' info icon that toggles the presence of additional help/instructions. TODO: also for creators, resources, generatedby
Refs #584

Location:
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main
Files:
1 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/wizard/CreateVirtualCollectionWizard$GeneralStep.html

    r5529 r5530  
    99            <div style="display: none" wicket:id="deleteKeywordDialog"></div>
    1010            <fieldset>
    11                 <div class="notes">
    12                     <h4>Provide general information</h4>
    13                     <p>
    14                         Use the form to fill in the general information for this virtual collection.
    15                         Name and type are mandatory. It is highly recommended to write a short description,
    16                         add one or more keywords and select a purpose and a reproducibility indication.
    17                     </p>
    18                     <p class="last">
    19                         Hover over the labels of the individual fields to get more information.
    20                     </p>
     11                <div class="extrainfo">
     12                    <a href="#" class="extrainfotoggle"><span>[info]</span></a>
     13                    <div class="notes">
     14                        <h4>Provide general information</h4>
     15                        <p>
     16                            Use the form to fill in the general information for this virtual collection.
     17                            Name and type are mandatory. It is highly recommended to write a short description,
     18                            add one or more keywords and select a purpose and a reproducibility indication.
     19                        </p>
     20                        <p class="last">
     21                            Hover over the labels of the individual fields to get more information.
     22                        </p>
     23                    </div>
    2124                </div>
    2225                <div class="required">
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/wizard/CreateVirtualCollectionWizard.java

    r5529 r5530  
    6666   
    6767    private final static ResourceReference TOOLTIP_JAVASCRIPT_REFERENCE =
    68             new JavascriptResourceReference(CreateVirtualCollectionWizard.class, "tooltips.js");
     68            new JavascriptResourceReference(CreateVirtualCollectionWizard.class, "wizardhelp.js");
    6969
    7070    @Override
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/wizard/wizardhelp.js

    r5529 r5530  
    1616 */
    1717
    18 /* jQuery script to activate tooltip on annotated labels */
    1918$(document).ready(function() {
     19    /* activate tooltip on annotated labels */
    2020    $(".tooltipparent").each(function() {
    2121        var tooltip = '#' + $(this).attr('id') + ' .tooltip';
     
    2727        $(".tooltip", this).hide();
    2828    });
     29
     30    /* toggle extra help information*/
     31    $(".extrainfotoggle").click(function(event) {
     32        event.preventDefault();
     33        $(this).parent(".extrainfo").children(".notes").slideToggle();
     34    });
     35    $(".extrainfo .notes").hide();
     36    $(".extrainfotoggle").qtip({
     37        content: 'Help',
     38        show: 'mouseover',
     39        hide: 'mouseout'
     40    });
    2941});
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/webapp/css/vcr.css

    r5529 r5530  
    262262}
    263263
     264form.wizard .extrainfo {
     265    margin-left: 50px;
     266}
     267
     268form.wizard .extrainfo a.extrainfotoggle {
     269    display: inline-block;
     270    float: right;
     271    vertical-align: top;
     272    width: 16px;
     273    height: 16px;
     274    background-image: url(about-128.png); /* from http://www.iconsdb.com/ */
     275    background-size: 16px 16px;
     276    background-repeat: no-repeat;
     277}
     278
     279form.wizard .extrainfo a.extrainfotoggle span {
     280    display: none;
     281}
     282
    264283form.wizard div.notes {
    265   float: right;
    266   width: 198px;
     284  display: inline-block;
     285  width: 80%;
    267286  height: auto;
    268   margin: 0 0 10px 10px;
     287  margin: 0 0 10px 70px;
    269288  padding: 5px;
    270289  border: 1px solid #666666;
Note: See TracChangeset for help on using the changeset viewer.