{% load i18n %}
{% if extra_helptext %}
{% if icon %}
<a class="inline" href="#{{ code_name }}" title="Help Page">
    <img src="{{ STATIC_URL }}images/icons/help.png" class="noborder">
</a>
{% else %}
(<a class="inline" href="#{{ code_name }}" title="Help">{% trans "...more" %}</a>)
{% endif %}
<div class="nodisplay">
    <div class="extra_help_wrapper" id="{{ code_name }}">
      <div>
        <p> {{ extra_helptext }} </p>
      </div>
    </div>
</div>
{% endif %}

<script type="text/javascript">
    $(document).ready(
        function (){
            /* FancyBox Using custom settings */
            $("a.inline").fancybox({
                'hideOnContentClick': false,
                'frameHeight':300,
            });
        }
    );
</script>
