aboutsummaryrefslogtreecommitdiff
path: root/pluginsadmin.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-08-28 12:21:29 +0200
committerneodarz <neodarz@neodarz.net>2019-08-28 12:21:29 +0200
commite1e025823c6e868e59cde9ecc8fa495ee45de7bc (patch)
treeae3450c92daec3b99059a569510a24d6ab6753a6 /pluginsadmin.html
parent03588331342e2a401ae4a8617f6225325d099fa7 (diff)
downloadshaarli_ascii-master.tar.xz
shaarli_ascii-master.zip
Update theme to current shaarli versionHEAD0.11master0.11
Diffstat (limited to '')
-rw-r--r--pluginsadmin.html28
1 files changed, 17 insertions, 11 deletions
diff --git a/pluginsadmin.html b/pluginsadmin.html
index 5cc1802..4bfaa93 100644
--- a/pluginsadmin.html
+++ b/pluginsadmin.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
{include="includes"}
</head>
@@ -16,7 +16,7 @@
<div class="clear"></div>
</noscript>
-<form method="POST" action="?do=save_pluginadmin" name="pluginform" id="pluginform">
+<form method="POST" action="?do=save_pluginadmin" 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">
@@ -27,7 +27,7 @@
<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>
@@ -77,7 +77,7 @@
<div>
{if="count($disabledPlugins)==0"}
- <p>{'No plugin disabled.'|t}</p>
+ <p class="center">{'No plugin disabled.'|t}</p>
{else}
<table>
<thead>
@@ -116,8 +116,8 @@
</section>
<div class="center more">
- More plugins available
- <a href="doc/Community-&-Related-software.html#third-party-plugins">in the documentation</a>.
+ {"More plugins available"|t}
+ <a href="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">
@@ -135,9 +135,11 @@
<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>
@@ -159,10 +161,14 @@
</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>
@@ -170,7 +176,7 @@
</form>
{include="page.footer"}
-<script src="inc/plugin_admin.js#"></script>
+<script src="js/pluginsadmin.min.js?v={$version_hash}"></script>
</body>
</html>