app/templates/projrev/proposal/review.html
changeset 43 55e650bb9dbe
parent 42 4cf4c1f0e5bb
child 48 9bdb5a00689a
equal deleted inserted replaced
42:4cf4c1f0e5bb 43:55e650bb9dbe
     1 {% extends "projrev/base.html" %}
     1 {% extends "projrev/base.html" %}
     2 {% load review_helpers %}
     2 {% load review_helpers %}
     3 
       
     4 {% block scripts %}
       
     5 {{ block.super }}
       
     6 <script type="text/javascript">
       
     7 $(document).ready(function () {
       
     8   alert($('#attribute1[value=1]').attr('checked', 'checked'));
       
     9 });
       
    10 </script>
       
    11 {% endblock scripts %}
       
    12 
     3 
    13 {% block content %}
     4 {% block content %}
    14 <div class="post">
     5 <div class="post">
    15 			
     6 			
    16 	<a name="TemplateInfo"></a>	
     7 	<a name="TemplateInfo"></a>	
    95 	<form enctype="multipart/form-data" method="post" action="">			
    86 	<form enctype="multipart/form-data" method="post" action="">			
    96 		<p>
    87 		<p>
    97       <p>
    88       <p>
    98         {{ form.attribute1.errors }}
    89         {{ form.attribute1.errors }}
    99         <strong>{{ form.attribute1.label }}</strong><br />
    90         <strong>{{ form.attribute1.label }}</strong><br />
   100         <input name="attribute1" type="radio" class="star" title="Poor" value="1"/>
    91         {% as_star_for_score "attribute1" %}
   101         <input name="attribute1" type="radio" class="star" title="Average" value="2"/>
       
   102         <input name="attribute1" type="radio" class="star" title="Good" value="3"/>
       
   103         <input name="attribute1" type="radio" class="star" title="Very Good" value="4" />
       
   104         <input name="attribute1" type="radio" class="star" title="Excellent" value="5"/> 
       
   105         {% if form.attribute1.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
    92         {% if form.attribute1.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   106       </p>
    93       </p>
   107       <p>
    94       <p>
   108         {{ form.comment_a1.errors }}
    95         {{ form.comment_a1.errors }}
   109         <label id='id_comment'>{{ form.comment_a1.label }}</label>{{ form.comment_a1 }}
    96         <label id='id_comment'>{{ form.comment_a1.label }}</label>{{ form.comment_a1 }}
   110       </p>
    97       </p>
   111       <p>
    98       <p>
   112         {{ form.attribute2.errors }}
    99         {{ form.attribute2.errors }}
   113         <strong>{{ form.attribute2.label }}</strong><br />
   100         <strong>{{ form.attribute2.label }}</strong><br />
   114         <input name="attribute2" type="radio" class="star" title="Poor" value="1"/>
   101         {% as_star_for_score "attribute2" %}
   115         <input name="attribute2" type="radio" class="star" title="Average" value="2"/>
       
   116         <input name="attribute2" type="radio" class="star" title="Good" value="3"/>
       
   117         <input name="attribute2" type="radio" class="star" title="Very Good" value="4"/>
       
   118         <input name="attribute2" type="radio" class="star" title="Excellent" value="5"/> 
       
   119         {% if form.attribute2.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   102         {% if form.attribute2.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   120       </p>
   103       </p>
   121       <p>
   104       <p>
   122         {{ form.comment_a2.errors }}
   105         {{ form.comment_a2.errors }}
   123         <label id='id_comment'>{{ form.comment_a2.label }}</label>{{ form.comment_a2 }}
   106         <label id='id_comment'>{{ form.comment_a2.label }}</label>{{ form.comment_a2 }}
   124       </p>
   107       </p>
   125       <p>
   108       <p>
   126         {{ form.attribute3.errors }}
   109         {{ form.attribute3.errors }}
   127         <strong>{{ form.attribute3.label }}</strong><br />
   110         <strong>{{ form.attribute3.label }}</strong><br />
   128         <input name="attribute3" type="radio" class="star" title="Poor" value="1"/>
   111         {% as_star_for_score "attribute3" %}
   129         <input name="attribute3" type="radio" class="star" title="Average" value="2"/>
       
   130         <input name="attribute3" type="radio" class="star" title="Good" value="3"/>
       
   131         <input name="attribute3" type="radio" class="star" title="Very Good" value="4"/>
       
   132         <input name="attribute3" type="radio" class="star" title="Excellent" value="5"/> 
       
   133         {% if form.attribute3.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   112         {% if form.attribute3.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   134       </p>
   113       </p>
   135       <p>
   114       <p>
   136         {{ form.comment_a3.errors }}
   115         {{ form.comment_a3.errors }}
   137         <label id='id_comment'>{{ form.comment_a3.label }}</label>{{ form.comment_a3 }}
   116         <label id='id_comment'>{{ form.comment_a3.label }}</label>{{ form.comment_a3 }}
   138       </p>
   117       </p>
   139       <p>
   118       <p>
   140         {{ form.attribute4.errors }}
   119         {{ form.attribute4.errors }}
   141         <strong>{{ form.attribute4.label }}</strong><br />
   120         <strong>{{ form.attribute4.label }}</strong><br />
   142         <input name="attribute4" type="radio" class="star" title="Poor" value="1"/>
   121         {% as_star_for_score "attribute4" %}
   143         <input name="attribute4" type="radio" class="star" title="Average" value="2"/>
       
   144         <input name="attribute4" type="radio" class="star" title="Good" value="3"/>
       
   145         <input name="attribute4" type="radio" class="star" title="Very Good" value="4"/>
       
   146         <input name="attribute4" type="radio" class="star" title="Excellent" value="5"/> 
       
   147         {% if form.attribute4.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   122         {% if form.attribute4.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   148       </p>
   123       </p>
   149       <p>
   124       <p>
   150         {{ form.comment_a4.errors }}
   125         {{ form.comment_a4.errors }}
   151         <label id='id_comment'>{{ form.comment_a4.label }}</label>{{ form.comment_a4 }}
   126         <label id='id_comment'>{{ form.comment_a4.label }}</label>{{ form.comment_a4 }}
   152       </p>
   127       </p>
   153       <p>
   128       <p>
   154         {{ form.attribute5.errors }}
   129         {{ form.attribute5.errors }}
   155         <strong>{{ form.attribute5.label }}</strong><br />
   130         <strong>{{ form.attribute5.label }}</strong><br />
   156         <input name="attribute5" type="radio" class="star" title="Poor" value="1"/>
   131         {% as_star_for_score "attribute5" %}
   157         <input name="attribute5" type="radio" class="star" title="Average" value="2"/>
       
   158         <input name="attribute5" type="radio" class="star" title="Good" value="3"/>
       
   159         <input name="attribute5" type="radio" class="star" title="Very Good" value="4"/>
       
   160         <input name="attribute5" type="radio" class="star" title="Excellent" value="5"/> 
       
   161         {% if form.attribute5.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   132         {% if form.attribute5.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   162       </p>
   133       </p>
   163       <p>
   134       <p>
   164         {{ form.comment_a5.errors }}
   135         {{ form.comment_a5.errors }}
   165         <label id='id_comment'>{{ form.comment_a5.label }}</label>{{ form.comment_a5 }}
   136         <label id='id_comment'>{{ form.comment_a5.label }}</label>{{ form.comment_a5 }}
   166       </p>
   137       </p>
   167       <p>
   138       <p>
   168         {{ form.attribute6.errors }}
   139         {{ form.attribute6.errors }}
   169         <strong>{{ form.attribute6.label }}</strong><br />
   140         <strong>{{ form.attribute6.label }}</strong><br />
   170         <input name="attribute6" type="radio" class="star" title="Poor" value="1"/>
   141         {% as_star_for_score "attribute6" %}
   171         <input name="attribute6" type="radio" class="star" title="Average" value="2"/>
       
   172         <input name="attribute6" type="radio" class="star" title="Good" value="3"/>
       
   173         <input name="attribute6" type="radio" class="star" title="Very Good" value="4"/>
       
   174         <input name="attribute6" type="radio" class="star" title="Excellent" value="5"/> 
       
   175         {% if form.attribute6.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   142         {% if form.attribute6.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   176       </p>
   143       </p>
   177       <p>
   144       <p>
   178         {{ form.comment_a6.errors }}
   145         {{ form.comment_a6.errors }}
   179         <label id='id_comment'>{{ form.comment_a6.label }}</label>{{ form.comment_a6 }}
   146         <label id='id_comment'>{{ form.comment_a6.label }}</label>{{ form.comment_a6 }}
   180       </p>
   147       </p>
   181       <p>
   148       <p>
   182         {{ form.attribute7.errors }}
   149         {{ form.attribute7.errors }}
   183         <strong>{{ form.attribute7.label }}</strong><br />
   150         <strong>{{ form.attribute7.label }}</strong><br />
   184         <input name="attribute7" type="radio" class="star" title="Poor" value="1"/>
   151         {% as_star_for_score "attribute7" %}
   185         <input name="attribute7" type="radio" class="star" title="Average" value="2"/>
       
   186         <input name="attribute7" type="radio" class="star" title="Good" value="3"/>
       
   187         <input name="attribute7" type="radio" class="star" title="Very Good" value="4"/>
       
   188         <input name="attribute7" type="radio" class="star" title="Excellent" value="5"/> 
       
   189         {% if form.attribute7.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   152         {% if form.attribute7.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   190       </p>
   153       </p>
   191       <p>
   154       <p>
   192         {{ form.comment_a7.errors }}
   155         {{ form.comment_a7.errors }}
   193         <label id='id_comment'>{{ form.comment_a7.label }}</label>{{ form.comment_a7 }}
   156         <label id='id_comment'>{{ form.comment_a7.label }}</label>{{ form.comment_a7 }}
   194       </p>
   157       </p>
   195       <p>
   158       <p>
   196         {{ form.attribute8.errors }}
   159         {{ form.attribute8.errors }}
   197         <strong>{{ form.attribute8.label }}</strong><br />
   160         <strong>{{ form.attribute8.label }}</strong><br />
   198         <input name="attribute8" type="radio" class="star" title="Poor" value="1"/>
   161         {% as_star_for_score "attribute8" %} 
   199         <input name="attribute8" type="radio" class="star" title="Average" value="2"/>
       
   200         <input name="attribute8" type="radio" class="star" title="Good" value="3"/>
       
   201         <input name="attribute8" type="radio" class="star" title="Very Good" value="4"/>
       
   202         <input name="attribute8" type="radio" class="star" title="Excellent" value="5"/> 
       
   203         {% if form.attribute8.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   162         {% if form.attribute8.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   204       </p>
   163       </p>
   205       <p>
   164       <p>
   206         {{ form.comment_a8.errors }}
   165         {{ form.comment_a8.errors }}
   207         <label id='id_comment'>{{ form.comment_a8.label }}</label>{{ form.comment_a8 }}
   166         <label id='id_comment'>{{ form.comment_a8.label }}</label>{{ form.comment_a8 }}
   208       </p>
   167       </p>
   209       <p>
   168       <p>
   210         {{ form.attribute9.errors }}
   169         {{ form.attribute9.errors }}
   211         <strong>{{ form.attribute9.label }}</strong><br />
   170         <strong>{{ form.attribute9.label }}</strong><br />
   212         <input name="attribute9" type="radio" class="star" title="Poor" value="1"/>
   171         {% as_star_for_score "attribute9" %}
   213         <input name="attribute9" type="radio" class="star" title="Average" value="2"/>
       
   214         <input name="attribute9" type="radio" class="star" title="Good" value="3"/>
       
   215         <input name="attribute9" type="radio" class="star" title="Very Good" value="4"/>
       
   216         <input name="attribute9" type="radio" class="star" title="Excellent" value="5"/> 
       
   217         {% if form.attribute9.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   172         {% if form.attribute9.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
   218       </p>
   173       </p>
   219       <p>
   174       <p>
   220         {{ form.comment_a9.errors }}
   175         {{ form.comment_a9.errors }}
   221         <label id='id_comment'>{{ form.comment_a9.label }}</label>{{ form.comment_a9 }}
   176         <label id='id_comment'>{{ form.comment_a9.label }}</label>{{ form.comment_a9 }}