123 lines
6.6 KiB
HTML
123 lines
6.6 KiB
HTML
<?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.isClient()}">
|
|
<div class="flex justify-between">
|
|
<h1 class="f1">Tarjeta Credito</h1>
|
|
|
|
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="cliente_main" style="margin-top: auto; margin-bottom: auto">
|
|
<li class="fas fa-arrow-left"></li> Volver
|
|
</h:commandLink>
|
|
</div>
|
|
|
|
<div class="mt3 tc">
|
|
<h:outputLabel class="db fw4 lh-copy f6" for="id" value="Id:"/>
|
|
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="id" value="#{tarjetaCreditoBean.tarjetaCredito.id}" readonly="true" label="Id:"/>
|
|
</div>
|
|
<div class="mt3 tc">
|
|
<h:outputLabel class="db fw4 lh-copy f6" for="limite_nacional" value="Limite Nacional: "/>
|
|
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="limite_nacional" value="#{tarjetaCreditoBean.tarjetaCredito.limiteNacional}" readonly="true" label="Limite Nacional:"/>
|
|
</div>
|
|
<div class="mt3 tc">
|
|
<h:outputLabel class="db fw4 lh-copy f6" for="deuda_nacional" value="Deuda Nacional: "/>
|
|
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="deuda_nacional" value="#{tarjetaCreditoBean.tarjetaCredito.deudaNacional}" readonly="true" label="Deuda Nacional"/>
|
|
</div>
|
|
<div class="mt3 tc">
|
|
<h:outputLabel class="db fw4 lh-copy f6" for="limite_internacional" value="Limite Internacional: "/>
|
|
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="limite_internacional" value="#{tarjetaCreditoBean.tarjetaCredito.limiteInternacional}" readonly="true" label="Limite Internacional: "/>
|
|
</div>
|
|
<div class="mt3 tc">
|
|
<h:outputLabel class="db fw4 lh-copy f6" for="deuda_internacional" value="Deuda Internacional"/>
|
|
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="deuda_internacional" value="#{tarjetaCreditoBean.tarjetaCredito.deudaInternacional}" readonly="true" label="Deuda Internacional: "/>
|
|
</div>
|
|
<div class="mt3 tc">
|
|
<h:outputLabel class="db fw4 lh-copy f6" for="fecha_creacion" value="Fecha Creacion:"/>
|
|
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="fecha_creacion" value="#{tarjetaCreditoBean.tarjetaCredito.insertedAt}" readonly="true" label="Fecha Creacion:">
|
|
<f:convertDateTime pattern="dd/MM/yyyy"/>
|
|
</h:inputText>
|
|
</div>
|
|
|
|
<div class="flex mt3 justify-center">
|
|
<h:commandLink class="f5 tc link dim br2 ph3 pv2 w-30 dib white bg-green" action="#{tarjetaCreditoBean.gotoComprar()}">
|
|
<li class="fas fa-shopping-basket"></li> Comprar
|
|
</h:commandLink>
|
|
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ml2 w-30 dib white bg-red" action="#{tarjetaCreditoBean.gotoPagar()}">
|
|
<li class="fas fa-money-bill"></li> Pagar
|
|
</h:commandLink>
|
|
</div>
|
|
|
|
<h1 class="f1">Compras</h1>
|
|
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaCreditoBean.tarjetaCredito.compraList}" var="compra">
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Fecha"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{compra.insertedAt}">
|
|
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
|
</h:outputLabel>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Comentario"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{compra.comentario}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Monto"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{compra.monto}"/>
|
|
</h:column>
|
|
</h:dataTable>
|
|
|
|
<h1 class="f1">Pagos</h1>
|
|
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaCreditoBean.tarjetaCredito.pagoList}" var="pago">
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Fecha"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{pago.insertedAt}">
|
|
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
|
</h:outputLabel>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Comentario"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{pago.comentario}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Monto"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{pago.monto}"/>
|
|
</h:column>
|
|
</h:dataTable>
|
|
</h:form>
|
|
|
|
<h:form rendered="#{!userBean.isLogged()}">
|
|
<div class="tc">
|
|
<h1 class="f1 tc">Acceso no autorizado</h1>
|
|
<h:commandLink 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>
|
|
|
|
|