aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-05-23 12:34:08 +0000
committermistic100 <mistic@piwigo.org>2011-05-23 12:34:08 +0000
commit489af703b1c0c7beba790fba5c92e5a38ddb4514 (patch)
tree54c15d1e3d2a81f0829f69b6ee6cb136652c1bca /admin/themes/default
parent937aed04e68b5053e34a9364b4925b5f3cde08e7 (diff)
plugin manager : delete ordering by name, fiw some styles
git-svn-id: http://piwigo.org/svn/trunk@11010 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default')
-rw-r--r--admin/themes/default/template/plugins_list.tpl54
-rw-r--r--admin/themes/default/theme.css36
2 files changed, 41 insertions, 49 deletions
diff --git a/admin/themes/default/template/plugins_list.tpl b/admin/themes/default/template/plugins_list.tpl
index 54f051eac..7efdd822f 100644
--- a/admin/themes/default/template/plugins_list.tpl
+++ b/admin/themes/default/template/plugins_list.tpl
@@ -21,29 +21,19 @@ jQuery(document).ready(function() {
jQuery('a.deactivate_all').click(function() {
if (confirm(confirmMsg)) {
jQuery('div.active').each(function() {
- performPluginAction(jQuery(this).attr('id'), 'deactivate');
+ performPluginDeactivate(jQuery(this).attr('id'));
});
}
});
- jQuery('a.activate_all').click(function() {
- if (confirm(confirmMsg)) {
- jQuery('div.inactive').each(function() {
- performPluginAction(jQuery(this).attr('id'), 'activate');
- });
- }
- });
- function performPluginAction(id, action) {
+ function performPluginDeactivate(id) {
queuedManager.add({
type: 'GET',
dataType: 'json',
url: 'ws.php',
- data: { method: 'pwg.plugins.performAction', action: action, plugin: id, pwg_token: pwg_token, format: 'json' },
+ data: { method: 'pwg.plugins.performAction', action: 'deactivate', plugin: id, pwg_token: pwg_token, format: 'json' },
success: function(data) {
if (data['stat'] == 'ok') {
- if (action == 'deactivate')
- jQuery("#"+id).removeClass('active').addClass('inactive');
- else
- jQuery("#"+id).removeClass('inactive').addClass('active');
+ jQuery("#"+id).removeClass('active').addClass('inactive');
}
}
});
@@ -80,23 +70,13 @@ jQuery(document).ready(function() {
<div class="titrePage">
<span class="sort">
- <form action="" method="get" name="change_order">
+ <form action="" method="get" name="change_display">
<input type="hidden" name="page" value="plugins"/>
- {'Sort order'|@translate} :
- <select name="plugin_order" onchange="this.form.submit();">
- <option value="status" {if $plugin_order=='state'}selected="selected"{/if}>{'Status'|@translate}</option>
- <option value="name" {if $plugin_order=='name'}selected="selected"{/if}>{'Name'|@translate}</option>
- </select>
- &nbsp;&nbsp;|&nbsp;&nbsp;
{'Display'|@translate} :
<select name="plugin_display" onchange="this.form.submit();">
<option value="compact" {if $plugin_diplay=='compact'}selected="selected"{/if}>{'Compact'|@translate}</option>
<option value="complete" {if $plugin_display=='complete'}selected="selected"{/if}>{'Complete'|@translate}</option>
</select>
- &nbsp;&nbsp;|&nbsp;&nbsp;
- <a class="deactivate_all">{'Deactivate'|@translate} {'all'|@translate}</a>
- {* &nbsp;&nbsp;|&nbsp;&nbsp;
- <a class="activate_all">{'Activate'|@translate} {'all'|@translate}</a> *}
</form>
</span>
<h2>{'Plugins'|@translate}</h2>
@@ -107,9 +87,9 @@ jQuery(document).ready(function() {
{assign var='field_name' value='null'}
{foreach from=$plugins item=plugin name=plugins_loop}
-{if $plugin_order == 'state' AND $field_name != $plugin.STATE}
+{if $field_name != $plugin.STATE}
{if $field_name != 'null'}</fieldset>{/if}
- <fieldset class="pluginBoxes pluginsByState">
+ <fieldset class="pluginBoxes">
<legend>
{if $plugin.STATE == 'active'}
{'Active Plugins'|@translate}
@@ -122,11 +102,7 @@ jQuery(document).ready(function() {
{/if}
</legend>
{assign var='field_name' value=$plugin.STATE}
-
-{elseif $field_name == 'null'}
- <fieldset class="pluginBoxes pluginsByName">
- {assign var='field_name' value='not_null'}
-
+ {if $field_name == 'active'}<a class="deactivate_all">{'Deactivate'|@translate} {'all'|@translate}</a>{/if}
{/if}
{if not empty($plugin.AUTHOR)}
@@ -147,7 +123,7 @@ jQuery(document).ready(function() {
</td>
<td>{$plugin.DESC}</td>
</tr>
- <tr>
+ <tr class="pluginActions">
<td>
{if $plugin.STATE == 'active'}
<a href="{$plugin.U_ACTION}&amp;action=deactivate">{'Deactivate'|@translate}</a>
@@ -155,13 +131,13 @@ jQuery(document).ready(function() {
{elseif $plugin.STATE == 'inactive'}
<a href="{$plugin.U_ACTION}&amp;action=activate" {if $plugin.INCOMPATIBLE}class="incompatible"{/if}>{'Activate'|@translate}</a>
- | <a href="{$plugin.U_ACTION}&amp;action=delete" class="plugin-delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a>
+ | <a href="{$plugin.U_ACTION}&amp;action=delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a>
{elseif $plugin.STATE == 'missing'}
- <a href="{$plugin.U_ACTION}&amp;action=uninstall" class="plugin-delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a>
+ <a href="{$plugin.U_ACTION}&amp;action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a>
{elseif $plugin.STATE == 'merged'}
- <a href="{$plugin.U_ACTION}&amp;action=delete" class="plugin-delete">{'Delete'|@translate}</a>
+ <a href="{$plugin.U_ACTION}&amp;action=delete">{'Delete'|@translate}</a>
{/if}
</td>
<td>
@@ -199,13 +175,13 @@ jQuery(document).ready(function() {
{elseif $plugin.STATE == 'inactive'}
<a href="{$plugin.U_ACTION}&amp;action=activate" {if $plugin.INCOMPATIBLE}class="incompatible"{/if}>{'Activate'|@translate}</a>
- | <a href="{$plugin.U_ACTION}&amp;action=delete" class="plugin-delete"onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a>
+ | <a href="{$plugin.U_ACTION}&amp;action=delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a>
{elseif $plugin.STATE == 'missing'}
- <a href="{$plugin.U_ACTION}&amp;action=uninstall" class="plugin-delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a>
+ <a href="{$plugin.U_ACTION}&amp;action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a>
{elseif $plugin.STATE == 'merged'}
- <a href="{$plugin.U_ACTION}&amp;action=delete" class="plugin-delete">{'Delete'|@translate}</a>
+ <a href="{$plugin.U_ACTION}&amp;action=delete">{'Delete'|@translate}</a>
{/if}
</div>
</div>
diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css
index 20a6b3aad..05c6bac8a 100644
--- a/admin/themes/default/theme.css
+++ b/admin/themes/default/theme.css
@@ -884,26 +884,42 @@ h2:lang(en) { text-transform:capitalize; }
.checkActions {text-align:left;padding:0;margin:0;}
.comment A:hover {border:none;}
-.pluginBoxes {text-align:left;}
-.author-group {text-align:left;background:url('icon/remove_filter.png') left center no-repeat;padding-left:15px;margin-left:-15px;}
+.pluginBoxes {
+ text-align:left;
+ position:relative;
+}
-.pluginBox {margin-bottom:10px;-moz-border-radius:5px;}
+.pluginBox {
+ margin-bottom:10px;
+ border-width:1px;
+ border-style:solid;
+ border-radius:5px;
+ -moz-border-radius:5px;
+ }
.pluginBox table {width:99%;}
.pluginBox td {text-align:left;}
.pluginBox td.pluginDesc img {vertical-align:middle;}
.pluginBoxNameCell {width:180px; vertical-align:top;}
-.pluginBox.inactive, .pluginBox.uninstalled {margin-left:20px;opacity:0.65;filter:alpha(opacity=65);}
-.pluginsByState .pluginBox.inactive, .pluginsByState .pluginBox.uninstalled {margin-left:0px;opacity:0.8;filter:alpha(opacity=80);}
-
-.pluginMiniBox {display:inline-table; text-align:center; width:250px; height:40px; margin:5px; -moz-border-radius:5px; overflow:hidden; }
+.pluginBoxes .inactive, .pluginBoxes .uninstalled {opacity:0.8;filter:alpha(opacity=80);}
+
+.pluginMiniBox {
+ display:inline-table;
+ text-align:center;
+ width:250px;
+ height:40px;
+ margin:5px;
+ border-width:1px;
+ border-style:solid;
+ border-radius:5px;
+ -moz-border-radius:5px;
+ overflow:hidden;
+ }
.pluginMiniBoxNameCell {font-size:1.05em; margin:5px 0;}
.pluginActions {display: table-row; font-size:12px; }
.pluginActions DIV {display: table-cell; vertical-align: middle; line-height:18px; }
-.pluginMiniBox.inactive, .pluginMiniBox.uninstalled {opacity:0.65;filter:alpha(opacity=65);}
-.pluginsByState .pluginMiniBox.inactive, .pluginsByState .pluginMiniBox.uninstalled {opacity:0.8;filter:alpha(opacity=80);}
.warning:before {content:url(icon/warning.png);vertical-align:top;}
-fieldset.pluginsByName{border:none;}
+.deactivate_all {position:absolute;bottom:-10px;right:18px;color:#f36;border-bottom:1px dotted #f36;font-size:0.8em;}
.languageBoxes {min-height:0;text-align:left;}
.languageBox {display:inline-table; text-align:center; width:200px; height:40px; margin:5px; -moz-border-radius:5px; overflow:hidden; }