summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 721ddd8)
raw | patch | inline | side by side (parent: 721ddd8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 25 Jun 2008 08:16:39 +0000 (08:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 25 Jun 2008 08:16:39 +0000 (08:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11435 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/departments/class_dcObject.inc | [new file with mode: 0644] | patch | blob |
gosa-core/plugins/admin/departments/dcObject.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/gosa-core/plugins/admin/departments/class_dcObject.inc b/gosa-core/plugins/admin/departments/class_dcObject.inc
--- /dev/null
@@ -0,0 +1,62 @@
+<?php
+/*
+ * This code is part of GOsa (http://www.gosa-project.org)
+ * Copyright (C) 2003-2008 GONICUS GmbH
+ *
+ * ID: $$Id: class_departmentGeneric.inc 11085 2008-05-28 10:54:49Z hickert $$
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+class dcObject extends department
+{
+ /* attribute list for save action */
+ var $attributes = array( "dc", "ou", "description");
+ var $objectclasses = array("top", "dcObject", "gosaDepartment", "locality");
+ var $type = "dc";
+ var $dc = "";
+ var $orgi_dc = "";
+ var $namingAttr = "dc";
+
+
+ function check()
+ {
+ $message = plugin::check();
+ return($message);
+ }
+
+
+ /* Return plugin informations for acl handling */
+ static function plInfo()
+ {
+ return (array("plShortName" => _("Domain Component"),
+ "plDescription" => _("Domain Component"),
+ "plSelfModify" => FALSE,
+ "plPriority" => 4,
+ "plDepends" => array(),
+ "plSection" => array("admin"),
+ "plCategory" => array("department"),
+
+ "plProvidedAcls" => array(
+ "base" => _("Base"),
+ "gosaUnitTag" => _("Administrative settings"),
+ "description" => _("Description"),
+ "dc" => _("Name")),
+ ));
+ }
+}
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/gosa-core/plugins/admin/departments/dcObject.tpl b/gosa-core/plugins/admin/departments/dcObject.tpl
--- /dev/null
@@ -0,0 +1,55 @@
+<!--////////////////////
+ // LOCALITY (l)
+ //////////////////// -->
+
+<table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
+ <tr>
+ <td style="vertical-align:top; width:50%">
+ <h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
+ <table summary="">
+ <tr>
+ <td><LABEL for="dc">{t}Locality name{/t}</LABEL>{$must}</td>
+ <td>
+{render acl=$dcACL}
+ <input id="dc" name="dc" size=25 maxlength=60 value="{$dc}" title="{t}Name of locality to create{/t}">
+{/render}
+ </td>
+ </tr>
+ <tr>
+ <td><LABEL for="description">{t}Description{/t}</LABEL>{$must}</td>
+ <td>
+{render acl=$descriptionACL}
+ <input id="description" name="description" size=25 maxlength=80 value="{$description}" title="{t}Descriptive text for department{/t}">
+{/render}
+ </td>
+ </tr>
+ <tr>
+ <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
+ <td>
+{render acl=$baseACL}
+ <select id="base" size="1" name="base" title="{t}Choose subtree to place department in{/t}">
+ {html_options options=$bases selected=$base_select}
+ </select>
+{/render}
+
+{render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
+ <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
+{/render}
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<p class='seperator'> </p>
+<table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
+ <tr>
+ <td style="vertical-align:top; width:100%">
+ <h2><img class="center" alt="" align="middle" src="images/lists/locked.png"> {t}Administrative settings{/t}</h2>
+{render acl=$gosaUnitTagACL}
+ <input id="unitTag" type=checkbox name="unitTag" value="1" {$unitTag}><label for="unitTag">{t}Tag department as an independent administrative unit{/t}</label>
+{/render}
+ </td>
+ </tr>
+</table>
+<input type='hidden' name='dep_generic_posted' value='1'>