-
Notifications
You must be signed in to change notification settings - Fork 988
/
_copyQuestionTabsLanguages.php
44 lines (41 loc) · 1.11 KB
/
_copyQuestionTabsLanguages.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* This view displays the tabs for the question creation
*
* @var QuestionAdministrationController $this
* @var Survey $oSurvey
* @var Question $oQuestion
*/
?>
<div class="row">
<div class="col-6">
<!-- Question code -->
<?php $this->renderPartial(
"questionCode",
[
'question' => $oQuestion,
'newTitle' => $oQuestion->title . "Copy",
'newQid' => true
]
); ?>
</div>
</div>
<div class="row">
<div class="col-12">
<!-- Text elements -->
<?php $this->renderPartial(
"textElements",
[
'oSurvey' => $oSurvey,
'question' => $oQuestion,
'showScriptField' => false,
]
); ?>
</div>
</div>
<div id='questionactioncopy' class='extra-action'>
<button role="button" type='submit' class="btn btn-primary saveandreturn d-none" name="redirection" value="edit">
<?php eT("Save"); ?>
</button>
<input type='submit' value='<?php eT("Save and close"); ?>' class="btn btn-outline-secondary d-none"/>
</div>