From 639f46d8a4d5986cbcd74b9ed504b4589660cb3b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 14 Apr 2021 15:46:36 +0200 Subject: [PATCH] Add LSdefaut copyable feature and use it in showTechInfo --- src/includes/class/class.LSsession.php | 11 +- src/includes/js/LSdefault.js | 56 +++++++---- src/includes/js/LSinfosBox.js | 7 +- src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo | Bin 66458 -> 66578 bytes src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po | 94 ++++++++++-------- src/lang/ldapsaisie.pot | 92 +++++++++-------- src/templates/default/showTechInfo.tpl | 16 +-- 7 files changed, 164 insertions(+), 112 deletions(-) diff --git a/src/includes/class/class.LSsession.php b/src/includes/class/class.LSsession.php index 00f1f33a..e537850a 100644 --- a/src/includes/class/class.LSsession.php +++ b/src/includes/class/class.LSsession.php @@ -354,7 +354,7 @@ class LSsession { */ private static function startLStemplate() { if ( self :: loadLSclass('LStemplate') ) { - return LStemplate :: start( + if (!LStemplate :: start( array( 'smarty_path' => LSconfig :: get('Smarty'), 'template_dir' => LS_ROOT_DIR . '/'. LS_TEMPLATES_DIR, @@ -366,7 +366,16 @@ class LSsession { 'debug' => LSdebug, 'debug_smarty' => (isset($_REQUEST) && isset($_REQUEST['LStemplate_debug'])), ) + )) + return False; + LStemplate :: addHelpInfo( + 'LSdefault', + array( + 'copy_to_clipboard' => _('Copy to clipboard'), + 'copied' => _('Copied!'), + ) ); + return True; } return False; } diff --git a/src/includes/js/LSdefault.js b/src/includes/js/LSdefault.js index 95d428eb..f89ab8d1 100644 --- a/src/includes/js/LSdefault.js +++ b/src/includes/js/LSdefault.js @@ -74,6 +74,17 @@ var LSdefault = new Class({ this.initializeLang(); + document.getElements('.copyable').each(function(el) { + var btn = new Element('img'); + btn.setProperties({ + src: this.imagePath('copy') + }); + btn.addClass('btn'); + btn.injectAfter(el); + btn.addEvent('click',this.onCopyBtnClick.bind(this, {btn: btn, element: el})); + this.addHelpInfo(btn, 'LSdefault', 'copy_to_clipboard'); + }, this); + this.toggle_menu = $('toggle-menu'); if (this.toggle_menu) { this.toggle_menu.addEvent('click', this.toggleMenu.bind(this)); @@ -239,29 +250,30 @@ var LSdefault = new Class({ return new Hash(); }, - addHelpInfo: function(el,group,name) { - if ($type(this.LSjsConfig['helpInfo'])) { - if ($type(el)=='element') { - if ($type(this.LSjsConfig['helpInfo'][group])) { - if ($type(this.LSjsConfig['helpInfo'][group][name])) { - this.addTip(el); - el.store('tip:title',this.LSjsConfig['helpInfo'][group][name]); - } - } - } + addHelpInfo: function(el, group, name) { + var helpInfo = this.getHelpInfo(group, name); + if (helpInfo && $type(el)=='element') { + this.addTip(el); + el.store('tip:title',this.LSjsConfig.helpInfo[group][name]); } }, - setHelpInfo: function(el,group,name) { - if ($type(this.LSjsConfig['helpInfo'])) { - if ($type(el)=='element') { - if ($type(this.LSjsConfig['helpInfo'][group])) { - if ($type(this.LSjsConfig['helpInfo'][group][name])) { - el.store('tip:title',this.LSjsConfig['helpInfo'][group][name]); - } + getHelpInfo: function(group, name) { + if ($type(this.LSjsConfig.helpInfo)) { + if ($type(this.LSjsConfig.helpInfo[group])) { + if ($type(this.LSjsConfig.helpInfo[group][name])) { + return this.LSjsConfig.helpInfo[group][name]; } } } + return null; + }, + + setHelpInfo: function(el, group, name) { + var helpInfo = this.getHelpInfo(group, name); + if (helpInfo && $type(el)=='element') { + el.store('tip:title', helpInfo); + } }, addTip: function(el) { @@ -288,6 +300,16 @@ var LSdefault = new Class({ toggleMenu: function() { $('main').toggleClass('menu-visible'); + }, + + onCopyBtnClick: function(params) { + var txt = new Element('textarea'); + txt.value = params.element.textContent; + txt.injectInside(document.body); + txt.select(); + document.execCommand("copy"); + txt.remove(); + this.LSinfos.addInfo(this.getHelpInfo('LSdefault', 'copied'), true); } }); diff --git a/src/includes/js/LSinfosBox.js b/src/includes/js/LSinfosBox.js index 606e39ca..8799d5ec 100644 --- a/src/includes/js/LSinfosBox.js +++ b/src/includes/js/LSinfosBox.js @@ -100,7 +100,8 @@ var LSinfosBox = new Class({ } }, - addInfo: function(html) { + addInfo: function(html, clear) { + if (clear) this.clear(); var ul = this.content.getLast("ul"); var add = 1; if (!$type(ul)) { @@ -151,5 +152,9 @@ var LSinfosBox = new Class({ else { this.displayInUl(html); } + }, + + clear: function() { + this.content.empty(); } }); diff --git a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo index 582ee7117b8d8f941b7d26913553be20fe29bcc1..97617fc200991783efcbec2b03aecb87aa4d8d4b 100644 GIT binary patch delta 11094 zcmYk>2YgT0|HttYBZOE9u_cJu8pMi_*kaV)Gl(5AODJDd?V_mKYSn6E6{SW|v(Zx2 zXwhG5SBFil|LgrdCy&4T=qJz5=iK|f_uO;Nz28I^Pf0g-YC6x=fOMZ2w%0z!6hQy% z#%xMs%*$Z48neEXF}ZL97Q+Kr7H?op3@mL7scDIYa4eR=rC1P8U{1W{e2FEfb8t|Q zF&-01Qk#Yr*Z}9FKJY85L-&zBnXFt@24fZs$2?dQGhjO`g59t%PDDRkgMpZgI_{A3 zB*t=m^AkxWb`&UQ44pGAQ5_hEF*pxf;5qDwVec4I3nySzJdC=~OVmjDh8vR(3t(|9 zjJ_C)>Ogbk&P{tv&-G0ri7q$-b;r}O39iE&_y{$WzUA!@hoV1q9rT{i)$K78?eVUC zFsdV?Fb9ssEI1o=+%oj2VLeG!+=+Sd2x`Xr;j0r%0)X)c`I#AUagX&mA z%zfpQ76R{qiL5*1M2s(vj zFgsSjj93TN;U<_LTVZBQL@nYm&Xp02zZUv28Z^YW(0iwqto~S^_CRcd9kDKM!8-UD z8)CJ}wtXV1(>Z7V1Vl?MbxQx?xWI0t4_MYHgfD zb?kT48o7&FRL?OtzD6ykpz8L7g;5tOfm%D&Fdk!3=i7|Bv3;0d&;J7wJ+E1#><7Y8 zbqwkPJy3Hu8oT0TY=k#33Bzj`l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iLk\n" "Language-Team: LdapSaisie \n" @@ -441,83 +441,83 @@ msgstr "LSformRule_%{type} : Le paramètre %{param} n'est pas défini." msgid "LSformRule: Unknown rule type %{type}." msgstr "LSformRule : Type de règle %{type} inconnu." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:240 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:244 msgid "Failed to set post data on creation form." msgstr "Impossible de définir les données dans le formulaire de création." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:246 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:250 msgid "Error validating creation form." msgstr "Une erreur est survenue en validant le formulaire de création." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:251 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:255 msgid "Failed to validate object data." msgstr "Impossible de valider les données de l'objet." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:258 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:262 msgid "Failed to generate DN for this object." msgstr "Impossible de générer le DN de cet objet." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:272 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:276 msgid "Error creating object on LDAP server." msgstr "Une erreur est survenue en création cet objet dans l'annuaire LDAP." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:278 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:282 msgid "An object already exist on LDAP server with DN %{dn}." msgstr "Un objet existe déjà dans l'annuaire LDAP avec le DN %{dn}." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:289 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:293 msgid "" "Failed to load existing object %{dn} from LDAP server. Can't update object." msgstr "" "Impossible de charger l'objet existant %{dn} depuis l'annuaire LDAP. " "Impossible de mettre à jour cet objet." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:297 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:301 msgid "Failed to set post data on update form." msgstr "Impossible de définir les données dans le formulaire de mise à jours." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:303 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:307 msgid "Error validating update form." msgstr "Une erreur est survenue en validant le formulaire de mise à jour." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:313 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:317 msgid "Error updating object on LDAP server." msgstr "" "Une erreur est survenue en mettant à jour cet objet dans l'annuaire LDAP." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:681 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:689 msgid "LSio: Post data not found or not completed." msgstr "LSio : les données transmises sont introuvables ou incomplètes." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:684 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:692 msgid "LSio: object type invalid." msgstr "LSio : type d'objet invalide." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:687 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:695 msgid "LSio: input/output format %{format} invalid." msgstr "LSio : Le format d'entrée/sortie %{format} est invalide." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:690 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:698 msgid "LSio: Fail to initialize input/output driver." msgstr "LSio : Impossible d'initialiser le pilote d'entrée/sortie." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:693 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:701 msgid "LSio: Fail to load objects's data from input file." msgstr "" "LSio: Impossible de charger les données des objets depuis le fichier " "d'import." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:696 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:704 msgid "LSio: Fail to load objects's data to export from LDAP directory." msgstr "" "LSio: Impossible de charger les données des objets à exporter depuis " "l'annuaire LDAP." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:699 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:707 msgid "LSio: Fail to export objects's data." msgstr "LSio: Impossible d'exporter les données des objets." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattr_ldap_pwdHistory.php:76 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattr_ldap_pwdHistory.php:77 msgid "Unknown (%{raw_value})" msgstr "Inconnue (%{raw_value})" @@ -556,7 +556,7 @@ msgid "Attribute" msgstr "Attribut" #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_mailQuota.php:101 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:126 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:135 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_quota.php:102 #: templates/default/LSformElement_mailQuota_field.tpl:17 msgid "Incorrect value" @@ -651,7 +651,7 @@ msgstr "Affichier la clé en entier." msgid "Unknown type" msgstr "Type inconnu" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:234 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:243 msgid "" "LSformElement_valueWithUnit : Units configuration data are missing for the " "attribute %{attr}." @@ -770,31 +770,39 @@ msgstr "" "LStemplate : Le fichier de template '%{tpl}' est maintenant déprécié. Merci " "de mettre à jour vos templates en vous référant à la documentation." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:426 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:378 +msgid "Copy to clipboard" +msgstr "Copier dans le presse-papier" + +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:379 +msgid "Copied!" +msgstr "Copié !" + +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:433 msgid "Smarty - An exception occured displaying template '%{template}'" msgstr "" "Smarty - Un erreur est survenue en affichant le modèle de page '%{template}'." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:446 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:453 msgid "Smarty - An exception occured fetching template '%{template}'" msgstr "Smarty - Un erreur est survenue en générant le modèle '%{template}'." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:461 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:471 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:468 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:478 msgid "A fatal error occured. If problem persist, please contact support." msgstr "" "Une erreur irrécupérable est survenue. Si le problème persiste, merci de " "contacter le support." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:470 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:477 msgid "A fatal error occured." msgstr "Une erreur fatale est survenue." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:670 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:677 msgid "LStemplate : Template %{file} not found." msgstr "LStemplate : le template %{file} est introuvable." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:673 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:680 msgid "" "LStemplate : Fail to execute trigger %{callable} on event %{event} : is not " "callable." @@ -802,7 +810,7 @@ msgstr "" "LStemplate : Échec d'exécution du déclencheur %{callable} lors de événement " "%{event} : il n'est pas un callable." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:676 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:683 msgid "" "LStemplate : Error during the execution of the trigger %{callable} on event " "%{event}." @@ -898,11 +906,11 @@ msgstr "" "LSformRule_differentPassword : Les autres attributs mots de passe doivent " "utiliser LSattr_ldap :: password. Ce n'est pas le cas de l'attribut %{attr}." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:256 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:261 msgid "The value of field %{label} is invalid." msgstr "La valeur du champ %{label} est incorrecte." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:744 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:754 msgid "" "LSattribute : Attribute %{attr} : LDAP or HTML types unknow (LDAP = %{ldap} " "& HTML = %{html})." @@ -910,7 +918,7 @@ msgstr "" "LSattribute : Attribut %{attr} : Les types LDAP ou HTML sont inconnus (LDAP " "= %{ldap} & HTML = %{html})." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:747 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:757 msgid "" "LSattribute : The function %{func} to display the attribute %{attr} is " "unknow." @@ -918,14 +926,14 @@ msgstr "" "LSattribute : La fonction %{func} pour afficher l'attribut %{attr} est " "inconnue." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:750 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:760 msgid "" "LSattribute : The rule %{rule} to validate the attribute %{attr} is unknow." msgstr "" "LSattribute : La règle %{rule} de validation de l'attribut %{attr} n'existe " "pas." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:753 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:763 msgid "" "LSattribute : Configuration data to verify the attribute %{attr} are " "incorrect." @@ -933,22 +941,22 @@ msgstr "" "LSattribute : Les données de configuration pour vérifier l'attribut %{attr} " "sont incorrecte." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:756 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:766 msgid "" "LSattribute : The function %{func} to save the attribute %{attr} is unknow." msgstr "" "LSattribute : La fonction %{func} pour sauvegarder l'attribut %{attr} est " "inconnue." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:759 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:769 msgid "LSattribute : The value of the attribute %{attr} can't be generated." msgstr "LSattribute : La valeur de l'attribut %{attr} ne peut être générée." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:762 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:772 msgid "LSattribute : Generation of the attribute %{attr} failed." msgstr "LSattribute : La génération de l'attribut %{attr} a échouée." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:765 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:775 msgid "" "LSattribute : Generation of the attribute %{attr} did not return a correct " "value." @@ -956,7 +964,7 @@ msgstr "" "LSattribute : La génération de l'attribut %{attr} n'a pas retournée de " "valeur correcte." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:768 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:778 msgid "" "LSattribute : The attr_%{type} of the attribute %{name} is not yet defined." msgstr "" @@ -2380,7 +2388,7 @@ msgid "Data entry form" msgstr "Masque de saisie" #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:955 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1673 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1702 msgid "Object has been added." msgstr "L'objet a été ajouté." @@ -2389,17 +2397,17 @@ msgid "My account" msgstr "Mon compte" #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1155 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1847 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1876 msgid "The object has been partially modified." msgstr "L'objet a été partiellement modifié." #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1158 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1850 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1879 msgid "The object has been modified successfully." msgstr "L'objet a bien été modifié." #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1273 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1891 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1920 msgid "%{objectname} has been successfully deleted." msgstr "%{objectname} a bien été supprimé." diff --git a/src/lang/ldapsaisie.pot b/src/lang/ldapsaisie.pot index 4e75c2e2..c9f610d4 100644 --- a/src/lang/ldapsaisie.pot +++ b/src/lang/ldapsaisie.pot @@ -364,76 +364,76 @@ msgstr "" msgid "LSformRule: Unknown rule type %{type}." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:240 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:244 msgid "Failed to set post data on creation form." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:246 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:250 msgid "Error validating creation form." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:251 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:255 msgid "Failed to validate object data." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:258 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:262 msgid "Failed to generate DN for this object." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:272 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:276 msgid "Error creating object on LDAP server." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:278 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:282 msgid "An object already exist on LDAP server with DN %{dn}." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:289 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:293 msgid "" "Failed to load existing object %{dn} from LDAP server. Can't update object." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:297 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:301 msgid "Failed to set post data on update form." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:303 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:307 msgid "Error validating update form." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:313 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:317 msgid "Error updating object on LDAP server." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:681 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:689 msgid "LSio: Post data not found or not completed." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:684 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:692 msgid "LSio: object type invalid." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:687 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:695 msgid "LSio: input/output format %{format} invalid." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:690 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:698 msgid "LSio: Fail to initialize input/output driver." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:693 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:701 msgid "LSio: Fail to load objects's data from input file." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:696 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:704 msgid "LSio: Fail to load objects's data to export from LDAP directory." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:699 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSio.php:707 msgid "LSio: Fail to export objects's data." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattr_ldap_pwdHistory.php:76 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattr_ldap_pwdHistory.php:77 msgid "Unknown (%{raw_value})" msgstr "" @@ -470,7 +470,7 @@ msgid "Attribute" msgstr "" #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_mailQuota.php:101 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:126 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:135 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_quota.php:102 #: templates/default/LSformElement_mailQuota_field.tpl:17 msgid "Incorrect value" @@ -559,7 +559,7 @@ msgstr "" msgid "Unknown type" msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:234 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_valueWithUnit.php:243 msgid "" "LSformElement_valueWithUnit : Units configuration data are missing for the " "attribute %{attr}." @@ -667,34 +667,42 @@ msgid "" "upgrade documentation to adapt your templates." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:426 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:378 +msgid "Copy to clipboard" +msgstr "" + +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:379 +msgid "Copied!" +msgstr "" + +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:433 msgid "Smarty - An exception occured displaying template '%{template}'" msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:446 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:453 msgid "Smarty - An exception occured fetching template '%{template}'" msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:461 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:471 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:468 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:478 msgid "A fatal error occured. If problem persist, please contact support." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:470 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:477 msgid "A fatal error occured." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:670 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:677 msgid "LStemplate : Template %{file} not found." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:673 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:680 msgid "" "LStemplate : Fail to execute trigger %{callable} on event %{event} : is not " "callable." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:676 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:683 msgid "" "LStemplate : Error during the execution of the trigger %{callable} on event " "%{event}." @@ -765,53 +773,53 @@ msgid "" "LSattr_ldap :: password. It's not the case of the attribure %{attr}." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:256 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:261 msgid "The value of field %{label} is invalid." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:744 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:754 msgid "" "LSattribute : Attribute %{attr} : LDAP or HTML types unknow (LDAP = %{ldap} " "& HTML = %{html})." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:747 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:757 msgid "" "LSattribute : The function %{func} to display the attribute %{attr} is " "unknow." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:750 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:760 msgid "" "LSattribute : The rule %{rule} to validate the attribute %{attr} is unknow." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:753 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:763 msgid "" "LSattribute : Configuration data to verify the attribute %{attr} are " "incorrect." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:756 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:766 msgid "" "LSattribute : The function %{func} to save the attribute %{attr} is unknow." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:759 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:769 msgid "LSattribute : The value of the attribute %{attr} can't be generated." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:762 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:772 msgid "LSattribute : Generation of the attribute %{attr} failed." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:765 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:775 msgid "" "LSattribute : Generation of the attribute %{attr} did not return a correct " "value." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:768 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSattribute.php:778 msgid "" "LSattribute : The attr_%{type} of the attribute %{name} is not yet defined." msgstr "" @@ -2024,7 +2032,7 @@ msgid "Data entry form" msgstr "" #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:955 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1673 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1702 msgid "Object has been added." msgstr "" @@ -2033,17 +2041,17 @@ msgid "My account" msgstr "" #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1155 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1847 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1876 msgid "The object has been partially modified." msgstr "" #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1158 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1850 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1879 msgid "The object has been modified successfully." msgstr "" #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1273 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1891 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:1920 msgid "%{objectname} has been successfully deleted." msgstr "" diff --git a/src/templates/default/showTechInfo.tpl b/src/templates/default/showTechInfo.tpl index 57b69df3..a1416504 100644 --- a/src/templates/default/showTechInfo.tpl +++ b/src/templates/default/showTechInfo.tpl @@ -5,7 +5,7 @@ {include file='ls:LSview_actions.tpl'}
DN
-
{$object->getDn()|escape:"htmlall"}
+
{$object->getDn()|escape:"htmlall"}
{if $object_classes}
{tr msg='Object classes'}
@@ -13,9 +13,9 @@
    {foreach $object_classes as $class} {if $structural_object_class == $class} -
  • {$class|escape:"htmlall"} ?
  • +
  • {$class|escape:"htmlall"} ?
  • {else} -
  • {$class|escape:"htmlall"}
  • +
  • {$class|escape:"htmlall"}
  • {/if} {/foreach}
@@ -28,11 +28,11 @@ {if is_array($info.values)}
    {foreach $info.values as $value} -
  • {$value|escape:"htmlall"}
  • +
  • {$value|escape:"htmlall"}
  • {/foreach}
{else} - {$info.values|escape:"htmlall"} + {$info.values|escape:"htmlall"} {/if} {/foreach} @@ -43,16 +43,16 @@
{foreach $other_internal_attrs as $attr => $values} {if $attr == 'objectClass'}{continue}{/if} -
{$attr|escape:"htmlall"}
+
{$attr|escape:"htmlall"}
{if is_array($values)}
    {foreach $values as $value} -
  • {$value|escape:"htmlall"}
  • +
  • {$value|escape:"htmlall"}
  • {/foreach}
{else} - {$values|escape:"htmlall"} + {$values|escape:"htmlall"} {/if}
{/foreach}