Skip to content

Commit

Permalink
Signed-off-by: DamithDeshan <hkddrajapaksha@gmail.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
DamithDeshan committed Dec 23, 2024
1 parent 72a5c71 commit 11cb827
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
74 changes: 74 additions & 0 deletions src/main/webapp/admin/lims/export.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?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://xmlns.jcp.org/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
</h:head>
<h:body>
<ui:composition template="/resources/template/template.xhtml">
<ui:define name="content">
<h:form id="form" >
<p:panel header="Format Expoet" styleClass="w-100 p-0 m-1" >
<f:facet name="header">
<div class="d-flex justify-content-between">
<h:outputText value="Format Expoet" class="mt-2" style="font-size: 22px; font-weight: 700"/>
<p:commandButton
value="Back"
icon="fa fa-arrow-left"
style="float: right;"
action="#{investigationController.navigateToManageInvestigation}"
ajax="false" >
</p:commandButton>
</div>

</f:facet>

<div class="d-flex justify-content-between">
<div class="d-flex col-5 gap-4" style="font-size: 18px; font-weight: 700">
<h:outputText value="Current Investigation" class="mt-2"/>
<h:outputText value="-" class="mt-2"/>
<h:outputText value="#{investigationItemController.currentInvestigation.name}" class="mt-2 text-dark"/>
</div>
<p:commandButton
ajax="false"
style="float: right; width: 200px;"
icon="fas fa-file-export export-icon"
class="ui-button-warning"
action="#{labReportExportImportController.export()}"
value="Export" >
</p:commandButton>
</div>

<p:panel id="pIx" class=" w-100 mt-3">

<f:facet name="header">
<h:outputText value="Investigation Items List" class="mt-2"/>
</f:facet>

<div class="row mb-1" style="font-weight: 700; font-size: 16px;">
<div class="col-2"><p:outputLabel value="Item Name" ></p:outputLabel></div>
<div class="col-1"><p:outputLabel value="Item Type" ></p:outputLabel></div>
<div class="col-1"><p:outputLabel value="Item Value Type" ></p:outputLabel></div>
<div class="col-1"><p:outputLabel value="Automated" ></p:outputLabel></div>
</div>
<ui:repeat value="#{investigationItemController.userChangableItems}" var="ii">
<div class="row mb-1">
<div class="col-2"><p:outputLabel value="#{ii.name}" ></p:outputLabel></div>
<div class="col-1"><p:outputLabel value="#{ii.ixItemType}" ></p:outputLabel></div>
<div class="col-1"><p:outputLabel value="#{ii.ixItemValueType}" ></p:outputLabel></div>
<div class="col-1"><p:outputLabel value="#{ii.automated}" ></p:outputLabel></div>
</div>

</ui:repeat>

</p:panel>
</p:panel>

</h:form>
</ui:define>
</ui:composition>
</h:body>
</html>
8 changes: 8 additions & 0 deletions src/main/webapp/admin/lims/investigation.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,14 @@
action="#{investigationController.navigateToEditFormatMultiple()}"
value="Manage Format - All Items" >
</p:commandButton>

<p:commandButton
class="w-100"
ajax="false"
icon="fas fa-file-export export-icon"
action="#{investigationController.navigateExportReoirtFormat()}"
value="Export Format" >
</p:commandButton>

<p:commandButton
class="w-100"
Expand Down

0 comments on commit 11cb827

Please sign in to comment.