-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
908028e
commit e52bfc0
Showing
4 changed files
with
158 additions
and
131 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
125 changes: 71 additions & 54 deletions
125
java/code/webapp/WEB-INF/pages/admin/multiorg/configuration.jsp
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 |
---|---|---|
@@ -1,65 +1,82 @@ | ||
<%@ taglib uri="http://rhn.redhat.com/rhn" prefix="rhn" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> | ||
|
||
<html:html> | ||
<html:html> | ||
<body> | ||
<c:choose> | ||
<c:when test="${param.oid != 1}"> | ||
<rhn:toolbar base="h1" icon="header-organisation" | ||
miscUrl="${url}" | ||
miscAcl="user_role(org_admin)" | ||
miscText="${text}" | ||
miscImg="${img}" | ||
miscAlt="${text}" | ||
deletionUrl="/rhn/admin/multiorg/DeleteOrg.do?oid=${param.oid}" | ||
deletionAcl="user_role(satellite_admin)" | ||
deletionType="org" | ||
imgAlt="users.jsp.imgAlt"> | ||
<c:out escapeXml="true" value="${org.name}" /> | ||
</rhn:toolbar> | ||
</c:when> | ||
<c:otherwise> | ||
<rhn:toolbar base="h1" icon="header-organisation" | ||
miscUrl="${url}" | ||
miscAcl="user_role(org_admin)" | ||
miscText="${text}" | ||
miscImg="${img}" | ||
miscAlt="${text}" | ||
imgAlt="users.jsp.imgAlt"> | ||
<c:out escapeXml="true" value="${org.name}" /> | ||
</rhn:toolbar> | ||
</c:otherwise> | ||
</c:choose> | ||
|
||
<body> | ||
<c:choose> | ||
<c:when test="${param.oid != 1}"> | ||
<rhn:toolbar base="h1" icon="header-organisation" miscUrl="${url}" miscAcl="user_role(org_admin)" | ||
miscText="${text}" miscImg="${img}" miscAlt="${text}" | ||
deletionUrl="/rhn/admin/multiorg/DeleteOrg.do?oid=${param.oid}" | ||
deletionAcl="user_role(satellite_admin)" deletionType="org" imgAlt="users.jsp.imgAlt"> | ||
<c:out escapeXml="true" value="${org.name}" /> | ||
</rhn:toolbar> | ||
</c:when> | ||
<c:otherwise> | ||
<rhn:toolbar base="h1" icon="header-organisation" miscUrl="${url}" miscAcl="user_role(org_admin)" | ||
miscText="${text}" miscImg="${img}" miscAlt="${text}" imgAlt="users.jsp.imgAlt"> | ||
<c:out escapeXml="true" value="${org.name}" /> | ||
</rhn:toolbar> | ||
</c:otherwise> | ||
</c:choose> | ||
<rhn:dialogmenu mindepth="0" maxdepth="2" definition="/WEB-INF/nav/org_tabs.xml" renderer="com.redhat.rhn.frontend.nav.DialognavRenderer" /> | ||
|
||
<rhn:dialogmenu mindepth="0" maxdepth="2" definition="/WEB-INF/nav/org_tabs.xml" | ||
renderer="com.redhat.rhn.frontend.nav.DialognavRenderer" /> | ||
|
||
<form method="post" class="form-horizontal" action="/rhn/admin/multiorg/OrgConfigDetails.do"> | ||
<rhn:csrf /> | ||
<rhn:submitted /> | ||
<rhn:hidden name="oid" value="${param.oid}" /> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h4> | ||
<bean:message key="satconfig.jsp.header" /> | ||
</h4> | ||
</div> | ||
<div class="panel-body"> | ||
<p> | ||
<bean:message key="satconfig.jsp.description" /> | ||
</p> | ||
<hr /> | ||
<div class="form-group"> | ||
<label class="col-lg-3 control-label"> | ||
<bean:message key="org-config.orgadm-mgmt.jsp" /> | ||
</label> | ||
<div class="col-lg-6"> | ||
<div class="checkbox"> | ||
<input type="checkbox" name="org_admin_mgmt" value="enabled" id="org_admin_mgmt" <c:if | ||
test="${org.orgAdminMgmt.enabled}"> | ||
checked="checked" | ||
</c:if>/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<form method="post" | ||
class="form-horizontal" | ||
action="/rhn/admin/multiorg/OrgConfigDetails.do"> | ||
<rhn:csrf /> | ||
<rhn:submitted/> | ||
<rhn:hidden name="oid" value="${param.oid}"/> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h4><bean:message key="satconfig.jsp.header"/></h4> | ||
</div> | ||
<div class="panel-body"> | ||
<p><bean:message key="satconfig.jsp.description"/></p> | ||
<hr /> | ||
<div class="form-group"> | ||
<label class="col-lg-3 control-label"> | ||
<bean:message key="org-config.orgadm-mgmt.jsp"/> | ||
</label> | ||
<div class="col-lg-6"> | ||
<div class="checkbox"> | ||
<input type="checkbox" name="org_admin_mgmt" | ||
value="enabled" id="org_admin_mgmt" | ||
<c:if test = "${org.orgAdminMgmt.enabled}"> | ||
checked="checked" | ||
</c:if>/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h4><bean:message key="orgconfig.jsp.header"/></h4> | ||
</div> | ||
<div class="panel-body"> | ||
<p><bean:message key="orgconfig.jsp.description"/></p> | ||
<hr/> | ||
<%@ include file="/WEB-INF/pages/common/fragments/org-config.jspf" %> | ||
</div> | ||
</div> | ||
<html:submit styleClass="btn btn-primary"> | ||
<bean:message key="orgdetails.jsp.submit"/> | ||
</html:submit> --> | ||
</html:submit> | ||
</form> | ||
</body> | ||
</html:html> |
156 changes: 80 additions & 76 deletions
156
java/code/webapp/WEB-INF/pages/systems/details/packages/upgradable.jsp
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 |
---|---|---|
@@ -1,91 +1,95 @@ | ||
<%@ taglib uri="http://rhn.redhat.com/rhn" prefix="rhn" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> | ||
<%@ taglib uri="http://rhn.redhat.com/tags/list" prefix="rl" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> | ||
<%@ taglib uri="http://rhn.redhat.com/tags/list" prefix="rl" %> | ||
|
||
|
||
<html> | ||
<html> | ||
|
||
<body> | ||
<%@ include file="/WEB-INF/pages/common/fragments/systems/system-header.jspf" %> | ||
<body> | ||
<%@ include file="/WEB-INF/pages/common/fragments/systems/system-header.jspf" %> | ||
|
||
<h2> | ||
<rhn:icon type="header-package-upgrade" title="errata.common.upgradepackageAlt" /> | ||
<bean:message key="upgradable.jsp.header" /> | ||
</h2> | ||
<div class="page-summary"> | ||
<p> | ||
<bean:message key="upgradable.jsp.summary" /> | ||
</p> | ||
</div> | ||
<h2> | ||
<rhn:icon type="header-package-upgrade" title="errata.common.upgradepackageAlt" /> | ||
<bean:message key="upgradable.jsp.header" /> | ||
</h2> | ||
<div class="page-summary"> | ||
<p> | ||
<bean:message key="upgradable.jsp.summary" /> | ||
</p> | ||
</div> | ||
|
||
<c:set var="pageList" value="${requestScope.all}" /> | ||
<c:set var="pageList" value="${requestScope.all}" /> | ||
|
||
<rl:listset name="packageListSet"> | ||
<rhn:csrf /> | ||
<rhn:submitted /> | ||
<c:if test="${not empty requestScope.all}"> | ||
<div class="spacewalk-section-toolbar"> | ||
<div class="action-button-wrapper"> | ||
<input type="submit" class="btn btn-default" name="dispatch" | ||
value='<bean:message key="upgradable.jsp.upgrade"/>' /> | ||
</div> | ||
</div> | ||
</c:if> | ||
<rl:list dataset="pageList" width="100%" name="packageList" emptykey="packagelist.jsp.nopackages" | ||
alphabarcolumn="nvrea"> | ||
<rl:decorator name="PageSizeDecorator" /> | ||
<rl:decorator name="ElaborationDecorator" /> | ||
<rl:decorator name="SelectableDecorator" /> | ||
<rl:selectablecolumn value="${current.selectionKey}" selected="${current.selected}" | ||
disabled="${not current.selectable}" /> | ||
<rl:listset name="packageListSet"> | ||
<rhn:csrf /> | ||
<rhn:submitted /> | ||
<c:if test="${not empty requestScope.all}"> | ||
<div class="spacewalk-section-toolbar"> | ||
<div class="action-button-wrapper"> | ||
<input type="submit" class="btn btn-default" name="dispatch" | ||
value='<bean:message key="upgradable.jsp.upgrade"/>'/> | ||
</div> | ||
</div> | ||
</c:if> | ||
<rl:list dataset="pageList" | ||
width="100%" | ||
name="packageList" | ||
emptykey="packagelist.jsp.nopackages" | ||
alphabarcolumn="nvrea"> | ||
<rl:decorator name="PageSizeDecorator"/> | ||
<rl:decorator name="ElaborationDecorator"/> | ||
<rl:decorator name="SelectableDecorator"/> | ||
<rl:selectablecolumn value="${current.selectionKey}" | ||
selected="${current.selected}" | ||
disabled="${not current.selectable}"/> | ||
|
||
<rl:column headerkey="upgradable.jsp.latest" bound="false" sortattr="nvrea" sortable="true" | ||
filterattr="nvrea"> | ||
<rl:column headerkey="upgradable.jsp.latest" bound="false" | ||
sortattr="nvrea" | ||
sortable="true" filterattr="nvrea"> | ||
|
||
<a href="/rhn/software/packages/Details.do?sid=${param.sid}&id_combo=${current.idCombo}"> | ||
${current.nvrea}</a> | ||
<c:if test="${current.appstream != null}"> | ||
<span class="label label-info" title="AppStream module: ${current.appstream}"> | ||
<c:out value="${current.appstream}" /> | ||
</span> | ||
| ||
</c:if> | ||
<c:if test="${current.pkgReboot}"> | ||
<rhn:icon type="errata-reboot" title="errata-legend.jsp.reboot" /> | ||
</c:if> | ||
<a href="/rhn/software/packages/Details.do?sid=${param.sid}&id_combo=${current.idCombo}"> | ||
${current.nvrea}</a> | ||
<c:if test="${current.appstream != null}"> | ||
<span class="label label-info" title="AppStream module: ${current.appstream}"> | ||
<c:out value="${current.appstream}"/> | ||
</span> | ||
| ||
</c:if> | ||
<c:if test="${current.pkgReboot}"> | ||
<rhn:icon type="errata-reboot" title="errata-legend.jsp.reboot" /> | ||
</c:if> | ||
</rl:column> | ||
|
||
<rl:column headerkey="upgradable.jsp.installed" bound="false"> | ||
${current.installedPackage} | ||
</rl:column> | ||
|
||
<rl:column headerkey="upgradable.jsp.errata"> | ||
<c:forEach items="${current.errata}" var="errata"> | ||
<c:if test="${not empty errata.advisory}"> | ||
<c:if test="${errata.type == 'Security Advisory'}"> | ||
<rhn:icon type="errata-security" title="erratalist.jsp.securityadvisory" /> | ||
</c:if> | ||
<c:if test="${errata.type == 'Bug Fix Advisory'}"> | ||
<rhn:icon type="errata-bugfix" title="erratalist.jsp.bugadvisory" /> | ||
</c:if> | ||
<c:if test="${errata.type == 'Product Enhancement Advisory'}"> | ||
<rhn:icon type="errata-enhance" title="erratalist.jsp.productenhancementadvisory" /> | ||
</c:if> | ||
<c:if test="${current.errataReboot}"> | ||
<rhn:icon type="errata-reboot" title="errata-legend.jsp.reboot" /> | ||
</c:if> | ||
<c:if test="${current.errataRestart}"> | ||
<rhn:icon type="errata-restart" title="errata.jsp.restart-tooltip" /> | ||
</c:if> | ||
<a href="/rhn/errata/details/Details.do?eid=${errata.id}">${errata.advisory}</a><br /> | ||
</c:if> | ||
</c:forEach> | ||
${current.installedPackage} | ||
</rl:column> | ||
</rl:list> | ||
|
||
</rl:listset> | ||
</body> | ||
<rl:column headerkey="upgradable.jsp.errata"> | ||
<c:forEach items="${current.errata}" var="errata"> | ||
<c:if test="${not empty errata.advisory}"> | ||
<c:if test="${errata.type == 'Security Advisory'}"> | ||
<rhn:icon type="errata-security" title="erratalist.jsp.securityadvisory" /> | ||
</c:if> | ||
<c:if test="${errata.type == 'Bug Fix Advisory'}"> | ||
<rhn:icon type="errata-bugfix" title="erratalist.jsp.bugadvisory" /> | ||
</c:if> | ||
<c:if test="${errata.type == 'Product Enhancement Advisory'}"> | ||
<rhn:icon type="errata-enhance" title="erratalist.jsp.productenhancementadvisory" /> | ||
</c:if> | ||
<c:if test="${current.errataReboot}"> | ||
<rhn:icon type="errata-reboot" title="errata-legend.jsp.reboot" /> | ||
</c:if> | ||
<c:if test="${current.errataRestart}"> | ||
<rhn:icon type="errata-restart" title="errata.jsp.restart-tooltip" /> | ||
</c:if> | ||
<a href="/rhn/errata/details/Details.do?eid=${errata.id}">${errata.advisory}</a><br/> | ||
</c:if> | ||
</c:forEach> | ||
</rl:column> | ||
</rl:list> | ||
|
||
</html> | ||
</rl:listset> | ||
</body> | ||
</html> |
Oops, something went wrong.