Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The page License List has been renamed to Export List. The page can now export License List (as before) and Copyright List as well. The Copyright List has a filter to export all copyrights or to export copyrights from files which do not have license. Files without license here refers to: 1. File had no license finding by agents and no license was added by users. 2. File had license findings by agents but were either removed or file was marked as irrelevant. The ui-license-list-form.html.twig was renamed to ui-export-list.html.twig as the template generates full response, not just the form. Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>
- Loading branch information
Showing
8 changed files
with
817 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 %} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.