app/soc/templates/soc/templatetags/_as_table_row.html
changeset 2295 8566fb2b8012
parent 1819 1e34fa8c5da0
child 2300 b9fd1e20d413
equal deleted inserted replaced
2294:be2c150d1a1f 2295:8566fb2b8012
    25 </tr>
    25 </tr>
    26 {% endif %}
    26 {% endif %}
    27 
    27 
    28 {% block label_row %}{% endblock %}
    28 {% block label_row %}{% endblock %}
    29 
    29 
    30 <tr title="{{ help_text }}">
    30 <tr>
    31   {% block label_column %}
    31   {% block label_column %}
    32   <td class="{{ field_class_type }}">
    32   <td class="{{ field_class_type }}">
    33     {{ label }}
    33     {{ label }}
    34   </td>
    34   </td>
    35   {% endblock %}
    35   {% endblock %}
    49           });
    49           });
    50         }
    50         }
    51       );
    51       );
    52     </script>
    52     </script>
    53   {% endif %}
    53   {% endif %}
       
    54   {% if help_text %}
       
    55   <script type="text/javascript">
       
    56   $(document).ready( function() {
       
    57     var tooltip = "<div class='tooltip'><div class='tooltip-body'><img src='/soc/content/images/purrInfo.png' alt='' /><h3>Info</h3><p>{{ help_text }}</p></div><div class='tooltip-bottom'></div></div>";
       
    58     var tooltip_object=null;
       
    59     $("#{{ field_id }}").focus(function() {
       
    60       tooltip_object = $(tooltip).purr({usingTransparentPNG: true});
       
    61     });
       
    62     $("#{{ field_id }}").blur(function() {
       
    63       if (tooltip_object!==null) {
       
    64         tooltip_object.remove();
       
    65       }
       
    66     });
       
    67   });
       
    68   </script>
       
    69   {% endif %}
    54     {{ field|safe }}
    70     {{ field|safe }}
    55   </td>
    71   </td>
    56 
    72 
    57   {% if required %}
    73   {% if required %}
    58   <td class="formfieldrequired">(required)</td>
    74   <td class="formfieldrequired">(required)</td>