<!DOCTYPE html>
-<html>
+<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
{include="includes"}
</head>
<div class="clear"></div>
</noscript>
-<form method="POST" action="?do=save_pluginadmin" name="pluginform" id="pluginform">
+<form method="POST" action="{$base_path}/admin/plugins" name="pluginform" id="pluginform" class="pluginform-container">
<div class="pure-g">
<div class="pure-u-lg-1-8 pure-u-1-24"></div>
<div class="pure-u-lg-3-4 pure-u-22-24 page-form page-form-complete">
<div>
{if="count($enabledPlugins)==0"}
- <p>{'No plugin enabled.'|t}</p>
+ <p class="center">{'No plugin enabled.'|t}</p>
{else}
<table id="plugin_table">
<thead>
<div>
{if="count($disabledPlugins)==0"}
- <p>{'No plugin disabled.'|t}</p>
+ <p class="center">{'No plugin disabled.'|t}</p>
{else}
<table>
<thead>
<div class="center more">
{"More plugins available"|t}
- <a href="doc/Community-&-Related-software.html#third-party-plugins">{"in the documentation"|t}</a>.
+ <a href="{$root_path}/doc/html/Community-&-Related-software/#third-party-plugins">{"in the documentation"|t}</a>.
</div>
<div class="center">
<input type="submit" value="{'Save'|t}" name="save">
<input type="hidden" name="token" value="{$token}">
</form>
-<form action="?do=save_pluginadmin" method="POST">
+<form action="{$base_path}/admin/plugins" method="POST">
<div class="pure-g">
<div class="pure-u-lg-1-8 pure-u-1-24"></div>
<div class="pure-u-lg-3-4 pure-u-22-24 page-form page-form-light">
<section id="plugin_parameters">
<div>
{if="count($enabledPlugins)==0"}
- <p>{'No plugin enabled.'|t}</p>
+ <p class="center">{'No plugin enabled.'|t}</p>
{else}
+ {$nbParameters=0}
{loop="$enabledPlugins"}
+ {$nbParameters=$nbParameters+count($value.parameters)}
{if="count($value.parameters) > 0"}
<div class="plugin_parameters">
<h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
</div>
{/if}
{/loop}
+ {if="$nbParameters===0"}
+ <p class="center">{'No parameter available.'|t}</p>
+ {else}
+ <div class="center">
+ <input type="submit" name="parameters_form" value="{'Save'|t}"/>
+ </div>
+ {/if}
{/if}
- <div class="center">
- <input type="submit" name="parameters_form" value="{'Save'|t}"/>
- </div>
</div>
</section>
</div>
</div>
+ <input type="hidden" name="token" value="{$token}">
</form>
{include="page.footer"}
-<script src="inc/plugin_admin.js#"></script>
+<script src="{$asset_path}/js/pluginsadmin.min.js?v={$version_hash}#"></script>
</body>
</html>