193
edits
PolyglotBot (talk | contribs) m (Import interlang links (links to translated versions of this page in other languages) from origin English page "Tabs_system".) |
m (Ajout) |
||
| Line 11: | Line 11: | ||
{{TemplateDocDevFr}} | {{TemplateDocDevFr}} | ||
= Le système des onglets Dolibarr = | =Le système des onglets Dolibarr= | ||
Dolibarr affiche les informations d'un élément (facture, entrepot, utilisateur, etc...) dans une vue composée en général de plusieurs onglets. | Dolibarr affiche les informations d'un élément (facture, entrepot, utilisateur, etc...) dans une vue composée en général de plusieurs onglets. | ||
Il est possible d'ajouter vos propres onglets, d'en supprimer ou remplacer des existants. | Il est possible d'ajouter vos propres onglets, d'en supprimer ou remplacer des existants. | ||
= Pour ajouter votre onglet = | =Pour ajouter votre onglet= | ||
1) Dans un premier temps, vous devez identifier le type de l'objet sur lequel porte l'onglet à ajouter, supprimer ou modifier et son code 'objecttype'. Pour cela, voici la liste: | 1) Dans un premier temps, vous devez identifier le type de l'objet sur lequel porte l'onglet à ajouter, supprimer ou modifier et son code 'objecttype'. Pour cela, voici la liste: | ||
* 'thirdparty' to add a tab in third party view | |||
* 'intervention' to add a tab in intervention view | *'thirdparty' to add a tab in third party view | ||
* 'supplier_order' to add a tab in supplier order view | *'intervention' to add a tab in intervention view | ||
* 'supplier_invoice' to add a tab in supplier invoice view | *'supplier_order' to add a tab in supplier order view | ||
* 'invoice' to add a tab in customer invoice view | *'supplier_invoice' to add a tab in supplier invoice view | ||
* 'order' to add a tab in customer order view | *'invoice' to add a tab in customer invoice view | ||
* 'product' to add a tab in product view | *'order' to add a tab in customer order view | ||
* 'stock' to add a tab in stock view | *'product' to add a tab in product view | ||
* 'propal' to add a tab in propal view | *'stock' to add a tab in stock view | ||
* 'member' to add a tab in fundation member view | *'propal' to add a tab in propal view | ||
* 'contract' to add a tab in contract view | *'member' to add a tab in fundation member view | ||
* 'user' to add a tab in user view | *'contract' to add a tab in contract view | ||
* 'group' to add a tab in group view | *'user' to add a tab in user view | ||
* 'contact' to add a tab in contact view | *'group' to add a tab in group view | ||
* 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member) | *'contact' to add a tab in contact view | ||
* 'member_stats', 'order_stats', 'supplier_order_stats', 'invoice_stats', 'supplier_invoice_stats', 'trip_stats', 'propal_stats' to add a tab in statistic view of elements. | *'bank' to add a tab in bank view | ||
* 'member_admin', 'company_admin', 'product_admin' pour les pages d'administration | *'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member) | ||
*'member_stats', 'order_stats', 'supplier_order_stats', 'invoice_stats', 'supplier_invoice_stats', 'trip_stats', 'propal_stats' to add a tab in statistic view of elements. | |||
*'member_admin', 'company_admin', 'product_admin' pour les pages d'administration | |||
2) Pour ajouter votre propre onglet, créer un module et son fichier descripteur. Voir la page [[Développement module]] pour cela. | 2) Pour ajouter votre propre onglet, créer un module et son fichier descripteur. Voir la page [[Développement module]] pour cela. | ||
| Line 56: | Line 58: | ||
5) Tester que le nouvel onglet apparaît et que le lien ouvre votre page. | 5) Tester que le nouvel onglet apparaît et que le lien ouvre votre page. | ||
= Pour supprimer un onglet existant = | =Pour supprimer un onglet existant= | ||
Le processus est identique à celui pour ajouter un onglet, mais utilisez dans le tableau this->tab du fichier descripteur la syntaxe suivante: | Le processus est identique à celui pour ajouter un onglet, mais utilisez dans le tableau this->tab du fichier descripteur la syntaxe suivante: | ||
<source lang="php"> | <source lang="php"> | ||
| Line 64: | Line 66: | ||
</source> | </source> | ||
= Pour remplace un onglet avec le votre = | =Pour remplace un onglet avec le votre= | ||
Réaliser simplement les étapes "Ajouter votre propre onglet" puis "Supprimer un onglet existant". Si l'onglet ajouté à le même libellé que celui supprimer, l'illusion sera parfaite. | Réaliser simplement les étapes "Ajouter votre propre onglet" puis "Supprimer un onglet existant". Si l'onglet ajouté à le même libellé que celui supprimer, l'illusion sera parfaite. | ||
= Afficher des onglets dans vos pages = | =Afficher des onglets dans vos pages= | ||
Plus de l'information sur comment afficher des onglets dans vos propres pages, voir | Plus de l'information sur comment afficher des onglets dans vos propres pages, voir | ||
[[Développement_module#Affichage_des_onglets_.28optionnel.29]] | [[Développement_module#Affichage_des_onglets_.28optionnel.29]] | ||