-
Notifications
You must be signed in to change notification settings - Fork 400
/
ui-export-list.html.twig
160 lines (156 loc) · 5.17 KB
/
ui-export-list.html.twig
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{# Copyright 2016-2017,2020 Siemens AG
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
This file is offered as-is, without any warranty.
#}
{% extends "include/base.html.twig" %}
{% block content %}
{{ parent() }}
<div id="exportList" style="padding-bottom:2em">
<ul>
<li><a href="#licenseList">License List</a></li>
<li><a href="#copyrightList">Copyright List</a></li>
</ul>
<div id="licenseList">
<form method='POST'>
<ol>
<li>
<span>
{{ "Which agents do you want to include?"|trans }}
</span>
<ul>
<li>
<label>
<input type="checkbox" name="agentToInclude_monk" value="yes" {% if agentToInclude_monk %}checked{% endif %}>
Monk
</label>
</li>
<li>
<label>
<input type="checkbox" name="agentToInclude_nomos" value="yes" {% if agentToInclude_nomos %}checked{% endif %}>
Nomos
</label>
</li>
<li>
<label>
<input type="checkbox" name="agentToInclude_ninka" value="yes" {% if agentToInclude_ninka %}checked{% endif %}>
Ninka
</label>
</li>
<li>
<label>
<input type="checkbox" name="agentToInclude_ojo" value="yes" {% if agentToInclude_ojo %}checked{% endif %}>
Ojo
</label>
</li>
<li>
<label>
<input type="checkbox" name="agentToInclude_reportImport" value="yes" {% if agentToInclude_reportImport %}checked{% endif %}>
Report Import
</label>
</li>
</ul>
</li>
<li>
<label>
<input type="checkbox" name="doNotIncludeSubfolder" value="yes" {% if not includeSubfolder %}checked{% endif %}>
Do not include subdirectories?
</label>
</li>
<li>
<label>
<input type="checkbox" name="showContainers" value="yes" {% if showContainers %}checked{% endif %}>
Show directories and containers?
</label>
</li>
<li>
<label>
Exclude:
<input name="exclude" value="{{ exclude|e }}">
<br/>
Exclude files containing some substring in the path. 'mac' and it should
exclude all files and directories containing the substring 'mac'.
</label>
</li>
<li>
<label>
<input type="checkbox" name="output" value="dltext" {% if dltext %}checked{% endif %}>
Download CSV after creation?
</label>
</li>
</ol>
<input type='submit' value='{{ "Generate list"|trans }}'>
</form>
</div>
<div id="copyrightList">
<form method='POST'>
<input type="hidden" name="export_copy" value="yes" />
<ol>
<li>
{{ "Which copyrights to export?"|trans }}
<ul>
<li>
<label>
<input type="radio" name="copyright_type" value="all" {% if copy_type_all %}checked{% endif %} />
{{ "All files"|trans }}
</label>
</li>
<li>
<label>
<input type="radio" name="copyright_type" value="nolic" {% if copy_type_nolic %}checked{% endif %} />
{{ "Files without licenses" }}
</label>
</ul>
</li>
<li>
<label>
Exclude:
<input name="exclude" value="{{ exclude|e }}">
<br/>
Exclude files containing some substring in the path. 'mac' and it should
exclude all files and directories containing the substring 'mac'.
</label>
</li>
<li>
<label>
<input type="checkbox" name="output" value="dltext" {% if dltext %}checked{% endif %}>
Download CSV after creation?
</label>
</li>
</ol>
<input type='submit' value='{{ "Generate list"|trans }}'>
</form>
</div>
</div>
<p>
With this tool you will only be able to obtain a list with at maximum
{{ NomostListNum }} entries.
For a full list run fo_nomos_license_list from the command line.
This Limit can be modified by the administrator.
</p>
<hr />
{% for warn in warnings %}
{{ warn }}
{% endfor %}
<pre>
{{ listoutput }}
</pre>
{% endblock %}
{% block foot %}
{{ parent() }}
<script src="scripts/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript">
var exportCookie = 'stickyEmailTab';
$(document).ready(function() {
$("#exportList").tabs({
active: ($.cookie(exportCookie) || {% if export_copy %}1{% else %}0{% endif %}),
activate: function(e, ui){
// Get active tab index and update cookie
var idString = $(e.currentTarget).attr('id');
idString = parseInt(idString.slice(-1)) - 1;
$.cookie(exportCookie, idString);
}
});
});
</script>
{% endblock %}