https://fedorahosted.org/freeipa/ticket/3049
--
Petr Vobornik
From 7656f24a61f6c36213b026a6d2073e7ff20476b4 Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Thu, 15 Aug 2013 12:31:32 +0200
Subject: [PATCH] Add base-id, range-size and range-type options to trust-add
 dialog

https://fedorahosted.org/freeipa/ticket/3049
---
 install/ui/src/freeipa/trust.js | 43 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/install/ui/src/freeipa/trust.js b/install/ui/src/freeipa/trust.js
index 5f3458d29f37bdd13435e7ed494774b1333ea07e..99997167897b6ad0e4f0475e1996211411cad50c 100644
--- a/install/ui/src/freeipa/trust.js
+++ b/install/ui/src/freeipa/trust.js
@@ -130,7 +130,26 @@ return {
                     $type: 'same_password',
                     other_field: 'trust_secret'
                 }]
+            },
+            {
+                $type: 'radio',
+                name: 'range_type',
+                metadata: '@mc-opt:trust_add:range_type',
+                widget: 'range.range_type'
+            },
+            {
+                name: 'base_id',
+                label: '@i18n:objects.idrange.ipabaseid',
+                metadata: '@mc-opt:trust_add:base_id',
+                widget: 'range.base_id'
+            },
+            {
+                name: 'range_size',
+                label: '@i18n:objects.idrange.ipaidrangesize',
+                metadata: '@mc-opt:trust_add:range_size',
+                widget: 'range.range_size'
             }
+
         ],
         widgets: [
             {
@@ -176,6 +195,30 @@ return {
                         name: 'trust_secret_verify'
                     }
                 ]
+            },
+            {
+                $type: 'details_table_section_nc',
+                name: 'range',
+                widgets: [
+                    {
+                        $type: 'radio',
+                        name: 'range_type',
+                        layout: 'vertical',
+                        default_value: 'ipa-ad-trust',
+                        options: [
+                            {
+                                value: 'ipa-ad-trust',
+                                label: '@i18n:objects.idrange.type_ad'
+                            },
+                            {
+                                value: 'ipa-ad-trust-posix',
+                                label: '@i18n:objects.idrange.type_ad_posix'
+                            }
+                        ]
+                    },
+                    'base_id',
+                    'range_size'
+                ]
             }
         ],
         policies: [
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to