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.0 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.10 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9
tutor / views / modal / question_answer_form.php
tutor / views / modal Last commit date
add_quiz.php 7 years ago edit-lesson.php 7 years ago edit_quiz.php 7 years ago question_answer_edit_form.php 7 years ago question_answer_form.php 7 years ago question_form.php 7 years ago
question_answer_form.php
216 lines
1 <?php
2 if ($question_type === 'open_ended' || $question_type === 'short_answer'){
3 echo '<p style="color: #ff0000;">No option is necessary for this answer type</p>';
4 return '';
5 }
6
7
8 ?>
9
10 <div class="tutor-quiz-question-answers-form">
11
12 <?php
13 if ($question_type === 'true_false'){
14 ?>
15 <div class="tutor-quiz-builder-form-row">
16 <label><?php _e('Select option which is correct', 'tutor'); ?></label>
17 <div class="quiz-modal-field-wrap">
18 <label> <input type="radio" name="quiz_answer[<?php echo $question_id; ?>][true_false]" value="true" checked="checked"> <?php _e('True', 'tutor');
19 ?> </label>
20 <label> <input type="radio" name="quiz_answer[<?php echo $question_id; ?>][true_false]" value="false"> <?php _e('False', 'tutor'); ?>
21 </label>
22 </div>
23 </div>
24
25 <?php
26 }elseif($question_type === 'multiple_choice' || $question_type === 'single_choice' || $question_type === 'ordering' ){
27
28 if ($question_type === 'ordering'){
29 echo '<p class="quiz-modal-form-help">Make sure you are saving answer in right sorting in answers lists, student should ordering should match with this answer order.</p>';
30 echo '<p class="quiz-modal-form-help">You can re-order it from above answer list.</p>';
31 }
32
33 ?>
34 <div class="tutor-quiz-builder-form-row">
35 <label><?php _e('Answer title', 'tutor'); ?></label>
36 <div class="quiz-modal-field-wrap">
37 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][answer_title]" value="">
38 </div>
39 </div>
40
41 <div class="tutor-quiz-builder-form-cols-row">
42 <div class="quiz-form-field-col">
43 <label><?php _e('Upload Image', 'tutor'); ?></label>
44 <div class="tutor-media-upload-wrap">
45 <input type="hidden" name="quiz_answer[<?php echo $question_id; ?>][image_id]" value="">
46 <div class="tutor-media-preview">
47 <a href="javascript:;" class="tutor-media-upload-btn"><i class="tutor-icon-image1"></i></a>
48 </div>
49 <div class="tutor-media-upload-trash-wrap">
50 <a href="javascript:;" class="tutor-media-upload-trash">&times;</a>
51 </div>
52 </div>
53 </div>
54
55 <div class="quiz-form-field-col">
56 <label><?php _e('Answer option view format', 'tutor'); ?></label>
57 <div class="quiz-modal-field-wrap label-inline">
58 <label> <input type="radio" name="quiz_answer[<?php echo $question_id; ?>][answer_view_format]" value="text" checked="checked"> <?php _e('Only text', 'tutor'); ?> </label>
59 <label> <input type="radio" name="quiz_answer[<?php echo $question_id; ?>][answer_view_format]" value="image"> <?php _e('Only Image', 'tutor'); ?> </label>
60 <label> <input type="radio" name="quiz_answer[<?php echo $question_id; ?>][answer_view_format]" value="text_image"> <?php _e('Text &amp; Image both', 'tutor'); ?> </label>
61 </div>
62 </div>
63 </div>
64
65 <?php
66 }elseif($question_type === 'fill_in_the_blank'){
67 ?>
68 <div class="tutor-quiz-builder-form-cols-row">
69 <div class="quiz-form-field-col full-width">
70 <label><?php _e('Question Title', 'tutor'); ?></label>
71 <div class="quiz-modal-field-wrap">
72 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][answer_title]" value="">
73 <p class="quiz-modal-form-help"><?php _e( 'Please make sure that <b>{dash}</b> variable contains in your question title to show dash, You can use multiple variable', 'tutor' ); ?></p>
74 </div>
75 </div>
76
77 <div class="quiz-form-field-col full-width">
78 <label><?php _e('Gap Answer', 'tutor'); ?></label>
79 <div class="quiz-modal-field-wrap">
80 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][answer_two_gap_match]" value="">
81 <p class="quiz-modal-form-help"><?php _e( 'Separate multiple answer by pipe <b>( | )</b> , 1 answer per variable assigned in question', 'tutor' ); ?></p>
82 </div>
83 </div>
84 </div>
85
86 <?php
87 }elseif ($question_type === 'answer_sorting'){
88 ?>
89 <div class="tutor-quiz-builder-form-cols-row">
90 <div class="quiz-form-field-col full-width">
91 <label><?php _e('Answer title', 'tutor'); ?></label>
92 <div class="quiz-modal-field-wrap">
93 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][answer_title]" value="">
94 </div>
95 </div>
96
97 <div class="quiz-form-field-col full-width">
98 <label><?php _e('Matched Answer title', 'tutor'); ?></label>
99 <div class="quiz-modal-field-wrap">
100 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][matched_answer_title]" value="">
101 </div>
102 </div>
103 </div>
104
105 <?php
106 }elseif($question_type === 'matching'){
107 ?>
108
109 <div class="tutor-quiz-builder-form-cols-row">
110 <div class="quiz-form-field-col full-width">
111 <label><?php _e('Answer title', 'tutor'); ?></label>
112 <div class="quiz-modal-field-wrap">
113 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][answer_title]" value="">
114 </div>
115 </div>
116
117 <div class="quiz-form-field-col full-width">
118 <label><?php _e('Matched Answer title', 'tutor'); ?></label>
119 <div class="quiz-modal-field-wrap">
120 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][matched_answer_title]" value="">
121 </div>
122 </div>
123 </div>
124
125 <div class="tutor-quiz-builder-form-cols-row">
126 <div class="quiz-form-field-col">
127 <label><?php _e('Upload Image', 'tutor'); ?></label>
128 <div class="tutor-media-upload-wrap">
129 <input type="hidden" name="quiz_answer[<?php echo $question_id; ?>][image_id]" value="">
130 <div class="tutor-media-preview">
131 <a href="javascript:;" class="tutor-media-upload-btn"><i class="tutor-icon-image1"></i></a>
132 </div>
133 <div class="tutor-media-upload-trash-wrap">
134 <a href="javascript:;" class="tutor-media-upload-trash">&times;</a>
135 </div>
136 </div>
137 </div>
138
139 <div class="quiz-form-field-col">
140 <label><?php _e('Answer option view format', 'tutor'); ?></label>
141 <div class="quiz-modal-field-wrap label-inline">
142 <label> <input type="radio" name="quiz_answer[<?php echo $question_id; ?>][answer_view_format]" value="text" checked="checked"> <?php _e('Only text', 'tutor'); ?> </label>
143 <label> <input type="radio" name="quiz_answer[<?php echo $question_id; ?>][answer_view_format]" value="image"> <?php _e('Only Image', 'tutor'); ?> </label>
144 <label> <input type="radio" name="quiz_answer[<?php echo $question_id; ?>][answer_view_format]" value="text_image"> <?php _e('Text &amp; Image both', 'tutor'); ?> </label>
145 </div>
146 </div>
147 </div>
148
149 <?php
150 }elseif ($question_type === 'image_matching'){
151 ?>
152 <div class="tutor-quiz-builder-form-cols-row">
153 <div class="quiz-form-field-col full-width">
154 <div class="quiz-form-field-col">
155 <label><?php _e('Upload Image', 'tutor'); ?></label>
156 <div class="tutor-media-upload-wrap">
157 <input type="hidden" name="quiz_answer[<?php echo $question_id; ?>][image_id]" value="">
158 <div class="tutor-media-preview">
159 <a href="javascript:;" class="tutor-media-upload-btn"><i class="tutor-icon-image1"></i></a>
160 </div>
161 <div class="tutor-media-upload-trash-wrap">
162 <a href="javascript:;" class="tutor-media-upload-trash">&times;</a>
163 </div>
164 </div>
165 </div>
166 </div>
167
168
169 <div class="quiz-form-field-col full-width">
170 <label><?php _e('Image matched text', 'tutor'); ?></label>
171 <div class="quiz-modal-field-wrap">
172 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][answer_title]" value="">
173 </div>
174 </div>
175
176 </div>
177
178 <?php
179 }elseif($question_type === 'image_answering'){
180 ?>
181 <div class="tutor-quiz-builder-form-cols-row">
182 <div class="quiz-form-field-col full-width">
183 <div class="quiz-form-field-col">
184 <label><?php _e('Upload Image', 'tutor'); ?></label>
185 <div class="tutor-media-upload-wrap">
186 <input type="hidden" name="quiz_answer[<?php echo $question_id; ?>][image_id]" value="">
187 <div class="tutor-media-preview">
188 <a href="javascript:;" class="tutor-media-upload-btn"><i class="tutor-icon-image1"></i></a>
189 </div>
190 <div class="tutor-media-upload-trash-wrap">
191 <a href="javascript:;" class="tutor-media-upload-trash">&times;</a>
192 </div>
193 </div>
194 </div>
195 </div>
196
197
198 <div class="quiz-form-field-col full-width">
199 <label><?php _e('Answer input value', 'tutor'); ?></label>
200 <div class="quiz-modal-field-wrap">
201 <input type="text" name="quiz_answer[<?php echo $question_id; ?>][answer_title]" value="">
202 <p class="quiz-modal-form-help"><?php _e('Student input text should be matched with this answer, write in <b>Small Caps</b>','tutor'); ?></p>
203 </div>
204 </div>
205
206 </div>
207 <?php
208 }
209 ?>
210
211 <div class="tutor-quiz-answers-form-footer tutor-quiz-builder-form-row">
212 <button type="button" id="quiz-answer-save-btn" class="tutor-answer-save-btn"><i class="tutor-icon-add-line"></i> <?php _e('Save Answer', 'tutor'); ?></button>
213
214 </div>
215
216 </div>