diff options
author | King | 2019-02-26 22:47:57 +0530 |
---|---|---|
committer | GitHub | 2019-02-26 22:47:57 +0530 |
commit | bcdb341d05151b2dd502e7ddd7758530905d9fe7 (patch) | |
tree | ebf3401c0f9913b4fea0471f1b59f28078a2db88 | |
parent | dda5b4626a6df366860b0079447137b709d46d88 (diff) | |
parent | ca40101ccd7f014a1f531c0c2a95e9a08d260d36 (diff) | |
download | online_test-bcdb341d05151b2dd502e7ddd7758530905d9fe7.tar.gz online_test-bcdb341d05151b2dd502e7ddd7758530905d9fe7.tar.bz2 online_test-bcdb341d05151b2dd502e7ddd7758530905d9fe7.zip |
Merge pull request #576 from CruiseDevice/link_to_question
Add link to the Question in Design QuestionPaper.
-rw-r--r-- | yaksh/templates/yaksh/design_questionpaper.html | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/yaksh/templates/yaksh/design_questionpaper.html b/yaksh/templates/yaksh/design_questionpaper.html index bf1f23e..0ab7cc0 100644 --- a/yaksh/templates/yaksh/design_questionpaper.html +++ b/yaksh/templates/yaksh/design_questionpaper.html @@ -113,7 +113,14 @@ select <li> <label> <input type="checkbox" name="questions" data-qid="{{question.id}}" value={{question.id}}> - <span> {{ question.summary }} </span> <span> {{ question.points }} </span> + <span> + {% if user == question.user %} + <a href="{{URL_ROOT}}/exam/manage/addquestion/{{ question.id }}" target="_blank">{{ question.summary }}</a> + {% else %} + {{question.summary}} + {% endif %} + </span> + <span> {{ question.points }}</span> </label> </li> {% endfor %} @@ -134,7 +141,13 @@ select <label> <input type="checkbox" name="added-questions" data-qid="{{question.id}}" value={{question.id}}> - <span> {{ question.summary }} </span> + <span> + {% if user == question.user %} + <a href="{{URL_ROOT}}/exam/manage/addquestion/{{ question.id }}" target="_blank">{{ question.summary }}</a> + {% else %} + {{question.summary}} + {% endif %} + </span> <span> {{ question.points }} </span> </label> </li> @@ -175,7 +188,13 @@ select <li> <label> <input type="checkbox" name="random_questions" data-qid="{{question.id}}" value={{question.id}}> - <span> {{ question.summary }} </span> <span> {{ question.points }} </span> + <span> + {% if user == question.user %} + <a href="{{URL_ROOT}}/exam/manage/addquestion/{{ question.id }}" target="_blank">{{ question.summary }}</a> + {% else %} + {{question.summary}} + {% endif %}</span> + <span> {{ question.points }} </span> </label> </li> {% endfor %} @@ -201,7 +220,13 @@ select {% for question in random_set.questions.all %} <li> <label> - <span> {{ question.summary }} </span> <span> {{ question.points }} </span> + <span> + {% if user == question.user %} + <a href="{{URL_ROOT}}/exam/manage/addquestion/{{ question.id }}" target="_blank">{{ question.summary }}</a> + {% else %} + {{question.summary}} + {% endif %}</span> + <span> {{ question.points }} </span> </label> </li> {% endfor %} |