From f85c347f4d2f50d49e77373a56c55f3e2b4bc473 Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Mon, 13 Jun 2016 10:29:49 +0200 Subject: [PATCH] Add placeholder to add segment dialog 'Autogenerated' placeholder is shown when adding new segment. https://fedorahosted.org/freeipa/ticket/5867 Reviewed-By: Petr Vobornik --- install/ui/src/freeipa/topology.js | 1 + install/ui/test/data/ipa_init.json | 1 + ipaserver/plugins/internal.py | 1 + 3 files changed, 3 insertions(+) diff --git a/install/ui/src/freeipa/topology.js b/install/ui/src/freeipa/topology.js index dc214227f..7a6024663 100644 --- a/install/ui/src/freeipa/topology.js +++ b/install/ui/src/freeipa/topology.js @@ -865,6 +865,7 @@ topology.create_add_dialog = function(spec) { spec.fields = spec.fields || [ { name: 'cn', + placeholder: '@i18n:objects.topology.autogenerated', required: false }, { diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index eb5fb14cc..1d7f5d883 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -600,6 +600,7 @@ "user": "Who" }, "topology": { + "autogenerated": "Autogenerated", "segment_details": "Segment details", "replication_config": "Replication configuration", "insufficient_domain_level" : "Managed topology requires minimal domain level ${domainlevel}" diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 1d83b4648..c0360567c 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -739,6 +739,7 @@ class i18n_messages(Command): "user": _("Who"), }, "topology": { + "autogenerated": _("Autogenerated"), "segment_details": _("Segment details"), "replication_config": _("Replication configuration"), "insufficient_domain_level" : _("Managed topology requires minimal domain level ${domainlevel}"),