ntopng/scripts/plugins/endpoints/shell_alert_endpoint/templates/shell_endpoint.template
Simone Mainardi 1dce9e5842 Migrates to Bootstrap 5
Adds bootstrap-5.0.0-beta3-dist

Adds bootstrap-5.0.0

Updates bootstrap-5.0.0-beta3-dist to bootstrap-5.0.0-dist

initial migration to bs v5

porting to bs5

improvements on dropdown menu filter

fixed host map dropdown

removed excessive padding

fix button toggle

re-add blog news

removed text decoration for links

fix button layout (#5348)

remove underscore from href (#5347)
2021-05-18 11:39:59 +02:00

32 lines
No EOL
984 B
Text

<div class="mb-3 row">
<label class="col-form-label col-sm-3">
<b>{{ i18n("shell_alert_endpoint.shell_script") }}</b>
</label>
<div class="col-sm-5">
<select name="shell_script" class="form-select" required>
{%
for key, dir in pairs(ntop.readdir("/usr/share/ntopng/scripts/shell/")) do
if(key:match('^(.*).sh$')) then
%}
<option value='{{ key }}'>{{ dir }}</option>
{%
end
%}
{%
end
%}
{%
for key, dir in pairs(ntop.readdir(dirs.installdir.."/scripts/shell")) do
if(key:match('^(.*).sh$')) then
%}
<option value='{{ key }}'>{{ dir }}</option>
{%
end
%}
{%
end
%}
</select>
</div>
</div>
<small>{* i18n('shell_alert_endpoint.shell_description.path_description') *}</small>