From 15beefb32f085b545152e9c2489680edfa9b8f13 Mon Sep 17 00:00:00 2001 From: Guillaume Bandet Date: Tue, 10 Jun 2008 10:37:00 +0200 Subject: [PATCH] Adds an administration interface for networking addresses --- modules/profile.php | 10 ++++++++++ templates/admin/index.tpl | 2 ++ 2 files changed, 12 insertions(+) diff --git a/modules/profile.php b/modules/profile.php index b54656a..f21e463 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -59,6 +59,7 @@ class ProfileModule extends PLModule 'admin/formations' => $this->make_hook('admin_formations', AUTH_MDP, 'admin'), 'admin/sections' => $this->make_hook('admin_sections', AUTH_MDP, 'admin'), 'admin/secteurs' => $this->make_hook('admin_secteurs', AUTH_MDP, 'admin'), + 'admin/networking' => $this->make_hook('admin_networking', AUTH_MDP, 'admin'), 'admin/trombino' => $this->make_hook('admin_trombino', AUTH_MDP, 'admin'), 'admin/ss_secteurs' => $this->make_hook('admin_ss_secteurs', AUTH_MDP, 'admin'), 'admin/fonctions' => $this->make_hook('admin_fonctions', AUTH_MDP, 'admin'), @@ -804,6 +805,15 @@ class ProfileModule extends PLModule $table_editor->describe('label', 'intitulé', true); $table_editor->apply($page, $action, $id); } + function handler_admin_networking(&$page, $action = 'list', $id = null) { + $page->assign('xorg_title', 'Polytechnique.org - Administration - Networking'); + $page->assign('title', 'Gestion des types de networking'); + $table_editor = new PLTableEditor('admin/networking', 'profile_networking_enum', 'network_type'); + $table_editor->describe('name', 'intitulé', true); + $table_editor->describe('icon', 'nom de l\'icône', false); + $table_editor->describe('filter', 'nom du filtre à appliquer', true); + $table_editor->apply($page, $action, $id); + } function handler_admin_medals(&$page, $action = 'list', $id = null) { $page->assign('xorg_title','Polytechnique.org - Administration - Distinctions'); $page->assign('title', 'Gestion des Distinctions'); diff --git a/templates/admin/index.tpl b/templates/admin/index.tpl index f6b59cc..ed31a60 100644 --- a/templates/admin/index.tpl +++ b/templates/admin/index.tpl @@ -106,6 +106,8 @@ Sous-secteurs   |   Fonctions +   |   + Networking -- 2.1.4