65 lines
3.0 KiB
HTML
65 lines
3.0 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.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
xmlns:p="http://primefaces.org/ui" xmlns:o="http://omnifaces.org/ui">
|
|
|
|
<ui:composition template="../header.xhtml">
|
|
<ui:define name="content">
|
|
<h:form id="TestForm">
|
|
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
<p:panel id="frmSSbD" header="Búsqueda de médicos especialista por especialidad">
|
|
<div class="ui-g ui-fluid">
|
|
|
|
<div class="ui-g-2 ui-md-2">
|
|
<p:outputLabel for="selMS" value="Especialidad:" />
|
|
</div>
|
|
<div class="ui-g-6 ui-md-6">
|
|
<p:autoComplete id="selMS" dropdown="true" required="true" value="#{sspec.medicalSpecialty}" completeMethod="#{sspec.completeMedicalSpecialty}" var="ms"
|
|
itemLabel="#{ms.displayName}" itemValue="#{ms}" forceSelection="true" requiredMessage="Por favor, selecciona una especialidad médica"
|
|
placeholder="Seleccione una especialidad médica o teclee para buscar...">
|
|
<o:converter converterId="omnifaces.ListConverter" list="#{sspec.medicalSpecialtiesList}" />
|
|
<p:ajax event="itemSelect" update="dtDoctorList" oncomplete="PF('dtDoctorList').getPaginator().setPage(0);" />
|
|
<p:column headerText="Nombre">
|
|
<h:outputText value="#{ms.name}" />
|
|
</p:column>
|
|
<p:column headerText="Descripción">
|
|
<h:outputText value="#{ms.description}" />
|
|
</p:column>
|
|
</p:autoComplete>
|
|
</div>
|
|
<div class="ui-g-4 ui-md-4" />
|
|
|
|
<div class="ui-g-12">
|
|
<p:dataTable id="dtDoctorList" widgetVar="dtDoctorList" var="d" value="#{sspec.lazyDataModelDoctorList}" lazy="true" paginator="true" rows="10" paginatorPosition="bottom"
|
|
paginatorAlwaysVisible="true" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
|
|
rowsPerPageTemplate="10,20,30,40" emptyMessage="No existe ningún especialista para la especialidad seleccionada.">
|
|
|
|
<p:column headerText="Núm. Profesional" width="90">
|
|
<h:outputText value="#{d.professionalNumber}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="Nombre" width="150">
|
|
<h:outputText value="#{d.name}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="Apellidos" width="auto">
|
|
<h:outputText value="#{d.surname}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="Correo electrónico" width="auto">
|
|
<h:outputText value="#{d.email}" />
|
|
</p:column>
|
|
|
|
<f:facet name="paginatorBottomLeft">
|
|
<p:commandButton type="button" icon="pi pi-refresh" onclick="PF('dtDoctorList').getPaginator().setPage(0);" />
|
|
</f:facet>
|
|
</p:dataTable>
|
|
</div>
|
|
</div>
|
|
</p:panel>
|
|
</h:form>
|
|
</ui:define>
|
|
</ui:composition>
|
|
</html>
|