Skip to content

Commit

Permalink
feat(web2): Added warning message for Certificates field (#5089)
Browse files Browse the repository at this point in the history
* Added warning message for Certificate field

* Update kura/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/client/ui/security/KeyPairTabUi.ui.xml

Co-authored-by: Mattia Dal Ben <[email protected]>

* Replaced warning text with a placeholder in the

---------

Co-authored-by: Mattia Dal Ben <[email protected]>
  • Loading branch information
salvatore-coppola and mattdibi authored Jan 19, 2024
1 parent 1063893 commit aba8988
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@

<!--
Copyright (c) 2020 Eurotech and/or its affiliates and others
Copyright (c) 2020, 2024 Eurotech and/or its affiliates and others
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Eurotech
SPDX-License-Identifier: EPL-2.0
Contributors:
Eurotech
-->

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:b="urn:import:org.gwtbootstrap3.client.ui" xmlns:b.html="urn:import:org.gwtbootstrap3.client.ui.html"
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:gwt="urn:import:org.gwtbootstrap3.client.ui.gwt">

<ui:with field="msgs"
type="org.eclipse.kura.web.client.messages.Messages" />
<ui:with field="msgs"
type="org.eclipse.kura.web.client.messages.Messages" />

<ui:style>
.important {
font-weight: bold;
font-weight: bold;
}

.center-panel {
height: 100%;
height: 100%;
}

.small-text {
font-size: 0.90em;
font-size: 0.90em;
}

#storageAlias {
text-transform: lowercase;
text-transform: lowercase;
}
</ui:style>

Expand All @@ -48,12 +48,12 @@

<b:Form ui:field="httpsServerCertsForm">
<b:FieldSet>
<b:FormGroup>
<b:FormGroup>
<b:FormLabel for="pidListBox"
text="{msgs.settingsKeyStorePidLabel}" />
<b:ListBox b:id="pidListBox" ui:field="pidListBox" />
</b:FormGroup>

<b:FormGroup>
<b:FormLabel for="storageAliasInput"
text="{msgs.settingsStorageAliasLabel}" />
Expand All @@ -75,7 +75,8 @@
<b:FormLabel for="certificateInput"
text="{msgs.settingsPublicCertLabel}" />
<b:TextArea b:id="certificateInput"
addStyleNames="{style.center-panel}"
addStyleNames="{style.center-panel}"
placeholder="{msgs.settingsPublicCertWarning}"
ui:field="certificateInput" />
<b:HelpBlock iconType="EXCLAMATION_TRIANGLE"/>
</b:FormGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ settingsMAuthDescription2=The private key should be in PKCS8 format. The public
settingsKeyStorePidLabel=Key Store
settingsStorageAliasLabel=Storage Alias
settingsPrivateCertLabel=Private Key
settingsPublicCertLabel=Certificate
settingsPublicCertLabel=Certificates
settingsPublicCertWarning= The chain should be provided by specifying the leaf certificate, followed by the CA certificate that is signing it, and so on, until the root CA is reached.

securityAddKeystoreEntry=Select the type of the new Keystore entry
securityKeyPairDescription=Insert the pair of private and public keys.
Expand Down

0 comments on commit aba8988

Please sign in to comment.