]> git.donarmstrong.com Git - neurodebian.git/blobdiff - survey/survey.rst
jsut copy paste for future ratings redone fig
[neurodebian.git] / survey / survey.rst
index a247b5414dcf1302f0d7cabb56b6f0b942388b3e..18a8a7b2ec46e654b20be0ec035c0fa80852a1d2 100644 (file)
@@ -5,7 +5,7 @@ Scientific software usage in neuroscience research
 This survey should take about five minutes. Immediately after submission you
 will be presented with some statistics on previous responses. Please try to
 answer as many questions as you can, but don't worry if you cannot answer all
-of them.
+of them. For feedback email team@neuro.debian.net
 
 .. raw:: html
 
@@ -16,6 +16,7 @@ of them.
    // prepare the form when the DOM is ready
    $(document).ready(function() {
        var options = {
+           beforeSubmit:  displayStatus,
            success:       showResponse,  // post-submit callback
            // other available options:
            url: "/cgi-bin/surveycollector.cgi",
@@ -33,11 +34,18 @@ of them.
        }); 
    }); 
 
+   // pre-submit callback 
+   function displayStatus(formData, jqForm, options) { 
+       $('#server_response').html("<emph>Sending survey data. This may take a few moments...</emph>");
+       return true; 
+   } 
+
    function showResponse(data, statusText, xhr, $form)  {
        // reset form if server reports success
        if (data.success == true) {
            $('#nss_survey').resetForm();
-           $('#server_response').html("All good");
+           $('#submit_button').hide();
+           $('#server_response').html("<p><em>Thanks for participating in this survey.</em></p>" + data.results)
        } else {
            $('#server_response').html("");
            alert(data.message);
@@ -114,7 +122,7 @@ What type of data are you working with? Please check all items that apply.
    <input type="checkbox" name="bg_datamod" value="pet" />PET/SPECT<br />
    <input type="checkbox" name="bg_datamod" value="ephys" />Electrophysiology<br />
    <input type="checkbox" name="bg_datamod" value="spectro" />Microspectroscopy<br />
-   <input type="checkbox" name="bg_datamod" value="other" />
+   <input type="checkbox" name="bg_datamod" value="otherdm" />
    <input name="bg_datamod_other" type="text" size="20" maxlength="40">
    </td></tr></table>
    </td></tr><tr class="oddrow"><td>
@@ -475,18 +483,19 @@ systems on one machine at the same time.
    <tr class="oddrow">
    <td class="task">
 
-How often do you use virtual machines for your research purposes?
+What fraction of your research activity time do you spend in a virtual
+environment as opposed to any other environment?
 
 .. raw:: html
 
    </td><td class="response">
    <select name="virt_time" size="1">
    <option value="none" selected="selected" label="Select an option">Select an option</option>
-   <option value="never" label="Never">Never</option>
-   <option value="occasionally" label="Occasionally">Occasionally</option>
-   <option value="often" label="Often">Often</option>
-   <option value="always" label="Exclusively">Exclusively</option>
-   </select><div style="font-size:60%">(skip the remaining questions of this section if "never")</div>
+   <option value="notime" label="None/I don't use this">None/I don't use this</option>
+   <option value="little" label="Less then half of the time">Less then half of the time</option>
+   <option value="most" label="More than half of the time">More than half of the time</option>
+   <option value="always" label="All of the time">All of the time</option>
+   </select>
    </td></tr><tr><td class="task">
 
 Which products for virtualization are you using?
@@ -503,7 +512,7 @@ Which products for virtualization are you using?
    <input type="checkbox" name="virt_prod" value="virtualpc" />Virtual PC<br />
    <input type="checkbox" name="virt_prod" value="xen" />Xen<br />
    <input type="checkbox" name="virt_prod" value="kvm" />KVM<br />
-   <input type="checkbox" name="virt_prod" value="other" />
+   <input type="checkbox" name="virt_prod" value="othervm" />
    <input name="virt_other" type="text" size="20" maxlength="40">
    </td></tr></table>
    </td></tr><tr class="oddrow"><td>
@@ -536,14 +545,17 @@ What **host operating system** are the virtual machines running on?
 .. raw:: html
 
    </select>
-   </td></tr><tr><td colspan="2">
+   </td></tr></table>
+
+---------------------------------------------------------------
 
 What are your reasons for employing virtualization in you research?
 Please indicate how much you agree to the following statements
 
 .. raw:: html
 
-   </td></tr><tr class="oddrow"><td class="task">
+   <table>
+   <tr class="oddrow"><td class="task">
 
 I can run software that is otherwise incompatible with my system
 
@@ -671,7 +683,7 @@ Comes with the operating system
 
 .. raw:: html
 
-   </td></tr><tr><td class="response"><input type="checkbox" name="software_resource" value=neurodebian"" /></td><td>
+   </td></tr><tr><td class="response"><input type="checkbox" name="software_resource" value="neurodebian" /></td><td>
 
 `NeuroDebian <http://neuro.debian.net>`_
 
@@ -701,7 +713,7 @@ Python bundles: `Enthought Python <http://www.enthought.com/products/index.php>`
 
 .. raw:: html
 
-   </td></tr><tr class="oddrow"><td class="response"><input type="checkbox" name="software_resource" value="other" /></td><td>
+   </td></tr><tr class="oddrow"><td class="response"><input type="checkbox" name="software_resource" value="otherres" /></td><td>
    <input name="software_resource_other" type="text" size="40" maxlength="200">
    </td></tr></table>
 
@@ -893,8 +905,8 @@ Real-time solutions
    <td class="response"><input type="checkbox" name="sw_rt" value="preempt_rt" />PREEMPT_RT</td>
    </tr></table>
 
-Psychophysics/Experimental control
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Psychophysics/Experiment control
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 .. raw:: html
 
@@ -918,18 +930,15 @@ Other
 .. raw:: html
 
    <table class="questionaire"><tr>
-   <td class="response"><input type="checkbox" name="sw_other" value="other" />
+   <td class="response"><input type="checkbox" name="sw_other" value="othersw" />
    <input name="sw_other_name" type="text" size="40" maxlength="200"> <span style="font-size:70%">(comma-separated list)</span></td>
    </tr></table>
 
 ---------------------------------------------------------------
 
-Thanks for filling out the questionaire. Upon successful submission you will
-be presented with some statistics computed from all previous participants.
-
 .. raw:: html
 
-   <input value="Go" type="submit">
+   <input id="submit_button" value="Submit survey" type="submit">
    <div id="server_response"></div>
    </form>