Init!!
This commit is contained in:
207
bank-war/web/admin_cliente_view.xhtml
Normal file
207
bank-war/web/admin_cliente_view.xhtml
Normal file
@@ -0,0 +1,207 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Cliente</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_main" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list white bg-red pa4" />
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Datos del cliente////////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
<div class="mv3 pa2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="rut" value="Rut:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 w-100" id="rut" value="#{clienteBean.cliente.rut}" readonly="true"/>
|
||||
</div>
|
||||
|
||||
<div class="mv3 pa2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="nombre" value="Nombre:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 w-100" id="nombre" value="#{clienteBean.cliente.nombre}" readonly="true"/>
|
||||
</div>
|
||||
|
||||
<div class="mv3 pa2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="ciudad" value="Ciudad:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 w-100" id="ciudad" value="#{clienteBean.cliente.ciudad}" readonly="true"/>
|
||||
</div>
|
||||
|
||||
|
||||
<h2 class="f2">Servicios</h2>
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Cuentas Corrientes///////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
|
||||
<div class="flex justify-between">
|
||||
<h3 class="f3 dib">Cuentas Corrientes</h3>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarCuentaCorriente()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-wallet"></li> Contratar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.cuentaCorrienteList}" var="cuentaCorriente">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Saldo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.saldo}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green" action="#{clienteBean.gotoAdminViewCuentaCorriente(cuentaCorriente)}">
|
||||
<li class="fas fa-eye"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Tarjetas de Debito//////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
|
||||
<div class="flex justify-between">
|
||||
<h3 class="f3 dib">Tarjetas de Debito</h3>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarTarjetaDebito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-money-check"></li> Contratar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.tarjetaDebitoList}" var="tarjetaDebito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Saldo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.saldo}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 dib white bg-green">
|
||||
<li class="fas fa-eye"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Tarjetas de Credito//////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
|
||||
<div class="flex justify-between">
|
||||
<h3 class="f3 dib">Tarjetas de Credito</h3>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarTarjetaCredito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-credit-card"></li> Contratar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.tarjetaCreditoList}" var="tarjetaCredito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Limite Nacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.limiteNacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Deuda Nacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.deudaNacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Limite Internacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.limiteInternacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Deuda Internacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.deudaInternacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 dib white bg-green">
|
||||
<li class="fas fa-eye"></li>
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 ml2 dib white bg-blue" action="#{clienteBean.gotoEditTarjetaCredito(tarjetaCredito)}">
|
||||
<li class="fas fa-edit"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandButton class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user