app/soc/templates/soc/survey/take.html
changeset 2477 e5629995d118
parent 2475 dfb9249d91b6
child 2487 59d91f7a31e7
equal deleted inserted replaced
2476:c27c21beba35 2477:e5629995d118
    18 <script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script>
    18 <script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script>
    19 <script type="text/javascript" src="/soc/content/survey-take-090627.js"></script>
    19 <script type="text/javascript" src="/soc/content/survey-take-090627.js"></script>
    20 <script type="text/javascript" src="/jquery/jquery-growfield.js"></script>
    20 <script type="text/javascript" src="/jquery/jquery-growfield.js"></script>
    21 {% endblock %}
    21 {% endblock %}
    22 
    22 
    23 {% block page_title %}
       
    24 {{ entity.title }}
       
    25 {% endblock %}
       
    26 
       
    27 {% block header_title %}
    23 {% block header_title %}
    28 {{ entity.title }}
    24 {{ entity.title }}
    29 {% endblock %}
    25 {% endblock %}
    30 
    26 
    31 {% block body %}
    27 {% block body %}
    33 
    29 
    34 {% if survey_form %}
    30 {% if survey_form %}
    35 
    31 
    36   {% load forms_helpers %}
    32   {% load forms_helpers %}
    37 
    33 
    38   {% if not read_only %}
       
    39     <form method="post">
       
    40   {% endif %}
       
    41 
       
    42   {% if read_only %}
       
    43     <form method="get" onsubmit="javascript:return false">
       
    44   {% endif %}
       
    45 
       
    46   {{ help_text }}
    34   {{ help_text }}
    47 
    35 
    48 <div style="width:100%; float:left;">
    36   <form method="post">
    49   <div class="{{ status }}" id="survey_widget">
    37     <div style="width:100%; float:left;">
    50 
    38       <div class="{{ status }}" id="survey_widget">
    51     <table>
    39         <table>
    52 
    40           {% block form_table %}
    53   {# Project Selected for this Survey #}
    41             {% as_twoline_table survey_form %}
    54   {% if project %}
    42           {% endblock %}
    55  <div id="project_link" style="font-size:.8em; margin:3px; display:none;">
    43         </table>
    56  view project:
    44       </div> {# end survey_widget #}
    57  <a target="_blank" href="/student_project/show/{{ project.key.name }}" >
    45     </div>
    58  {{ project.title }}
       
    59  </a>
       
    60  </div>
       
    61   {% endif %}
       
    62 
       
    63       {% block form_table %}
       
    64         {% as_twoline_table survey_form %}
       
    65       {% endblock %}
       
    66 
       
    67     </table>
       
    68   </div> {# end survey_widget #}
       
    69   </div>
       
    70 
    46 
    71 <br/><br/>
    47 <br/><br/>
    72   <table>
    48     <table>
    73     <tbody>
    49       <tbody>
    74       <tr>
    50         <tr>
    75         <td>
    51           <td>
    76           {% if not read_only %}
    52             {% if not read_only %}
    77             <input type="submit" value="Submit" style="font-weight: bold;"/>
    53               <input type="submit" value="Submit" style="font-weight: bold;"/>
    78           {% endif %}
    54             {% endif %}
    79         </td>
    55           </td>
    80       </tr>
    56         </tr>
    81     </tbody>
    57       </tbody>
    82   </table>
    58     </table>
    83 
    59   </form>
    84     </form>
       
    85 {% endif %}
    60 {% endif %}
    86 
    61 
    87 {% endblock %}
    62 {% endblock %}