Changeset 172


Ignore:
Timestamp:
Feb 4, 2010, 5:50:31 PM (13 years ago)
Author:
duh
Message:
  • added table-editor.js which makes tables multi editable (see the wizard subjects page and drag a selection over table rows and start editting)
  • updated css and templates
Location:
trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BaseFilters.groovy

    r162 r172  
    11/**
    22 * Base Filters
    3  * @Author  Jeroen Wesbeek
    4  * @Since   20091026
    5  * @see    main.gsp
    6  * @see    http://grails.org/Filters
     3 * @Author Jeroen Wesbeek
     4 * @Since 20091026
     5 * @see main.gsp
     6 * @see http://grails.org/Filters
    77 * @Description
    88 *
     
    1515 */
    1616class BaseFilters {
    17     // define filters
    18     def filters = {
    19         defineStyle(controller:'*', action:'*') {
    20             // before every execution
    21             before = {
    22                 // set the default style in the session
    23                 if (!session.style) {
    24                     session.style = 'default_style'
     17        // define filters
     18        def filters = {
     19                defineStyle(controller: '*', action: '*') {
     20                        // before every execution
     21                        before = {
     22                                // set the default style in the session
     23                                if (!session.style) {
     24                                        session.style = 'default_style'
     25                                }
     26                        }
    2527                }
    26             }
    2728        }
    28     }
    2929}
    3030
  • trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy

    r163 r172  
    128128                                        error()
    129129                                }
     130                                println params
    130131                        }.to "groups"
    131132                        on("previous") {
  • trunk/grails-app/views/wizard/index.gsp

    r145 r172  
    2222        <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.qtip-1.0.0-rc3.min.js')}"></script>
    2323        <script type="text/javascript" src="${resource(dir: 'js', file: 'swfobject.js')}"></script>
     24        <script type="text/javascript" src="${resource(dir: 'js', file: 'grouping.js')}"></script>
     25        <script type="text/javascript" src="${resource(dir: 'js', file: 'table-editor.js')}"></script>
    2426        <script type="text/javascript" src="${resource(dir: 'js', file: 'wizard.js')}"></script>
    2527</head>
  • trunk/grails-app/views/wizard/pages/_subjects.gsp

    r163 r172  
    2727                <div class="column">species</div>
    2828                <wizard:templateColumnHeaders template="${study.template}" class="column" />
    29                 <wizard:templateColumnHeaders template="${study.template}" class="column" />
    3029        </div>
    3130<g:each var="subject" status="i" in="${subjects}">
     
    3736                </div>
    3837                <wizard:templateColumns id="${i}" template="${study.template}" class="column" />
    39                 <wizard:templateColumns id="${i}" template="${study.template}" class="column" />
    4038        </div>
    4139</g:each>
  • trunk/web-app/css/wizard.css

    r162 r172  
    148148    font-weight: bold;
    149149    width: auto;
     150    height: 32px;
     151    line-height: 32px;
    150152}
    151153
     
    164166.wizard .table .row {
    165167    display: block;
    166     height: 28px;
     168    height: 32px;
    167169    border-top: 1px solid #8e908f;
    168170    width: auto;
     171}
     172
     173.wizard .table .row input, .wizard .table .row select {
     174    background-color: #fff;
     175}
     176
     177.wizard .table .ui-selected {
     178    background-color: #ffab7b;
     179}
     180
     181.wizard .table .ui-selecting {
     182    background-color: #f2e3bc;
    169183}
    170184
  • trunk/web-app/js/wizard.js

    r164 r172  
    3232// @see _wizard.gsp, _navigation.gsp, _subjects.gsp
    3333function onWizardPage() {
    34     // attach help tooltips
    35     //insertYoutubePlayers();
    3634    attachHelpTooltips();
    3735    attachDatePickers();
     36
     37    // SUBJECTS
    3838    attachTableEvents();
    39     attachGroupingEvents();
    40 
    4139    resizeWizardTable();
    4240    attachSubjectSlider();
     41    new TableEditor().init('div.table','div.row','div.column');
     42   
     43    // GROUPING
     44    //attachGroupingEvents();
    4345}
    4446
Note: See TracChangeset for help on using the changeset viewer.