{% if questionsList == 'my' %} {% set tableId = "QuestionArrayMy" %} {% set chevronUpId = "upC" %} {% set chevronDownId = "downC" %} {% set chevronUpTiId = "upTi" %} {% set chevronDownTiId = "downTi" %} {% set chevronUpTyId = "upTy" %} {% set chevronDownTyId = "downTy" %} {% set chevronUpInvId = "upI" %} {% set chevronDownInvId = "downI" %} {% elseif questionsList == 'share' or questionsList == 'importShare' %} {% set tableId = "QuestionArrayShared"%} {% set chevronUpId = "upCs" %} {% set chevronDownId = "downCs" %} {% set chevronUpTiId = "upTis" %} {% set chevronDownTiId = "downTis" %} {% set chevronUpTyId = "upTys" %} {% set chevronDownTyId = "downTys" %} {% set chevronUpInvId = "upIs" %} {% set chevronDownInvId = "downIs" %} {% else %} {% set tableId = "QuestionArray" %} {% set chevronUpId = "upC" %} {% set chevronDownId = "downC" %} {% set chevronUpTiId = "upTi" %} {% set chevronDownTiId = "downTi" %} {% set chevronUpTyId = "upTy" %} {% set chevronDownTyId = "downTy" %} {% set chevronUpInvId = "upI" %} {% set chevronDownInvId = "downI" %} {% endif %} {% if exerciseID is not defined %} {% set exerciseID = -1 %} {% endif %} {% if (questionsList == 'share' or questionsList == 'importShare' or questionsList == 'exoList' or questionsList == 'importExoList') %} {% endif %} {% if (questionsList == 'importMy' or questionsList == 'importShare' or questionsList == 'importExoList') %} {% endif %} {% if (questionsList == 'my' or questionsList == 'exoList') %} {% endif %} {% for interaction in interactions %} {% if shareRight[interaction.id] is defined %} {% set qshareRight = shareRight[interaction.id] %} {% else %} {% set qshareRight = FALSE %} {% endif %} {% if actionQ[interaction.question.id] is defined %} {% set qaction = actionQ[interaction.question.id] %} {% else %} {% set qaction = -1 %} {% endif %} {% if allowEdit[interaction.id] is defined %} {% set qexoEdit = allowEdit[interaction.id] %} {% else %} {% set qexoEdit = FALSE %} {% endif %} {% if allowEdit[interaction.id] is defined %} {% set qexoEdit = allowEdit[interaction.id] %} {% else %} {% set qexoEdit = FALSE %} {% endif %} {% set rights = getQuestionRights(questionsList, qshareRight, qaction, qexoEdit) %} {% if rights['dispSharedBy'] %} {% elseif (questionsList == 'exoList' or questionsList == 'importExoList') %} {% endif %} {% if rights['allowImportQuestion'] %} {% endif %} {% if rights['allowShareQuestion'] %} {% if ( (alreadyShared[interaction.question.id] is defined) and (alreadyShared[interaction.question.id] == 1) ) %} {% else %} {% endif %} {% elseif questionsList == 'exoList' %} {% endif %} {% endfor %}
{{ 'category' | trans }} {{ 'title' | trans }} {{ 'type' | trans }} {{ 'question' | trans }} {{ 'shared by' | trans }}{{ 'import' | trans }}{{ 'actions' | trans }}
{{ interaction.question.category.value }} {{ interaction.question.title }} {{ interaction.type|trans }} {{ interaction.invite|raw }} {{ interaction.question.user.firstName }} {{ interaction.question.user.lastName }} -
{% if rights['allowShareQuestion'] %} {% endif %} {% if rights['allowDuplicateQuestion'] %} {# ham : Export Question button #} {# ham : fin #} {% else %} {{ 'noRights' | trans }} {% endif %} {% if rights['allowEditQuestion'] %} {% if (questionWithResponse[interaction.id] == 0) %} {% if rights['allowDeleteQuestion'] %} {% endif %} {% if ( (questionsList == 'exoList') and (actionQ[interaction.question.id] == 1) ) %} {% endif %} {% else %} {% endif %} {% endif %} {% if rights['allowDeleteQuestionOfMyBank'] and questionsList == 'share'%} {% endif %} {% if rights['allowDeleteQuestionOfMyBank'] and ( (actionQ[interaction.question.id] is defined) and (actionQ[interaction.question.id] == 2) ) %} {% endif %} {% if rights['allowDeleteQuestionOfExercise'] %} {% endif %} -- {{ interaction.question.id }}