From 9d2fc4fa133dc78b862b3ca15f3971be11548f1d Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 12 Oct 2016 12:33:22 +0200 Subject: [PATCH] plugin admin first version --- tpl/default/css/shaarli.css | 35 +++++++- tpl/default/page.header.html | 12 ++- tpl/default/pluginsadmin.html | 145 ++++++++++++++++++++++++++++++++++ 3 files changed, 187 insertions(+), 5 deletions(-) create mode 100644 tpl/default/pluginsadmin.html diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index a1435b37..f57c0bb0 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -619,6 +619,10 @@ pre { border-bottom: 1px solid #797979; } +.page-form h3 { + text-align: center; +} + .page-form a { color: #b0ddce; font-weight: bold; @@ -640,6 +644,7 @@ pre { .page-form textarea { height: 240px; + padding: 15px 5px 3px 15px; resize: vertical; overflow-y: auto; word-wrap:break-word @@ -652,7 +657,7 @@ pre { } .page-form input[type="submit"] { - margin: 10px 0; + margin: 15px 5px; height: 35px; width: 150px; background: #1b926c; @@ -712,6 +717,32 @@ pre { font-size: 0.7em; } +.page-form section { + margin-top: 20px; +} + + +.page-form table { + margin: auto; + width: 90%; +} + +.page-form table .order { + text-decoration: none; +} + +.page-form table, .page-form th, .page-form td { + border-width: 1px 0; + border-style: solid; + border-color: #b0ddce; +} + +.page-form th, .page-form td { + padding: 5px; + +} + +/* Awesomeplete fix */ .page-form .awesomplete { width: 80%; } @@ -875,7 +906,7 @@ pre { .label-tag { border: 1px solid #505050; - font-size: 0.9em; + font-size: 1em; } .label-tag:hover { diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index 335ef686..177b32fb 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -153,11 +153,17 @@ {/if} {if="!empty($plugin_errors) && isLoggedIn()"} - + +
+ +
+ {/if}
diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html new file mode 100644 index 00000000..189c103b --- /dev/null +++ b/tpl/default/pluginsadmin.html @@ -0,0 +1,145 @@ + + + + {include="includes"} + + +{include="page.header"} + + + +
+
+
+
+

{'Plugin administration'|t}

+ +
+

{'Enabled Plugins'|t}

+ +
+ {if="count($enabledPlugins)==0"} +

{'No plugin enabled.'|t}

+ {else} + + + + + + + + + + + {loop="$enabledPlugins"} + + + + + + + {/loop} + +
{'Disable'|t}{'Order'|t}{'Name'|t}{'Description'|t}
+ {if="count($enabledPlugins)>1"} + + ▲ + + + ▼ + + {/if} + +
+ {/if} +
+
+ +
+

{'Disabled Plugins'|t}

+ +
+ {if="count($disabledPlugins)==0"} +

{'No plugin disabled.'|t}

+ {else} + + + + + + + {loop="$disabledPlugins"} + + + + + + {/loop} +
{'Enable'|t}{'Name'|t}{'Description'|t}
+ {/if} +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+
+

{'Plugin configuration'|t}

+
+
+ {if="count($enabledPlugins)==0"} +

{'No plugin enabled.'|t}

+ {else} + {loop="$enabledPlugins"} + {if="count($value.parameters) > 0"} +
+

{function="str_replace('_', ' ', $key)"}

+ {loop="$value.parameters"} +
+
+ +
+
+ +
+
+ {/loop} +
+ {/if} + {/loop} + {/if} +
+ +
+
+
+
+
+
+ +{include="page.footer"} + + + + -- 2.41.0