From c2081b299f6ae6bdc3930e5a5a08a2b1896284c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Ferry?= Date: Sun, 23 Mar 2014 22:13:21 +0100 Subject: [PATCH] Missing resource type select list into add form --- htdocs/resource/add.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/htdocs/resource/add.php b/htdocs/resource/add.php index 33ab948ba7b..07539ed276b 100755 --- a/htdocs/resource/add.php +++ b/htdocs/resource/add.php @@ -30,6 +30,7 @@ if (! $res) $res=@include("../../main.inc.php"); // For "custom" directory if (! $res) die("Include of main fails"); require_once 'class/resource.class.php'; +require_once 'class/html.formresource.class.php'; // Load traductions files requiredby by page $langs->load("resource"); @@ -108,10 +109,10 @@ if ($action == 'confirm_add_resource') /*************************************************** * VIEW * -* Put here all code to build page ****************************************************/ $form=new Form($db); +$formresource = new FormResource($db); if ( !$action ) { @@ -135,6 +136,12 @@ if ( !$action ) print ''; print ''; print ''; + + // Type + print ''.$langs->trans("ResourceType").''; + print ''; + $ret = $formresource->select_types_resource($object->fk_code_type_resource,'fk_code_type_resource','',2); + print ''; // Description $field = 'description';