Detalle (Maestro-Detalle)<Permiso> view
Last updated
Was this helpful?
Last updated
Was this helpful?
Permiso depende de Agente.
Se agregan <a:search><a:searchDate><a:searchBetweenDate>
Se colocan en<b:row>, con <b:columnmedium-screen="”>para una mejor distribuciòn de los elementos.
Agregamos la informaciòn del padre y un botòn para regresar.
Viene del formulario agente con el componente.
(Se invoca desde el list Agente)
<b:form id=”form”>
<h:panelGroup id=”content”>
<a:messages/>
<b:panel title="#{app['title.data']}">
<b:panelGrid id="panel" colSpans="2,10" >
<p:outputLabel /> {campo llave no se edita}
<a:inputText/>
<a:password/>
<a:email/>
<a:selectOneMenu/>
<a:autocompleteEntity/>
</b:panelGrid>
<a:view/>
</b:panel>
</h:panelGroup>
</b:form>
<a:denegado/>
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<ui:composition template="/layout/template.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:b="http://bootsfaces.net/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:a="http://xmlns.jcp.org/jsf/composite/avbravo">
<ui:define name="content">
<style>
.thumbnail { max-width: 100%; }
img.thumbnail:hover, img.thumbnail:focus {
border: 1px solid;
border-color: #428BCA;
}
</style>
<h1>#{msg['titleview.permiso']}</h1>
<hr/>
<b:form id="form" prependId="false" rendered="#{loginController.loggedIn and applicationMenu.permiso.query}" onkeypress="if (event.keyCode == 13) {
return false;
}">
<h:panelGroup id="content" layout="block">
<a:messages id="msg"/>
<b:panel title="#{app['title.data']}">
<b:panelGrid id="panel" colSpans="2,10" size="xs" rendered="#{permisoController.writable}">
<p:outputLabel value="#{msg['field.idpermiso']}" />
<p:outputLabel value="#{permisoController.permiso.idpermiso}" id="idpermiso" />
<p:outputLabel value="#{msg['field.idagente']}" />
<p:outputLabel value="#{permisoController.agente.idagente}"/>
<p:outputLabel value="#{msg['field.agente']}" />
<p:outputLabel value="#{permisoController.agente.nombre}"/>
<p:outputLabel value="#{msg['field.fechainicio']}" />
<a:calendar value="#{permisoController.permiso.fechainicio}"
pattern="dd/MM/yyyy HH:mm:ss" id="fechainicio" label="#{msg['field.fechainicio']}" />
<p:outputLabel value="#{msg['field.fechafin']}" />
<a:calendar value="#{permisoController.permiso.fechafin}"
pattern="dd/MM/yyyy HH:mm:ss" id="fechafin" label="#{msg['field.fechafin']}" />
</b:panelGrid>
<a:view
renderedDelete="#{applicationMenu.permiso.delete and permisoController.writable }"
renderedEdit="#{applicationMenu.permiso.edit and permisoController.writable}"
renderedList="#{applicationMenu.permiso.list and permisoController.writable}"
edit="#{permisoController.edit()}"
delete="#{permisoController.delete(permisoController.permiso,true)}"
print="#{permisoController.print()}"
url="#{permisoController.prepare('golist',permisoController.permiso)}"
/>
</b:panel>
</h:panelGroup>
</b:form>
<a:denegado renderedcondition="#{!loginController.loggedIn or !applicationMenu.permiso.query}" />
<br/><br/><br/>
</ui:define>
</ui:composition>