-
Notifications
You must be signed in to change notification settings - Fork 14
/
content-chooser.html
61 lines (51 loc) · 1.66 KB
/
content-chooser.html
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
{{#> static-view-container }}
<h2>{{t "content_types.header"}}</h2>
<ul class="unstyled-list">
<li>
<a href="/case/new?source=new" class="button button-red button-block">
{{> icon-add}}
{{t "Case"}}
</a>
<p>{{t "content_types.case.description"}}</p>
</li>
<li>
<a href="/method/new" class="button button-red button-block">
{{> icon-add}}
{{t "Method"}}
</a>
<p>{{t "content_types.method.description"}}</p>
</li>
<li>
<a href="/organization/new" class="button button-red button-block">
{{> icon-add}}
{{t "Organization"}}
</a>
<p>{{t "content_types.organization.description"}}</p>
</li>
</ul>
{{#if req.user.isadmin}}
<div class="edit-form-admin-only-section">
<h2>{{t "Admin Only"}}</h2>
<a href="/collection/new" class="button button-red button-block">
{{> icon-add}}
{{t "Collection"}}
</a>
<p>{{t "content_types.collection.description"}}</p>
<div class="mt-20">
<a href="/entries/review" class="button button-red button-block">{{t "review_entries"}}</a>
<p>{{t "content_types.review_entries.description"}}</p>
</div>
<div class="mt-20">
<a href="/user/review" class="button button-red button-block">{{t "user_list"}}</a>
<p>{{t "content_types.user_list.description"}}</p>
</div>
</div>
{{/if}}
<div role="tabpanel" class="tab-drafts">
{{#if (isSelectedContentChooserTab req "drafts")}}
{{> cards-container-draft
cardsDraft=(getDraftsForProfile req.user)
}}
{{/if}}
</div>
{{/static-view-container}}