LSaccessRightsMatrixView : Improve table readability

This commit is contained in:
Benjamin Renard 2019-10-24 17:44:34 +02:00
parent 4df855e0ab
commit a33e7b3192
5 changed files with 226 additions and 102 deletions

View file

@ -2,48 +2,111 @@
* Table * Table
*/ */
#LSaccessRightsMatrixView table { #LSaccessRightsMatrixView table {
width: 100%; border-collapse: collapse;
border-collapse: collapse; margin-top: 1em;
margin-top: 1em; text-align: center;
text-align: center;
} }
#LSaccessRightsMatrixView table tr, #LSaccessRightsMatrixView table td { #LSaccessRightsMatrixView table tr, #LSaccessRightsMatrixView table td {
transition: all 0.25s linear 0s; transition: all 0.25s linear 0s;
} }
#LSaccessRightsMatrixView table tr:hover { #LSaccessRightsMatrixView table tbody tr:hover {
background-color: #AAA; background-color: #AAA;
} }
#LSaccessRightsMatrixView table thead th:first-of-type, #LSaccessRightsMatrixView table tbody th { #LSaccessRightsMatrixView table thead th:first-of-type, #LSaccessRightsMatrixView table tbody th {
text-align: left; text-align: left;
} }
#LSaccessRightsMatrixView table tbody td, #LSaccessRightsMatrixView table thead th { /*
border-left: 1px dotted #ddd; * Table rotated header
*/
.table-header-rotated th.row-header{
width: auto;
border-top: 1px dotted #dddddd;
} }
#LSaccessRightsMatrixView table thead th:first-of-type { .table-header-rotated td{
margin: none; width: 50px;
border-top: 1px dotted #dddddd;
border-left: 1px dotted #dddddd;
border-right: 1px dotted #dddddd;
vertical-align: middle;
text-align: center;
} }
.table-header-rotated tr:last-of-type td, .table-header-rotated th.row-header:last-of-type {
border-left: 1px dotted #dddddd;
border-bottom: 1px dotted #dddddd;
}
.table-header-rotated th.rotate-45{
height: 150px;
width: 50px;
min-width: 50px;
max-width: 50px;
position: relative;
vertical-align: bottom;
padding: 0;
font-size: 11px;
line-height: 0.8;
white-space: nowrap;
}
.table-header-rotated th.rotate-45 > div{
position: relative;
top: 0px;
left: 75px; /* 150 * tan(45) / 2 = 50 where 150 is the height on the cell and 45 is the transform angle*/
height: 100%;
-ms-transform:skew(-45deg,0deg);
-moz-transform:skew(-45deg,0deg);
-webkit-transform:skew(-45deg,0deg);
-o-transform:skew(-45deg,0deg);
transform:skew(-45deg,0deg);
overflow: hidden;
border-left: 1px solid #dddddd;
border-right: 1px solid #dddddd;
border-top: 1px solid #dddddd;
}
.table-header-rotated th.rotate-45 span {
-ms-transform:skew(45deg,0deg) rotate(315deg);
-moz-transform:skew(45deg,0deg) rotate(315deg);
-webkit-transform:skew(45deg,0deg) rotate(315deg);
-o-transform:skew(45deg,0deg) rotate(315deg);
transform:skew(45deg,0deg) rotate(315deg);
position: absolute;
bottom: 30px; /* 50 cos(45) = 28 with an additional 2px margin*/
left: -25px; /*Because it looked good, but there is probably a mathematical link here as well*/
display: inline-block;
// width: 100%;
width: 85px; /* 150 / cos(45) - 50 cos (45) = 85 where 150 is the height of the cell, 50 the width of the cell and 45 the transform angle*/
text-align: left;
// white-space: nowrap; /*whether to display in one line or not*/
}
/*
* Readable/Writable tips
*/
span.LSaccessRightsMatrixView_readable, span.LSaccessRightsMatrixView_writable { span.LSaccessRightsMatrixView_readable, span.LSaccessRightsMatrixView_writable {
color: #fff; color: #fff;
border: 1px solid; border: 1px solid;
border-radius: 0.3em; border-radius: 0.3em;
display: inline-block; display: inline-block;
padding: 0.1em; padding: 0.1em;
width: 2.2em;
text-align: center;
} }
span.LSaccessRightsMatrixView_readable { span.LSaccessRightsMatrixView_readable {
background-color: #17a2b8; background-color: #17a2b8;
border-color: #17a2b8; border-color: #17a2b8;
} }
span.LSaccessRightsMatrixView_writable { span.LSaccessRightsMatrixView_writable {
background-color: #ffc107; background-color: #ffc107;
border-color: #ffc107; border-color: #ffc107;
} }
/* /*
@ -86,3 +149,12 @@ div.LSaccessRightsMatrixView_tab_content {
div.LSaccessRightsMatrixView_tab_content h2 { div.LSaccessRightsMatrixView_tab_content h2 {
margin: 0; margin: 0;
} }
/*
* Legend
*/
#LSaccessRightsMatrixView_legend {
padding-top: 1em;
font-style: italic;
font-weight: normal;
}

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: LdapSaisie\n" "Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n" "POT-Creation-Date: \n"
"PO-Revision-Date: 2019-10-14 12:33+0200\n" "PO-Revision-Date: 2019-10-24 17:31+0200\n"
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n" "Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise." "Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
"org>\n" "org>\n"
@ -88,7 +88,7 @@ msgstr "Réinitialiser"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70 #: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1235 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1235
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2319 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2323
msgid "Level" msgid "Level"
msgstr "Niveau" msgstr "Niveau"
@ -938,11 +938,11 @@ msgstr "Langue"
msgid "Connected as" msgid "Connected as"
msgstr "Connecté en tant que" msgstr "Connecté en tant que"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2466 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2470
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "LSsession : La constante %{const} n'est pas définie." msgstr "LSsession : La constante %{const} n'est pas définie."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2469 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2473
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
@ -950,52 +950,52 @@ msgstr ""
"LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du " "LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du "
"système et la configuration de l'add-on." "système et la configuration de l'add-on."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2472 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2476
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
"LSsession : Les données de configuration du serveur LDAP sont invalide. " "LSsession : Les données de configuration du serveur LDAP sont invalide. "
"Impossible de s'y connecter." "Impossible de s'y connecter."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2475 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2479
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
"LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu." "LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2478 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2482
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "LSsession : Impossible de charger la LSclass %{class}." msgstr "LSsession : Impossible de charger la LSclass %{class}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2481 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2485
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "LSsession : Identifiant ou mot de passe incorrects." msgstr "LSsession : Identifiant ou mot de passe incorrects."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2484 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2488
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "LSsession : Impossible de vous identifier : Duplication d'identité." msgstr "LSsession : Impossible de vous identifier : Duplication d'identité."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2487 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2491
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
"LSsession : Impossible de charger la classe d'authentification (%{class})." "LSsession : Impossible de charger la classe d'authentification (%{class})."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2490 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2494
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "LSsession : Impossible de se connecter au serveur LDAP." msgstr "LSsession : Impossible de se connecter au serveur LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2493 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2497
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "LSsession : Impossible de vous identifier." msgstr "LSsession : Impossible de vous identifier."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2496 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2500
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action." msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2499 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2503
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "LSsession : Des informations sont manquant pour afficher cette page." msgstr "LSsession : Des informations sont manquant pour afficher cette page."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2502 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2506
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
@ -1003,24 +1003,24 @@ msgstr ""
"LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou " "LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou "
"n'est pas configurée." "n'est pas configurée."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2505 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2509
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
"LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur " "LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur "
"depuis LSauth." "depuis LSauth."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2508 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2512
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
"LSsession : Impossible de se reconnecter au serveur LDAP avec les " "LSsession : Impossible de se reconnecter au serveur LDAP avec les "
"identifiants de l'utilisateur." "identifiants de l'utilisateur."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2511 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2515
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet." msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2514 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2518
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
@ -1028,13 +1028,13 @@ msgstr ""
"LSsession : Erreur durant la création de la liste des niveaux. Contacter les " "LSsession : Erreur durant la création de la liste des niveaux. Contacter les "
"administrateurs. (Code : %{type})" "administrateurs. (Code : %{type})"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2517 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2521
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
"LSsession : La récupération de mot de passe est désactivée pour ce serveur " "LSsession : La récupération de mot de passe est désactivée pour ce serveur "
"LDAP." "LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2520 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2524
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
@ -1042,7 +1042,7 @@ msgstr ""
"LSsession : Des informations sont manques pour pouvoir récupérer votre mot " "LSsession : Des informations sont manques pour pouvoir récupérer votre mot "
"de passe. Contacter les administrateurs." "de passe. Contacter les administrateurs."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2523 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2527
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
@ -1050,22 +1050,22 @@ msgstr ""
"LSsession : Erreur durant la récupération de votre mot de passe. Contacter " "LSsession : Erreur durant la récupération de votre mot de passe. Contacter "
"les administrateurs. (Etape : %{step})" "les administrateurs. (Etape : %{step})"
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2526 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2530
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
"LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}." "LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2529 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2533
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "LSsession : Problème durant l'initialisation." msgstr "LSsession : Problème durant l'initialisation."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2532 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2536
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
"LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas." "LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas."
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2535 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2539
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres." msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres."
@ -2068,7 +2068,7 @@ msgstr ""
"Une erreur irrécupérable est survenue. Si le problème persiste, merci de " "Une erreur irrécupérable est survenue. Si le problème persiste, merci de "
"contacter le support." "contacter le support."
#: templates/default/LSaccessRightsMatrixView.tpl:15 #: templates/default/LSaccessRightsMatrixView.tpl:17
msgid "Attributes / Profiles" msgid "Attributes / Profiles"
msgstr "Attributs / Profils" msgstr "Attributs / Profils"
@ -2093,6 +2093,11 @@ msgstr "Recherche globale"
msgid "Imported objects" msgid "Imported objects"
msgstr "Objets importés" msgstr "Objets importés"
#: templates/default/LSaccessRightsMatrixView.tpl:19
#: templates/default/LSaccessRightsMatrixView.tpl:55
msgid "Legend:"
msgstr "Légende :"
#: templates/default/viewSearch.tpl:120 #: templates/default/viewSearch.tpl:120
msgid "Nb / page :" msgid "Nb / page :"
msgstr "Nb / page :" msgstr "Nb / page :"
@ -2109,13 +2114,25 @@ msgstr "Aucune valeur"
msgid "Only validate data" msgid "Only validate data"
msgstr "Validation des données uniquement" msgstr "Validation des données uniquement"
#: templates/default/LSaccessRightsMatrixView.tpl:27 #: templates/default/LSaccessRightsMatrixView.tpl:20
#: templates/default/LSaccessRightsMatrixView.tpl:54 #: templates/default/LSaccessRightsMatrixView.tpl:37
#: templates/default/LSaccessRightsMatrixView.tpl:72
msgid "R"
msgstr "L"
#: templates/default/LSaccessRightsMatrixView.tpl:22
#: templates/default/LSaccessRightsMatrixView.tpl:39
#: templates/default/LSaccessRightsMatrixView.tpl:74
msgid "R/W"
msgstr "L/É"
#: templates/default/LSaccessRightsMatrixView.tpl:20
#: templates/default/LSaccessRightsMatrixView.tpl:56
msgid "Readable" msgid "Readable"
msgstr "Lecture" msgstr "Lecture"
#: templates/default/LSaccessRightsMatrixView.tpl:29 #: templates/default/LSaccessRightsMatrixView.tpl:22
#: templates/default/LSaccessRightsMatrixView.tpl:56 #: templates/default/LSaccessRightsMatrixView.tpl:58
msgid "Readable / Writable" msgid "Readable / Writable"
msgstr "Lecture / Écriture" msgstr "Lecture / Écriture"
@ -2123,7 +2140,7 @@ msgstr "Lecture / Écriture"
msgid "Refresh my access rights" msgid "Refresh my access rights"
msgstr "Rafraîchir mes droits d'accès" msgstr "Rafraîchir mes droits d'accès"
#: templates/default/LSaccessRightsMatrixView.tpl:42 #: templates/default/LSaccessRightsMatrixView.tpl:53
msgid "Relations / Profiles" msgid "Relations / Profiles"
msgstr "Relations / Profils" msgstr "Relations / Profils"
@ -2131,11 +2148,11 @@ msgstr "Relations / Profils"
msgid "Result" msgid "Result"
msgstr "Résultat" msgstr "Résultat"
#: templates/default/LSaccessRightsMatrixView.tpl:38 #: templates/default/LSaccessRightsMatrixView.tpl:48
msgid "Their relations with other objects" msgid "Their relations with other objects"
msgstr "Leurs relations avec les autres objets" msgstr "Leurs relations avec les autres objets"
#: templates/default/LSaccessRightsMatrixView.tpl:65 #: templates/default/LSaccessRightsMatrixView.tpl:83
msgid "This object type has no configured relation." msgid "This object type has no configured relation."
msgstr "Ce type d'objet n'a aucune relation de configurée." msgstr "Ce type d'objet n'a aucune relation de configurée."

View file

@ -66,7 +66,7 @@ msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70 #: /home/brenard/dev/ldapsaisie_clean3/public_html/select.php:70
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1235 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:1235
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2319 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2323
msgid "Level" msgid "Level"
msgstr "" msgstr ""
@ -801,112 +801,112 @@ msgstr ""
msgid "Connected as" msgid "Connected as"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2466 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2470
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2469 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2473
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2472 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2476
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2475 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2479
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2478 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2482
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2481 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2485
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2484 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2488
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2487 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2491
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2490 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2494
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2493 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2497
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2496 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2500
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2499 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2503
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2502 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2506
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2505 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2509
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2508 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2512
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2511 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2515
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2514 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2518
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2517 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2521
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2520 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2524
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2523 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2527
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2526 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2530
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2529 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2533
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2532 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2536
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2535 #: /home/brenard/dev/ldapsaisie_clean3/public_html/includes/class/class.LSsession.php:2539
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "" msgstr ""
@ -1765,7 +1765,7 @@ msgstr ""
msgid "A fatal error occured. If problem persist, please contact support." msgid "A fatal error occured. If problem persist, please contact support."
msgstr "" msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:15 #: templates/default/LSaccessRightsMatrixView.tpl:17
msgid "Attributes / Profiles" msgid "Attributes / Profiles"
msgstr "" msgstr ""
@ -1790,6 +1790,11 @@ msgstr ""
msgid "Imported objects" msgid "Imported objects"
msgstr "" msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:19
#: templates/default/LSaccessRightsMatrixView.tpl:55
msgid "Legend:"
msgstr ""
#: templates/default/viewSearch.tpl:120 #: templates/default/viewSearch.tpl:120
msgid "Nb / page :" msgid "Nb / page :"
msgstr "" msgstr ""
@ -1806,13 +1811,25 @@ msgstr ""
msgid "Only validate data" msgid "Only validate data"
msgstr "" msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:27 #: templates/default/LSaccessRightsMatrixView.tpl:20
#: templates/default/LSaccessRightsMatrixView.tpl:54 #: templates/default/LSaccessRightsMatrixView.tpl:37
#: templates/default/LSaccessRightsMatrixView.tpl:72
msgid "R"
msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:22
#: templates/default/LSaccessRightsMatrixView.tpl:39
#: templates/default/LSaccessRightsMatrixView.tpl:74
msgid "R/W"
msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:20
#: templates/default/LSaccessRightsMatrixView.tpl:56
msgid "Readable" msgid "Readable"
msgstr "" msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:29 #: templates/default/LSaccessRightsMatrixView.tpl:22
#: templates/default/LSaccessRightsMatrixView.tpl:56 #: templates/default/LSaccessRightsMatrixView.tpl:58
msgid "Readable / Writable" msgid "Readable / Writable"
msgstr "" msgstr ""
@ -1820,7 +1837,7 @@ msgstr ""
msgid "Refresh my access rights" msgid "Refresh my access rights"
msgstr "" msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:42 #: templates/default/LSaccessRightsMatrixView.tpl:53
msgid "Relations / Profiles" msgid "Relations / Profiles"
msgstr "" msgstr ""
@ -1828,11 +1845,11 @@ msgstr ""
msgid "Result" msgid "Result"
msgstr "" msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:38 #: templates/default/LSaccessRightsMatrixView.tpl:48
msgid "Their relations with other objects" msgid "Their relations with other objects"
msgstr "" msgstr ""
#: templates/default/LSaccessRightsMatrixView.tpl:65 #: templates/default/LSaccessRightsMatrixView.tpl:83
msgid "This object type has no configured relation." msgid "This object type has no configured relation."
msgstr "" msgstr ""

View file

@ -10,23 +10,33 @@
<div class='LSaccessRightsMatrixView_tab_content'> <div class='LSaccessRightsMatrixView_tab_content'>
<h2>{$LSobjects[$LSobject]['label']}</h2> <h2>{$LSobjects[$LSobject]['label']}</h2>
<table> <table class="table-header-rotated">
<thead> <thead>
<th>{tr msg="Attributes / Profiles"}</th> <tr>
{foreach $LSprofiles as $name => $label} <th>
<th>{$label} {if $name != $label}<img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/>{/if}</th> {tr msg="Attributes / Profiles"}
{/foreach} <div id="LSaccessRightsMatrixView_legend">
<label>{tr msg="Legend:"}</label>
<span class='LSaccessRightsMatrixView_readable'>{tr msg="R"}</span> = {tr msg="Readable"}
|
<span class='LSaccessRightsMatrixView_writable'>{tr msg="R/W"}</span> = {tr msg="Readable / Writable"}
</div>
</th>
{foreach $LSprofiles as $name => $label}
<th class="rotate-45"><div><span>{if $name != $label}<img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/>{/if} {$label}</span></div></th>
{/foreach}
</tr>
</thead> </thead>
<tbody> <tbody>
{foreach $LSobjects[$LSobject]['attrs'] as $name => $conf} {foreach $LSobjects[$LSobject]['attrs'] as $name => $conf}
<tr> <tr>
<th>{$conf.label} <img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/></th> <th class="row-header">{$conf.label} <img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/></th>
{foreach $LSprofiles as $profil => $profil_label} {foreach $LSprofiles as $profil => $profil_label}
<td class='LStips' title="{if $profil != $profil_label}{$profil_label} ({$profil}){else}{$profil}{/if}"> <td class='LStips' title="{if $profil != $profil_label}{$profil_label} ({$profil}){else}{$profil}{/if}">
{if $conf.rights[$profil] == 'r'} {if $conf.rights[$profil] == 'r'}
<span class='LSaccessRightsMatrixView_readable'>{tr msg="Readable"}</span> <span class='LSaccessRightsMatrixView_readable'>{tr msg="R"}</span>
{elseif $conf.rights[$profil] == 'w'} {elseif $conf.rights[$profil] == 'w'}
<span class='LSaccessRightsMatrixView_writable'>{tr msg="Readable / Writable"}</span> <span class='LSaccessRightsMatrixView_writable'>{tr msg="R/W"}</span>
{/if} {/if}
</td> </td>
{/foreach} {/foreach}
@ -37,23 +47,31 @@
<h3>{tr msg="Their relations with other objects"}</h3> <h3>{tr msg="Their relations with other objects"}</h3>
{if !empty($LSobjects[$LSobject]['relations'])} {if !empty($LSobjects[$LSobject]['relations'])}
<table> <table class="table-header-rotated">
<thead> <thead>
<th>{tr msg="Relations / Profiles"}</th> <th>
{tr msg="Relations / Profiles"}
<div id="LSaccessRightsMatrixView_legend">
<label>{tr msg="Legend:"}</label>
<span class='LSaccessRightsMatrixView_readable'>R</span> = {tr msg="Readable"}
|
<span class='LSaccessRightsMatrixView_writable'>R/W</span> = {tr msg="Readable / Writable"}
</div>
</th>
{foreach $LSprofiles as $name => $label} {foreach $LSprofiles as $name => $label}
<th>{$label} {if $name != $label}<img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/>{/if}</th> <th class="rotate-45"><div><span>{if $name != $label}<img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/>{/if} {$label}</span></div></th>
{/foreach} {/foreach}
</thead> </thead>
<tbody> <tbody>
{foreach $LSobjects[$LSobject]['relations'] as $name => $conf} {foreach $LSobjects[$LSobject]['relations'] as $name => $conf}
<tr> <tr>
<th>{$conf.label} <img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/></th> <th class="row-header">{$conf.label} <img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/></th>
{foreach $LSprofiles as $profil => $profil_label} {foreach $LSprofiles as $profil => $profil_label}
<td class='LStips' title="{if $profil != $profil_label}{$profil_label} ({$profil}){else}{$profil}{/if}"> <td class='LStips' title="{if $profil != $profil_label}{$profil_label} ({$profil}){else}{$profil}{/if}">
{if $conf.rights[$profil] == 'r'} {if $conf.rights[$profil] == 'r'}
<span class='LSaccessRightsMatrixView_readable'>{tr msg="Readable"}</span> <span class='LSaccessRightsMatrixView_readable'>{tr msg="R"}</span>
{elseif $conf.rights[$profil] == 'w'} {elseif $conf.rights[$profil] == 'w'}
<span class='LSaccessRightsMatrixView_writable'>{tr msg="Readable / Writable"}</span> <span class='LSaccessRightsMatrixView_writable'>{tr msg="R/W"}</span>
{/if} {/if}
</td> </td>
{/foreach} {/foreach}