app/templates/projrev/proposal/review.html
changeset 28 be65e84e7d03
parent 27 37612f295cd4
child 29 425626c7f63e
equal deleted inserted replaced
27:37612f295cd4 28:be65e84e7d03
    50     </div>
    50     </div>
    51     <div class='review-right'>
    51     <div class='review-right'>
    52       <a href="/site-content/{{ proposal_path }}">{{ proposal_name }}</a>
    52       <a href="/site-content/{{ proposal_path }}">{{ proposal_name }}</a>
    53     </div>
    53     </div>
    54   </div>
    54   </div>
       
    55 
       
    56 
    55 	<form enctype="multipart/form-data" method="post" action="">			
    57 	<form enctype="multipart/form-data" method="post" action="">			
    56 		<p>
    58 		<p>
    57       {{ form.as_p }}
    59       <p>
       
    60       {% if form.comment.help_text %}
       
    61         <script type="text/javascript">
       
    62           $(document).ready( function() {
       
    63             var tooltip = [
       
    64             "<div class='tooltip'>",
       
    65             "  <div class='tooltip-body'>",
       
    66             "    <img src='/site-content/images/info.png' alt='' />",
       
    67             "    <h3>Info</h3>",
       
    68             "    <p>",
       
    69             "      {% autoescape off %}",
       
    70             "        {{ form.comment.help_text|linebreaksbr|escapejs }}",
       
    71             "      {% endautoescape %}",
       
    72             "    </p>",
       
    73             "  </div>",
       
    74             "  <div class='tooltip-bottom'></div>",
       
    75             "</div>"
       
    76             ].join("");
       
    77 
       
    78             var tooltip_object=null;
       
    79             var documented = $("#id_{{ form.comment.name }}");
       
    80             var not_fieldset = documented.attr('tagName') !== 'FIELDSET';
       
    81             if (not_fieldset) {
       
    82               documented.focus(function() {
       
    83                 if (tooltip_object==null) {
       
    84                   tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000});
       
    85                 }
       
    86               });
       
    87               documented.blur(function() {
       
    88                 if (tooltip_object!==null) {
       
    89                   tooltip_object.remove();
       
    90                   tooltip_object=null;
       
    91                 }
       
    92               });
       
    93             }
       
    94             else {
       
    95               documented.find("input").hover(function() {
       
    96                 if (tooltip_object==null) {
       
    97                   tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000});
       
    98                 }
       
    99               },
       
   100               function() {
       
   101                 if (tooltip_object!==null) {
       
   102                   tooltip_object.remove();
       
   103                   tooltip_object=null;
       
   104                 }
       
   105               });
       
   106             }
       
   107           });
       
   108         </script>
       
   109       {% endif %}
       
   110       {{ form.comment.errors }}
       
   111       {{ form.comment.label_tag }}{{ form.comment }}{% if form.comment.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
       
   112       </p>
       
   113       <p>
       
   114         {{ form.comment.errors }}
       
   115         {{ form.attribute1.label_tag }}:
       
   116         <input name="attribute1" type="radio" class="star"/>
       
   117         <input name="attribute1" type="radio" class="star"/>
       
   118         <input name="attribute1" type="radio" class="star"/>
       
   119         <input name="attribute1" type="radio" class="star"/>
       
   120         <input name="attribute1" type="radio" class="star"/> 
       
   121         {% if form.attribute1.field.required %}<span class="specialclass">&nbsp;&nbsp;(required)</span>{% endif %}
       
   122       </p>
    58 		<br />	
   123 		<br />	
    59 		<input class="button" type="submit" value="Submit Review" />		
   124 		<input class="button" type="submit" value="Submit Review" />		
    60 		</p>
   125 		</p>
    61 	</form>
   126 	</form>
    62 				
   127