Parent: [ddf08c] (diff)

Child: [2dcec8] (diff)

Download this file

card_field.html    68 lines (65 with data), 2.5 kB

 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
{#-
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-#}
<div class="fleft active-card">
<input type="hidden" name="card-{{index}}.id" value="{{id}}"/>
<ul class="deck">
<li class="tcenter">
<h3>{{name}}</h3>
{% if settings_href %}
<a href="{{settings_href}}" class="admin_modal" title="{{name}} Settings">
<small
data-icon="{{g.icons.perm_tool.char}}"
class="ico-r admin_modal {{g.icons.perm_tool.css}}"></small>
</a>
{% endif %}
<p style="padding-bottom: 0"><b
data-icon="{{g.icons[icon_name].char}}"
class="ico x48 {{g.icons[icon_name].css}}"></b>
</p>
<ul class="subroles">
{% for role in roles %}
{% if role.name %}
<li>includes the {{ widget.role_name(role._id) }} group</li>
{% endif %}
{% endfor %}
</ul>
</li>
{% for item in items | sort(attribute=widget.sort_key) %}
<li>
<a href="#" class="deleter">
{{ widget.item_display(item) }}
<input type="hidden" name="card-{{index}}.value"
{{ widget.j2_attrs(dict(value=widget.item_id(item))) }} />
<small data-icon="{{g.icons['perm_delete'].char}}"
class="ico-r {{g.icons['perm_delete'].css}}"
title="Remove"></small>
</a>
</li>
{% endfor %}
<li class="new-item">
{{ widget.new_item.display(name='card-%s.new' % index) }}
</li>
<li>
<a href="#" class="adder">
Add
<small data-icon="{{g.icons['plus'].char}}"
class="ico-r {{g.icons['plus'].css}}"
title="Add a user"></small>
</a>
</li>
</ul>
</div>