diff --git a/admin-dev/themes/default/img/modules_view_layout_sidebar.png b/admin-dev/themes/default/img/modules_view_layout_sidebar.png new file mode 100755 index 000000000..fff8da0fb Binary files /dev/null and b/admin-dev/themes/default/img/modules_view_layout_sidebar.png differ diff --git a/admin-dev/themes/default/img/modules_view_layout_sidebar_grey.png b/admin-dev/themes/default/img/modules_view_layout_sidebar_grey.png new file mode 100755 index 000000000..4d8964a31 Binary files /dev/null and b/admin-dev/themes/default/img/modules_view_layout_sidebar_grey.png differ diff --git a/admin-dev/themes/default/img/modules_view_table_select_row.png b/admin-dev/themes/default/img/modules_view_table_select_row.png new file mode 100755 index 000000000..7ae398042 Binary files /dev/null and b/admin-dev/themes/default/img/modules_view_table_select_row.png differ diff --git a/admin-dev/themes/default/img/modules_view_table_select_row_grey.png b/admin-dev/themes/default/img/modules_view_table_select_row_grey.png new file mode 100755 index 000000000..92f449edc Binary files /dev/null and b/admin-dev/themes/default/img/modules_view_table_select_row_grey.png differ diff --git a/admin-dev/themes/default/template/controllers/modules/content.tpl b/admin-dev/themes/default/template/controllers/modules/content.tpl index 0accbb124..1ef1591e6 100644 --- a/admin-dev/themes/default/template/controllers/modules/content.tpl +++ b/admin-dev/themes/default/template/controllers/modules/content.tpl @@ -29,5 +29,9 @@ {$module_content} {else} {include file='controllers/modules/js.tpl'} - {include file='controllers/modules/page.tpl'} + {if isset($smarty.get.select) && $smarty.get.select eq 'favorites'} + {include file='controllers/modules/favorites.tpl'} + {else} + {include file='controllers/modules/page.tpl'} + {/if} {/if} diff --git a/admin-dev/themes/default/template/controllers/modules/favorites.tpl b/admin-dev/themes/default/template/controllers/modules/favorites.tpl new file mode 100755 index 000000000..d4f26f938 --- /dev/null +++ b/admin-dev/themes/default/template/controllers/modules/favorites.tpl @@ -0,0 +1,64 @@ +
+ + {include file='controllers/modules/header.tpl'} + + {l s='Normal view'} + {l s='Favorites view'}
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + {foreach from=$modules key=km item=module} + + + + + + + + + + + {/foreach} + +
LogoNom du moduleDescriptionEtatCatégoriesIntérêtFavori 
{$module->displayName}{$module->description|truncate:80:'…'}{if isset($module->id) && $module->id gt 0}{l s='Installed'}{else}{l s='Not Installed'}{/if}{$module->categoryName} + + + +  
+ +
+
+
\ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/modules/filters.tpl b/admin-dev/themes/default/template/controllers/modules/filters.tpl index 7a4dae8be..d2755dde6 100644 --- a/admin-dev/themes/default/template/controllers/modules/filters.tpl +++ b/admin-dev/themes/default/template/controllers/modules/filters.tpl @@ -24,6 +24,39 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if !isset($logged_on_addons)} + + {if $check_url_fopen eq 'ko' OR $check_curl eq 'ko' OR $check_openssl eq 'ko'} + +
+ {l s='If you want to be able to fully use the AdminModules pannel and have free modules available, you should enable the following configuration on your server :'}
+ {if $check_url_fopen eq 'ko'}- {l s='Enable allow_url_fopen'}
{/if} + {if $check_curl eq 'ko'}- {l s='Enable php curl extension'}
{/if} + {if $check_openssl eq 'ko'}- {l s='Enable php openssl extension'}
{/if} +
+ + {else} + + +
+ +

{l s='You have a PrestaShop Addons account ?'}

+
+ + + + +
+ +
+ + + {/if} + + {/if} + +
diff --git a/admin-dev/themes/default/template/controllers/modules/header.tpl b/admin-dev/themes/default/template/controllers/modules/header.tpl index 76ec66a71..97238daf0 100644 --- a/admin-dev/themes/default/template/controllers/modules/header.tpl +++ b/admin-dev/themes/default/template/controllers/modules/header.tpl @@ -70,34 +70,4 @@
- {if !isset($logged_on_addons)} - - {if $check_url_fopen eq 'ko' OR $check_curl eq 'ko' OR $check_openssl eq 'ko'} - -
- {l s='If you want to be able to fully use the AdminModules pannel and have free modules available, you should enable the following configuration on your server :'}
- {if $check_url_fopen eq 'ko'}- {l s='Enable allow_url_fopen'}
{/if} - {if $check_curl eq 'ko'}- {l s='Enable php curl extension'}
{/if} - {if $check_openssl eq 'ko'}- {l s='Enable php openssl extension'}
{/if} -
- - {else} - - -
- -

{l s='You have a PrestaShop Addons account ?'}

-
- - - - -
- -
- - - {/if} - - {/if} diff --git a/admin-dev/themes/default/template/controllers/modules/js.tpl b/admin-dev/themes/default/template/controllers/modules/js.tpl index 2908d0081..64cf060af 100644 --- a/admin-dev/themes/default/template/controllers/modules/js.tpl +++ b/admin-dev/themes/default/template/controllers/modules/js.tpl @@ -36,6 +36,7 @@ var ajaxCurrentIndex = '{$ajaxCurrentIndex}'; var by = '{l s='by'}'; var errorLogin = '{l s='Could not login to Addons'}'; + var confirmPreferencesSaved = '{l s='Preferences saved'}'; {if isset($smarty.get.anchor)}var anchor = '{$smarty.get.anchor|htmlentities|replace:'(':''|replace:')':''|replace:'{':''|replace:'}':''}';{else}var anchor = '';{/if} @@ -279,6 +280,48 @@ + + // Method to save favorites preferences + $('.moduleFavorite').change(function() + { + var value_pref = $(this).val(); + var module_pref = $(this).attr('name'); + var action_pref = module_pref.substring(0, 1); + module_pref = module_pref.substring(2, module_pref.length); + try + { + resAjax = $.ajax({ + type:"POST", + url : ajaxCurrentIndex, + async: true, + data : { + ajax : "1", + token : token, + controller : "AdminModules", + action : "saveFavoritePreferences", + action_pref : action_pref, + module_pref : module_pref, + value_pref : value_pref + }, + success : function(data) + { + // res.status = cache or refresh + if (data == 'OK') + $('#r_' + module_pref).html(confirmPreferencesSaved); + }, + error: function(res,textStatus,jqXHR) + { + //jAlert("TECHNICAL ERROR"+res); + } + }); + } + catch(e){} + return false; + }); + + + + }); {/literal} diff --git a/admin-dev/themes/default/template/controllers/modules/page.tpl b/admin-dev/themes/default/template/controllers/modules/page.tpl index 1e4a98124..e1c21ddfb 100644 --- a/admin-dev/themes/default/template/controllers/modules/page.tpl +++ b/admin-dev/themes/default/template/controllers/modules/page.tpl @@ -29,13 +29,25 @@ {include file='controllers/modules/header.tpl'} {include file='controllers/modules/filters.tpl'} +
+ {l s='Normal view'} + {l s='Favorites view'}
+