diff --git a/action/formidable_tablesorter_export.php b/action/formidable_ts_export.php similarity index 95% rename from action/formidable_tablesorter_export.php rename to action/formidable_ts_export.php index 842df3e..b8eefb5 100644 --- a/action/formidable_tablesorter_export.php +++ b/action/formidable_ts_export.php @@ -8,7 +8,7 @@ use Box\Spout\Writer\Common\Creator\WriterEntityFactory; use Box\Spout\Writer\Common\Creator\Style\StyleBuilder; use Box\Spout\Common\Entity\Style\Color; -function action_formidable_tablesorter_export() { +function action_formidable_ts_export() { $data = json_decode(_request('data')); $type_export = _request('type_export'); $filename = _request('filename'); diff --git a/css/formidable_tablesorter_prive_bloc_entete.css b/css/formidable_tablesorter_prive_bloc_entete.css deleted file mode 100644 index 3e7acd4..0000000 --- a/css/formidable_tablesorter_prive_bloc_entete.css +++ /dev/null @@ -1,34 +0,0 @@ -/** Le bloc d'action et d'aide**/ -.formidable_tablesorter-preambule { - display:flex; - justify-content:space-around; -} -.formidable_tablesorter-preambule > *{ - width:45%; - max-width:1024px; - height:min-content; -} -.formidable_tablesorter-preambule .aide { - padding:1ex; -} -.formidable_tablesorter-preambule .aide p { - padding:0px; - margin:0px; -} -.formidable_tablesorter-preambule .boutons{ - text-align:left; -} -.formidable_tablesorter-preambule .boutons label { - padding:4px; -} -.formidable_tablesorter #columnSelectorButton{ - display:inline-block; -} -.formidable_tablesorter #columnSelector { - display: flex; - flex-wrap:wrap; -} -.formidable_tablesorter #columnSelector label { - width:50%; - padding:0px; -} diff --git a/css/formidable_tablesorter.css b/css/formidable_ts.css similarity index 86% rename from css/formidable_tablesorter.css rename to css/formidable_ts.css index 503d0d9..f8d2445 100644 --- a/css/formidable_tablesorter.css +++ b/css/formidable_ts.css @@ -2,20 +2,20 @@ * éviter les debordement, * inspiré de https://mottie.github.io/tablesorter/docs/example-widget-resizable.html **/ -.formidable_tablesorter-wrapper { +.formidable_ts-wrapper { max-width:100%; width:100%; overflow-x:scroll; } -.formidable_tablesorter-wrapper table { +.formidable_ts-wrapper table { width: auto; } -.formidable_tablesorter-wrapper .tablesorter td { +.formidable_ts-wrapper .tablesorter td { overflow: hidden; text-overflow: ellipsis; min-width: 10px; } -.formidable_tablesorter-wrapper .tablesorter th { +.formidable_ts-wrapper .tablesorter th { overflow: hidden; text-overflow: ellipsis; min-width: 10px; diff --git a/css/formidable_ts_prive_bloc_entete.css b/css/formidable_ts_prive_bloc_entete.css new file mode 100644 index 0000000..b2daf1b --- /dev/null +++ b/css/formidable_ts_prive_bloc_entete.css @@ -0,0 +1,34 @@ +/** Le bloc d'action et d'aide**/ +.formidable_ts-preambule { + display:flex; + justify-content:space-around; +} +.formidable_ts-preambule > *{ + width:45%; + max-width:1024px; + height:min-content; +} +.formidable_ts-preambule .aide { + padding:1ex; +} +.formidable_ts-preambule .aide p { + padding:0px; + margin:0px; +} +.formidable_ts-preambule .boutons{ + text-align:left; +} +.formidable_ts-preambule .boutons label { + padding:4px; +} +.formidable_ts #columnSelectorButton{ + display:inline-block; +} +.formidable_ts #columnSelector { + display: flex; + flex-wrap:wrap; +} +.formidable_ts #columnSelector label { + width:50%; + padding:0px; +} diff --git a/css/formidable_tablesorter_prive_layout_page.css b/css/formidable_ts_prive_layout_page.css similarity index 52% rename from css/formidable_tablesorter_prive_layout_page.css rename to css/formidable_ts_prive_layout_page.css index b77129e..4524ce5 100644 --- a/css/formidable_tablesorter_prive_layout_page.css +++ b/css/formidable_ts_prive_layout_page.css @@ -2,15 +2,15 @@ body { x-overflow:hidden; } -.formidable_tablesorter .largeur { +.formidable_ts .largeur { width:auto; margin-left:1em; margin-right:1em; } -.formidable_tablesorter #conteneur, .formidable_tablesorter #contenu{ +.formidable_ts #conteneur, .formidable_ts #contenu{ width:100%; } -.formidable_tablesorter #navigation { +.formidable_ts #navigation { display:none; } diff --git a/formidable_ts_administrations.php b/formidable_ts_administrations.php index 3d58e9a..2859ed4 100644 --- a/formidable_ts_administrations.php +++ b/formidable_ts_administrations.php @@ -42,9 +42,9 @@ function formidable_ts_configurer_crayons() { ecrire_config('crayons/espaceprive', 'on'); $exec_autorise = lire_config('crayons/exec_autorise'); if (!$exec_autorise) { - ecrire_config('crayons/exec_autorise', 'formidable_tablesorter'); - } elseif ($exec_autorise !== '*' and strpos($exec_autorise, 'formidable_tablesorter') === false) { - ecrire_config('crayons/exec_autorise', $exec_autorise.',formidable_tablesorter'); + ecrire_config('crayons/exec_autorise', 'formidable_ts'); + } elseif ($exec_autorise !== '*' and strpos($exec_autorise, 'formidable_ts') === false) { + ecrire_config('crayons/exec_autorise', $exec_autorise.',formidable_ts'); } } diff --git a/formidable_ts_pipelines.php b/formidable_ts_pipelines.php index a87c6d5..832201f 100644 --- a/formidable_ts_pipelines.php +++ b/formidable_ts_pipelines.php @@ -21,7 +21,7 @@ function formidable_ts_affiche_gauche($flux) { $id_formulaire = sql_getfetsel('id_formulaire','spip_formulaires_reponses','id_formulaires_reponse='.$args['id_formulaires_reponse']); } $boite_fermer = boite_fermer(); - $url = parametre_url(generer_url_ecrire('formidable_tablesorter'),'id_formulaire',$id_formulaire); + $url = parametre_url(generer_url_ecrire('formidable_ts'),'id_formulaire',$id_formulaire); $url = parametre_url($url, 'statut', 'publie'); $lien = icone_horizontale(_T('formidable_ts:tableau_reponses'), $url, 'formulaire-reponses-24'); $flux['data'] = str_replace($boite_fermer,"$lien\n\r$boite_fermer", $flux['data']); diff --git a/inclure/formidable_tablesorter_preambule.html b/inclure/formidable_tablesorter_preambule.html deleted file mode 100644 index 2ea0328..0000000 --- a/inclure/formidable_tablesorter_preambule.html +++ /dev/null @@ -1,6 +0,0 @@ -