-
Notifications
You must be signed in to change notification settings - Fork 988
/
editQuestionTopbarRight_view.php
62 lines (57 loc) · 2.03 KB
/
editQuestionTopbarRight_view.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php /* Ported from previous versions: Pending to adapt to screen own JS for saving (and validations)
<!-- Save and new group -->
<?php if(!empty($showSaveAndNewGroupButton)): ?>
<a class="btn btn-default" id='save-and-new-button' role="button">
<span class="fa fa-plus-square"></span>
<?php eT("Save and new group"); ?>
</a>
<?php endif; ?>
<!-- Save and add question -->
<?php if(!empty($showSaveAndNewQuestionButton)): ?>
<a class="btn btn-default" id='save-and-new-question-button' role="button">
<span class="fa fa-plus"></span>
<?php eT("Save and add question"); ?>
</a>
<?php endif; ?>
*/ ?>
<!-- Close -->
<?php if(!empty($showCloseButton)): ?>
<?php if (!empty($oQuestion->qid)): ?>
<a class="btn btn-default" href="#" role="button" onclick="LS.questionEditor.showOverview(); return false;">
<span class="fa fa-close"></span>
<?php eT("Close");?>
</a>
<?php else: ?>
<a class="btn btn-default" href="<?= $closeUrl ?>" role="button">
<span class="fa fa-close"></span>
<?php eT("Close");?>
</a>
<?php endif; ?>
<?php endif;?>
<!-- Save and close -->
<?php if(!empty($showSaveAndCloseButton)): ?>
<button
id="save-and-close-button-create-question"
class="btn btn-default"
type="button"
onclick="return LS.questionEditor.checkIfSaveIsValid(event, 'overview');"
>
<i class="fa fa-check-square"></i>
<?php eT("Save and close");?>
</button>
<?php endif; ?>
<!-- Save -->
<?php if(!empty($showSaveButton)): ?>
<button
id="save-button-create-question"
class="btn btn-success"
type="button"
<?php if ($oQuestion->qid !== 0): // Only enable Ajax save for edit question, not create question. ?>
data-save-with-ajax="true"
<?php endif; ?>
onclick="return LS.questionEditor.checkIfSaveIsValid(event, 'editor');"
>
<i class="fa fa-check"></i>
<?php eT("Save");?>
</button>
<?php endif; ?>