blob: b4933eb193c1c852bbbb4e1b578a43ca77916a1b (
plain)
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
63
64
65
66
67
68
|
<form class="js-form" autocomplete="off">
<div class="modal-head">
<h2>Bulk Apply Permission Template</h2>
</div>
<div class="modal-body">
<div class="js-modal-messages"></div>
{{#if done}}
<div class="alert alert-success">
{{t 'projects_role.apply_template.success'}}
</div>
{{/if}}
{{#unless done}}
{{#notNull permissionTemplates}}
<div class="modal-field">
<label for="project-permissions-template">
Template<em class="mandatory">*</em>
</label>
<select id="project-permissions-template">
{{#each permissionTemplates}}
<option value="{{id}}">{{name}}</option>
{{/each}}
</select>
</div>
{{else}}
<i class="spinner"></i>
{{/notNull}}
<div class="modal-field">
<label>Apply To</label>
<ul style="padding-top: 4px;">
{{#if selectionTotal}}
<li>
<input value="selected" id="apply-to-selected" name="apply-to"
type="radio" checked>
<label
for="apply-to-selected"
style="float: none; left: 0; display: inline; padding: 0;">
Only Selected ({{selectionTotal}})
</label>
</li>
{{/if}}
<li>
<input value="all" id="apply-to-all" name="apply-to" type="radio"
{{#unless selectionTotal}}checked{{/unless}}>
<label
for="apply-to-all"
style="float: none; left: 0; display: inline; padding: 0;">
All ({{total}})
</label>
</li>
</ul>
</div>
{{/unless}}
</div>
<div class="modal-foot">
{{#unless done}}
{{#notNull permissionTemplates}}
<button class="js-apply">Apply</button>
{{/notNull}}
{{/unless}}
<a href="#" class="js-modal-close">Close</a>
</div>
</form>
|