Skip to content

Commit

Permalink
Fix http proxy setup page
Browse files Browse the repository at this point in the history
  • Loading branch information
Etheryte committed Aug 12, 2024
1 parent 0058897 commit 966b80b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 8 deletions.
3 changes: 2 additions & 1 deletion java/code/src/com/suse/manager/webui/utils/ViewHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public enum ViewHelper {
"/rhn/channels/manage/repos/RepoCreate.do",
"/rhn/systems/details/Overview",
"/rhn/manager/formula-catalog",
"/rhn/errata/manage/CloneErrata.do"
"/rhn/errata/manage/CloneErrata.do",
"/rhn/admin/setup/ProxySettings.do"
);

ViewHelper() { }
Expand Down
12 changes: 6 additions & 6 deletions java/code/webapp/WEB-INF/pages/admin/setup/proxy-settings.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
<div class="panel-body">
<form class="form-horizontal" role="form">
<div class="form-group">
<label for="http-proxy-input-hostname" class="col-xs-4 control-label">HTTP Proxy Hostname:</label>
<div class="col-xs-8">
<label for="http-proxy-input-hostname" class="col-4 control-label">HTTP Proxy Hostname:</label>
<div class="col-8">
<p class="form-control-static http-proxy-hostname"></p>
<input type="text" class="form-control http-proxy-hostname" id="http-proxy-input-hostname" placeholder="Hostname:Port">
</div>
</div>
<div class="form-group">
<label for="http-proxy-input-username" class="col-xs-4 control-label">HTTP Proxy Username:</label>
<div class="col-xs-8">
<label for="http-proxy-input-username" class="col-4 control-label">HTTP Proxy Username:</label>
<div class="col-8">
<p class="form-control-static http-proxy-username"></p>
<input type="text" class="form-control http-proxy-username" id="http-proxy-input-username" value="" placeholder="Username">
</div>
</div>
<div class="form-group">
<label for="http-proxy-input-password" class="col-xs-4 control-label">HTTP Proxy Password:</label>
<div class="col-xs-8">
<label for="http-proxy-input-password" class="col-4 control-label">HTTP Proxy Password:</label>
<div class="col-8">
<p class="form-control-static http-proxy-password"></p>
<input type="password" autocomplete="new-password" class="form-control http-proxy-password" id="http-proxy-input-password" value="" placeholder="Password">
</div>
Expand Down
10 changes: 9 additions & 1 deletion web/html/src/branding/css/base/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
.form-group {
display: flex;
margin-bottom: 10px;

&:last-child {
margin-bottom: 0;
}
}

label {
Expand Down Expand Up @@ -33,8 +37,12 @@ input[type="checkbox"] {
}

.checkbox {
margin-bottom: 10px;
margin-top: 10px;
margin-bottom: 10px;

&:last-child {
margin-bottom: 0;
}

& + .checkbox {
margin-top: -5px;
Expand Down
13 changes: 13 additions & 0 deletions web/html/src/branding/css/susemanager/components/text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,16 @@
color: $eos-bc-red-900 !important;
}
}

p {
margin-top: 0;
margin-bottom: 1rem;

&:last-child {
margin-bottom: 0;
}
}

ul {
padding-left: 0;
}
1 change: 1 addition & 0 deletions web/html/src/core/spa/view-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const BOOTSTRAP_READY_PAGES: PathString[] = [
"/rhn/systems/details/Overview",
"/rhn/manager/formula-catalog",
"/rhn/errata/manage/CloneErrata.do",
"/rhn/admin/setup/ProxySettings.do",
];

export const onEndNavigate = () => {
Expand Down

0 comments on commit 966b80b

Please sign in to comment.