From dccfd6a78a8447944d70bce74c2897a07d86b4b3 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 31 Mar 2011 08:53:33 +0000 Subject: [PATCH] Updated Config Management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20632 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_ConfigManagement.inc | 1 + .../goto/Config/AddItemDialog.tpl | 21 ++++++++++ .../goto/Config/DeviceConfig-list.tpl | 21 ++++++++++ .../goto/Config/DeviceConfig.tpl | 12 ++++++ .../goto/Config/TemplateEngine.tpl | 11 ++++++ .../goto/Config/TemplateWidget_textEditor.tpl | 12 ++++++ .../ConfigManagement/goto/Config/failed.tpl | 12 ++++++ .../ConfigManagement/goto/Config/puppet.tpl | 39 +++++++++++++++++++ 8 files changed, 129 insertions(+) create mode 100644 gosa-plugins/goto/admin/ConfigManagement/goto/Config/AddItemDialog.tpl create mode 100644 gosa-plugins/goto/admin/ConfigManagement/goto/Config/DeviceConfig-list.tpl create mode 100644 gosa-plugins/goto/admin/ConfigManagement/goto/Config/DeviceConfig.tpl create mode 100644 gosa-plugins/goto/admin/ConfigManagement/goto/Config/TemplateEngine.tpl create mode 100644 gosa-plugins/goto/admin/ConfigManagement/goto/Config/TemplateWidget_textEditor.tpl create mode 100644 gosa-plugins/goto/admin/ConfigManagement/goto/Config/failed.tpl create mode 100644 gosa-plugins/goto/admin/ConfigManagement/goto/Config/puppet.tpl diff --git a/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc b/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc index 5f0c18ca7..af9bbf554 100644 --- a/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc +++ b/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc @@ -65,6 +65,7 @@ class ConfigManagement extends management // Try to initialize $this->init(); + $this->setInstallMethod('puppet'); $this->rebuildListing(); } diff --git a/gosa-plugins/goto/admin/ConfigManagement/goto/Config/AddItemDialog.tpl b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/AddItemDialog.tpl new file mode 100644 index 000000000..859ce16e7 --- /dev/null +++ b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/AddItemDialog.tpl @@ -0,0 +1,21 @@ + +

{t}Add item{/t}

+ +{t}Please specify a name for the item to add. This name has to be unique within the item configuration.{/t} +
+ +
+ +

+ {$itemCfg.name} -  {$itemCfg.description} +

+ +{t}Name{/t}:  + +
+ +
+ + +
+ diff --git a/gosa-plugins/goto/admin/ConfigManagement/goto/Config/DeviceConfig-list.tpl b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/DeviceConfig-list.tpl new file mode 100644 index 000000000..813a1f533 --- /dev/null +++ b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/DeviceConfig-list.tpl @@ -0,0 +1,21 @@ +
+ +
+

{$HEADLINE} {$SIZELIMIT}

+
+ + + + + + + +
{$RELOAD}{t}Base{/t} {$RELEASE}{$ACTIONS}{$FILTER}
+
+
+ + {$LIST} +
+ +
+ diff --git a/gosa-plugins/goto/admin/ConfigManagement/goto/Config/DeviceConfig.tpl b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/DeviceConfig.tpl new file mode 100644 index 000000000..0bb627e8c --- /dev/null +++ b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/DeviceConfig.tpl @@ -0,0 +1,12 @@ +

{t}Device Config{/t}

+{$navigationList} + + +
+ +{$containerName} ({$containerDescription}) + +

+{$template} +

+ diff --git a/gosa-plugins/goto/admin/ConfigManagement/goto/Config/TemplateEngine.tpl b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/TemplateEngine.tpl new file mode 100644 index 000000000..e60c5ae1c --- /dev/null +++ b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/TemplateEngine.tpl @@ -0,0 +1,11 @@ +

Bla

+ +{$template} + +
+ +
+ + +
+ diff --git a/gosa-plugins/goto/admin/ConfigManagement/goto/Config/TemplateWidget_textEditor.tpl b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/TemplateWidget_textEditor.tpl new file mode 100644 index 000000000..4427b4a4e --- /dev/null +++ b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/TemplateWidget_textEditor.tpl @@ -0,0 +1,12 @@ +{if $write_protect} + {t}The text is write protected due to its encoding. Editing may break it!{/t} +
+ +{/if} + +
+   + +
diff --git a/gosa-plugins/goto/admin/ConfigManagement/goto/Config/failed.tpl b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/failed.tpl new file mode 100644 index 000000000..94a4eb220 --- /dev/null +++ b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/failed.tpl @@ -0,0 +1,12 @@ +{if $rpcError} +

{t}Error{/t}

+ {msgPool type=rpcError p1=$error} + +{elseif $initFailed} +

{t}Communication failed{/t}

+ {msgPool type=rpcError p1=$error} + +{elseif $invalidInstallMethod} +

{t}Configuration error{/t}

+ {msgPool type=rpcError p1=$error} +{/if} diff --git a/gosa-plugins/goto/admin/ConfigManagement/goto/Config/puppet.tpl b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/puppet.tpl new file mode 100644 index 000000000..8b8d95b56 --- /dev/null +++ b/gosa-plugins/goto/admin/ConfigManagement/goto/Config/puppet.tpl @@ -0,0 +1,39 @@ +{if $type == 'PuppetModule'} + + + + + +
+ + + + + + + + + + + + + +
{$nameName}{$name}
{$descriptionName}{$description}
{$versionName}{$version}
+
+ {$dependencyName}:
+ {$dependency} +
+{/if} +{if $type == 'PuppetTemplate'} + + + + + + + + + +
{$nameName}{$name}
{$dataName}{$data}
+ +{/if} -- 2.30.2