-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract config settings pages to their own files
- Loading branch information
1 parent
0f243ac
commit b16c085
Showing
4 changed files
with
80 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
server/src/main/resources/buildServerResources/projectConfigurationSettingsCustom.jspf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<tr id="customHeaders" <c:if test='${otelService != "custom"}'>style="display: none"</c:if>> | ||
<th><label>Headers:</label></th> | ||
<td> | ||
<table class="highlightable parametersTable"> | ||
<tr style="background-color: #f7f9fa;"> | ||
<th style="width: 20%">Name</th> | ||
<th style="width: 20%">Type</th> | ||
<th style="width: 40%">Value</th> | ||
<th style="width: 20%">Actions</th> | ||
</tr> | ||
<c:if test="${not empty otelHeaders}"> | ||
<c:forEach var="otelHeader" items="${otelHeaders}" varStatus="status"> | ||
<tr> | ||
<td> | ||
<%-- todo: consider changing to forms:textfield --%> | ||
<input type="text" name="headerKey_${status.index}" value="${otelHeader.getKey()}" class="textField"> | ||
</td> | ||
<td> | ||
<select name="headerType_${status.index}" onchange="BS.ProjectConfigurationSettings.headerTypeChanged(this)"> | ||
<option value='plaintext' <c:if test='${otelHeader.getType() == "plaintext"}'>selected="selected"</c:if>>Text</option> | ||
<option value='password' <c:if test='${otelHeader.getType() == "password"}'>selected="selected"</c:if>>Password</option> | ||
</select> | ||
</td> | ||
<td> | ||
<c:if test='${otelHeader.getType() == "plaintext"}'> | ||
<input type="text" name="headerValue_${status.index}" value="${otelHeader.getValue()}" class="textField longField" size="100"> | ||
</c:if> | ||
<c:if test='${otelHeader.getType() == "password"}'> | ||
<forms:passwordField className="textField longField" name="headerValue_${status.index}" id="headerValue_${status.index}" encryptedPassword="${otelHeader.getEncryptedValue()}"/> | ||
</c:if> | ||
</td> | ||
<td> | ||
<%-- todo: buttons dont disable on save --%> | ||
<forms:button onclick="BS.ProjectConfigurationSettings.removeHeader(this)">Remove</forms:button> | ||
</td> | ||
</tr> | ||
</c:forEach> | ||
</c:if> | ||
<tr> | ||
<td colspan="3"> | ||
<forms:addButton onclick="BS.ProjectConfigurationSettings.addHeader(this, ${otelHeaders.size()})">Add Header</forms:addButton> | ||
</td> | ||
</tr> | ||
</table> | ||
<span class="error" id="error_headers"></span> | ||
</td> | ||
</tr> |
21 changes: 21 additions & 0 deletions
21
server/src/main/resources/buildServerResources/projectConfigurationSettingsHoneycomb.jspf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<tr <c:if test='${otelService != "honeycomb.io"}'>style="display: none"</c:if>> | ||
<th><label for="honeycombApiKey">API Key: <span class="mandatoryAsterix" title="Mandatory field">*</span></label></th> | ||
<td> | ||
<forms:passwordField className="textField longField" name="honeycombApiKey" id="honeycombApiKey" encryptedPassword="${otelHoneycombApiKey}"/> | ||
<span class="error" id="error_honeycombApiKey"></span> | ||
</td> | ||
</tr> | ||
<tr <c:if test='${otelService != "honeycomb.io"}'>style="display: none"</c:if>> | ||
<th><label for="honeycombTeam">Team: <span class="mandatoryAsterix" title="Mandatory field">*</span></label></th> | ||
<td> | ||
<input type="text" name="honeycombTeam" id="honeycombTeam" value="${otelHoneycombTeam}" class="textField longField"> | ||
<span class="error" id="error_honeycombTeam"></span> | ||
</td> | ||
</tr> | ||
<tr <c:if test='${otelService != "honeycomb.io"}'>style="display: none"</c:if>> | ||
<th><label for="honeycombDataset">Dataset: <span class="mandatoryAsterix" title="Mandatory field">*</span></label></th> | ||
<td> | ||
<input type="text" name="honeycombDataset" id="honeycombDataset" value="${otelHoneycombDataset}" class="textField longField"> | ||
<span class="error" id="error_honeycombDataset"></span> | ||
</td> | ||
</tr> |
7 changes: 7 additions & 0 deletions
7
server/src/main/resources/buildServerResources/projectConfigurationSettingsZipkin.jspf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<tr <c:if test='${otelService != "zipkin.io"}'>style="display: none"</c:if>> | ||
<th><label for="endpoint">Endpoint: <span class="mandatoryAsterix" title="Mandatory field">*</span></label></th> | ||
<td> | ||
<input type="text" name="endpoint" id="endpoint" value="${otelEndpoint}" class="textField longField"> | ||
<span class="error" id="error_endpoint"></span> | ||
</td> | ||
</tr> |