<tal:defs define="global show_context_menu python:False">
</tal:defs>
<html metal:use-macro="container/page_macro/macros/page" i18n:domain="qtauthor">
    <div metal:fill-slot="main">
        <div>
            <b i18n:translate="available_types">Available types: </b>   
            <div style="height:5px"></div>
            <div class="description" i18n:translate="string:item_add_warning">If you plan to use TATS for assessment, then we recommend to use only "Multiple Choice" and "Multiple Response" question types, because other types may not work properly in assessment. If you use TATS only for creating questions, to import them to some other system (like PETS), then you could use other types too.</div> 
            <span tal:define="qtypes context/getQuestionTypes | nothing" 
                    tal:repeat="q qtypes">
                <span tal:define="q_view python:context.getViewTemplateName(request, q)" 
                        style="float:left; margin:10px 10px 10px 10px;border:1px solid black;text-align:center">
                        <a href="" tal:condition="python:q not in['hotspot_type', 'choice_multiple_video']" 
                                tal:attributes="href python:'edit?type='+q;"
                                >
                                <img src="" 
                                    style="border:none" 
                                    tal:attributes="src python:'++resource++thumbnails/'+q_view+'_en.gif'"/>
                            </a>
                            <a href="hotspot_type.html" 
                                tal:condition="python:q=='hotspot_type'" 
                                >
                                <img src="" 
                                    style="border:none" 
                                    tal:attributes="src python:'++resource++thumbnails/'+q_view+'_en.gif'"/>
                            </a>
                            <a href="videos/add_video.html" 
                                tal:condition="python:q=='choice_multiple_video'" 
                                >
                                <img src="" 
                                    style="border:none" 
                                    tal:attributes="src python:'++resource++thumbnails/'+q_view+'_en.gif'"/>
                            </a>
                    <div style="border-top:1px solid black">
                        <a href="" tal:condition="python:q not in['hotspot_type', 'choice_multiple_video']" 
                                tal:attributes="href python:'edit?type='+q;"
                                i18n:translate="" tal:content="python:context.getQuesName(q)"></a>
                        <a href="hotspot_type.html" tal:condition="python:q=='hotspot_type'" i18n:translate="hotspot_type">Hotspot</a>
                        <a href="videos/add_video.html" tal:condition="python:q=='choice_multiple_video'" 
                            i18n:translate="choice_multiple_with_video">Choice Multiple (video)</a>
                    </div>
                </span>  
            </span>                                          
        </div>
    </div>
</html>