app/soc/templates/soc/survey/take.html
changeset 2740 4b8aa5b9cb23
parent 2720 3f652b37e177
child 2801 0ee67cc9bd20
equal deleted inserted replaced
2739:22f41aafcedc 2740:4b8aa5b9cb23
    10 distributed under the License is distributed on an "AS IS" BASIS,
    10 distributed under the License is distributed on an "AS IS" BASIS,
    11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12 See the License for the specific language governing permissions and
    12 See the License for the specific language governing permissions and
    13 limitations under the License.
    13 limitations under the License.
    14 {% endcomment %}
    14 {% endcomment %}
       
    15 {% load forms_helpers %}
    15 
    16 
    16 {% block scripts %}
    17 {% block scripts %}
    17 {{ block.super }}
    18 {{ block.super }}
    18 <script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script>
    19 <script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script>
    19 <script type="text/javascript" src="/soc/content/js/survey-take-090708.js"></script>
    20 <script type="text/javascript" src="/soc/content/js/survey-take-090708.js"></script>
    25 {% endblock %}
    26 {% endblock %}
    26 
    27 
    27 {% block body %}
    28 {% block body %}
    28 <div id="created">Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}</div>
    29 <div id="created">Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}</div>
    29 
    30 
    30 {% if survey_form %}
    31 <div id="help_text">
       
    32   {% block help_text %}
       
    33     {{ help_text }}
       
    34   {% endblock help_text %}
       
    35 </div>
    31 
    36 
    32   {% load forms_helpers %}
    37 {% block survey_description %}
       
    38 {% if entity.content %}
       
    39   <div id="survey_description">
       
    40     {{ entity.content|safe }}
       
    41   </div>
       
    42 {% endif %}
       
    43 {% endblock survey_description %}
    33 
    44 
    34   {{ help_text }}
    45 {% block survey_form %}
       
    46 {% if form_action %}
       
    47   <form method="post" action="{{ form_action }}">
       
    48 {% else %}
       
    49   <form method="post">
       
    50 {% endif %}
       
    51   <div style="width:100%;">
       
    52     <div class="{{ status }}" id="survey_widget">
       
    53       <table>
       
    54         {% block form_table %}
       
    55           {% as_twoline_table survey_form %}
       
    56         {% endblock %}
       
    57       </table>
       
    58     </div> {# end survey_widget #}
       
    59   </div>
    35 
    60 
    36   {% if entity.content %}
    61   <br /><br />
    37     <div id="survey_description">
       
    38       {{ entity.content|safe }}
       
    39     </div>
       
    40   {% endif %}
       
    41 
    62 
    42   {% if form_action %}
    63   <div>
    43     <form method="post" action="{{ form_action }}">
    64     <table>
    44   {% else %}
    65       <tbody>
    45     <form method="post">
    66         <tr>
    46   {% endif %}
    67           <td>
    47     <div style="width:100%;">
    68             <input type="submit" value="Submit" style="font-weight: bold;">
    48       <div class="{{ status }}" id="survey_widget">
    69           </td>
    49         <table>
    70         </tr>
    50           {% block form_table %}
    71       </tbody>
    51             {% as_twoline_table survey_form %}
    72     </table>
    52           {% endblock %}
    73   </div>
    53         </table>
    74 </form>
    54       </div> {# end survey_widget #}
    75 {% endblock survey_form %}
    55     </div>
       
    56 
    76 
    57 <br><br>
    77 {% endblock body %}
    58     <div>
       
    59       <table>
       
    60         <tbody>
       
    61           <tr>
       
    62             <td>
       
    63               <input type="submit" value="Submit" style="font-weight: bold;">
       
    64             </td>
       
    65           </tr>
       
    66         </tbody>
       
    67       </table>
       
    68     </div>
       
    69   </form>
       
    70 {% endif %}
       
    71 
       
    72 {% endblock %}