<%--
/*
 * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 *
 * ident	"@(#)PublicInterfacePagelet.jsp	1.5	05/11/04 SMI"
 */
--%>

<%@taglib uri="/WEB-INF/tld/com_iplanet_jato/jato.tld" prefix="jato"%>
<%@taglib uri="/WEB-INF/tld/com_sun_web_ui/cc.tld" prefix="cc"%>
<%@taglib uri="/WEB-INF/tld/com_sun_cluster_spm/spm.tld" prefix="spm"%>

<jato:pagelet>

<jato:form name="scForm" method="post">

<SCRIPT LANGUAGE="JavaScript">
 function displayConfirmation() {
   var msg= '<cc:text name="DeleteConfirmationText" bundleID="scBundle"/>';
   var result = confirm(msg) ;
    if (result) {
       unRegisterEvents();
  }   

  return result ;
 }
</SCRIPT>
   

<!-- Hidden Field for the tree -->
<cc:hidden name="../TreeNodeHiddenField"/>

<!-- Status Alert -->
<spm:alertinline name="StatusAlert" bundleID="scBundle" />

<!-- Command Alert -->
<spm:alertinline name="../CommandResultAlert" bundleID="scBundle" />

<!-- Selection Error Alert -->
<spm:alertinline name="../SelectionErrorAlert" bundleID="scBundle" />

<!-- PageTitle -->
<cc:pagetitle name="../GenericPageTitle" bundleID="scBundle"
 pageTitleText="title" 
 showPageTitleSeparator="true"
 pageTitleHelpMessage="help">

 <spm:rbac auths="solaris.cluster.network.modify solaris.cluster.node.read">

<br>

 <!-- Add Button -->
<div class="ConMgn"> 
 <table border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td>
 	<cc:button name="AddButton" bundleID="scBundle" 
  	defaultValue="netif.publicInterface.status.addButton.defaultValue"
  	title="netif.publicInterface.status.addButton.title"
  	type="primary"/>
    </td>
    <td>

 <!-- Delete Button -->

 	<cc:button name="DeleteButton" bundleID="scBundle" 
  	defaultValue="netif.publicInterface.status.deleteButton.defaultValue"
  	title="netif.publicInterface.status.deleteButton.title"
  	type="primary" 
	onClick="return displayConfirmation()"/>
   </td>
   </tr>
 </table>
 </div>
 </spm:rbac>

<div><img src="/com_sun_web_ui/images/other/dot.gif" width="1" height="5" alt=""></div>

<!-- Summary  -->

<div class="ConMgn">
<table  border="0" cellpadding="0" cellspacing="0">
<tr>
  <td valign="top">
	<div class="ConTblCl1Div">&nbsp;
	<cc:label name="PublicInterfaceLabel" bundleID="scBundle"
         defaultValue="netif.publicInterface.label"/>
	</div>
   </td>
   <td valign="top">
	<div class="ConTblCl2Div">
        <span id="psLbl2" class="ConDefTxt">
	<cc:text name="PublicInterfaceValue" bundleID="scBundle"/>
	</span>
        </div>
   </td>
 </tr>
 <tr>
   <td valign="top">
	<div class="ConTblCl1Div">&nbsp;
	 <cc:label name="StatusLabel" bundleID="scBundle"
          defaultValue="netif.publicInterface.status.label"/>
	</div>
   </td>
   <td valign="top">
	<div class="ConTblCl2Div">
	<span id="psLbl2" class="ConDefTxt">
	<cc:alarm name="StatusAlarm"/>
	<cc:text name="StatusValue" bundleID="scBundle"/>
	</span>
        </div>
   </td>
 </tr>
</table>
</div>

<!-- in current implementation, if no node rights user see nothing -->
<spm:rbac auths="solaris.cluster.node.read">

<div><img src="/com_sun_web_ui/images/other/dot.gif" width="1" height="10" alt=""></div>

<jato:containerView name="TableView">

<!-- Action Table -->
<cc:actiontable
name="Table"
bundleID="scBundle"
title="netif.publicInterface.TableTitle"
summary="netif.publicInterface.TableSummary"
empty="netif.publicInterface.emptyTable"
rowSelectionType="none"
showAdvancedSortingIcon="false"
showLowerActions="false"
showPaginationControls="false"
showPaginationIcon="false"
showSelectionIcons="false"
showSortingRow="false"
page="1"/>

</jato:containerView>

</spm:rbac>

</cc:pagetitle>
</jato:form>
</jato:pagelet>
