Commit 2b894a19 authored by michael.simon's avatar michael.simon
Browse files

make "from" and "command" field mandatory

parent acfb7e26
...@@ -140,12 +140,23 @@ ...@@ -140,12 +140,23 @@
<h:outputText value="#{messages.ssh_pub_key_usage_command_help}" /> <h:outputText value="#{messages.ssh_pub_key_usage_command_help}" />
</div> </div>
<p:panelGrid columns="2"> <p:panelGrid columns="2">
<p:outputLabel for="@next" value="#{messages.command}" /> <p:outputLabel for="newCommandInput" value="#{messages.command}" />
<p:inputText value="#{setServiceSshPubKeyBean.newCommand}" /> <h:panelGroup>
<p:inputText id="newCommandInput" size="50" value="#{setServiceSshPubKeyBean.newCommand}" required="true">
<f:ajax event="blur" execute="@this" render="newCommandInput-message" />
</p:inputText>
<p:message id="newCommandInput-message" for="newCommandInput" />
</h:panelGroup>
<p:outputLabel for="@next" value="#{messages.ssh_pub_key_from}" /> <p:outputLabel for="newFromInput" value="#{messages.ssh_pub_key_from}" />
<p:inputText value="#{setServiceSshPubKeyBean.newFrom}" /> <h:panelGroup>
<p:inputText id="newFromInput" size="50" value="#{setServiceSshPubKeyBean.newFrom}" required="true">
<f:ajax event="blur" execute="@this" render="newFromInput-message" />
</p:inputText>
<p:message id="newFromInput-message" for="newFromInput" />
</h:panelGroup>
</p:panelGrid> </p:panelGrid>
<h:outputText value="* #{messages.required}" />
</h:panelGroup> </h:panelGroup>
</p:panel> </p:panel>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment