Lines 5-34
Link Here
|
5 |
<div v-if="initialized" class="modal-content"> |
5 |
<div v-if="initialized" class="modal-content"> |
6 |
<form @submit="addCircRule($event)"> |
6 |
<form @submit="addCircRule($event)"> |
7 |
<div class="modal-header"> |
7 |
<div class="modal-header"> |
8 |
<h1 v-if="!editMode">{{ $__("Add circulation trigger") }}</h1> |
8 |
<h1 class="modal-title" v-if="!editMode"> |
9 |
<h1 v-else>{{ $__("Edit circulation trigger") }}</h1> |
9 |
{{ $__("Circulation triggers") }} |
|
|
10 |
</h1> |
11 |
<h1 class="modal-title" v-else> |
12 |
{{ $__("Edit circulation trigger") }} |
13 |
</h1> |
10 |
</div> |
14 |
</div> |
11 |
<div class="modal-body"> |
15 |
<div class="modal-body"> |
12 |
<div class="page-section bg-info" v-if="circRules.length"> |
16 |
<div class="page-section bg-info" v-if="circRules.length"> |
13 |
<h2>{{ $__("Trigger context") }}</h2> |
17 |
<h2>{{ $__("Circulation context") }}</h2> |
14 |
<TriggerContext :ruleInfo="ruleInfo" /> |
18 |
<TriggerContext :ruleInfo="ruleInfo" /> |
15 |
<h2 v-if="ruleInfo.numberOfTriggers > 0"> |
|
|
16 |
{{ $__("Existing rules") }} |
17 |
</h2> |
18 |
<p v-if="ruleInfo.numberOfTriggers > 0"> |
19 |
{{ $__("Notice") }} {{ " " + newTriggerNumber - 1 }} |
20 |
</p> |
21 |
<TriggersTable |
22 |
v-if="ruleInfo.numberOfTriggers > 0" |
23 |
:circRules="circRules" |
24 |
:triggerNumber="newTriggerNumber - 1" |
25 |
:modal="true" |
26 |
:ruleBeingEdited="ruleBeingEdited" |
27 |
:triggerBeingEdited="triggerBeingEdited" |
28 |
:letters="letters" |
29 |
/> |
30 |
</div> |
19 |
</div> |
|
|
20 |
|
31 |
<fieldset class="rows"> |
21 |
<fieldset class="rows"> |
|
|
22 |
<legend>{{ $__("Select trigger context") }}</legend> |
32 |
<ol> |
23 |
<ol> |
33 |
<li> |
24 |
<li> |
34 |
<label for="library_id" class="required" |
25 |
<label for="library_id" class="required" |
Lines 102-107
Link Here
|
102 |
</v-select> |
93 |
</v-select> |
103 |
<span class="required">{{ $__("Required") }}</span> |
94 |
<span class="required">{{ $__("Required") }}</span> |
104 |
</li> |
95 |
</li> |
|
|
96 |
</ol> |
97 |
|
98 |
<div |
99 |
class="page-section bg-warning-subtle" |
100 |
v-if="circRules.length" |
101 |
> |
102 |
<TriggersTable |
103 |
:circRules="circRules" |
104 |
:triggerNumber="newTriggerNumber - 1" |
105 |
:modal="true" |
106 |
:ruleBeingEdited="ruleBeingEdited" |
107 |
:triggerBeingEdited="triggerBeingEdited" |
108 |
:letters="letters" |
109 |
/> |
110 |
</div> |
111 |
</fieldset> |
112 |
|
113 |
<fieldset class="rows" v-if="editMode"> |
114 |
<legend v-if="ruleInfo.numberOfTriggers < newTriggerNumber"> |
115 |
{{ $__("Add new trigger") }} |
116 |
{{ " " + newTriggerNumber }} |
117 |
</legend> |
118 |
<legend v-else> |
119 |
{{ $__("Edit trigger") }} {{ " " + newTriggerNumber }} |
120 |
</legend> |
121 |
<ol> |
105 |
<li> |
122 |
<li> |
106 |
<label for="overdue_delay" |
123 |
<label for="overdue_delay" |
107 |
>{{ $__("Delay") }}: |
124 |
>{{ $__("Delay") }}: |