-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6862 from hmislk/issue#6861
Issue#6861 Closes #6861
- Loading branch information
Showing
11 changed files
with
332 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?xml version='1.0' encoding='UTF-8' ?> | ||
<!-- Configuration done by Dr M H B Ariyaratne with assistance from ChatGPT from OpenAI. --> | ||
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
template="/admin/institutions/admin_institutions_index.xhtml" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:p="http://primefaces.org/ui"> | ||
<ui:define name="admin"> | ||
|
||
<h:panelGroup rendered="#{!adjustmentCategoryControllerdataUploadController.uploadComplete}" > | ||
<div class="container-fluid" > | ||
<div class="card" > | ||
<div class="card-header" > | ||
<h2>Upload Routes</h2> | ||
</div> | ||
<div class="card-body" > | ||
<h:form enctype="multipart/form-data"> | ||
<p:fileUpload value="#{dataUploadController.file}" | ||
mode="simple" | ||
label="Choose File"/> | ||
<p:commandButton value="Upload" | ||
icon="fas fa-upload" | ||
class="ui-button-success" | ||
action="#{dataUploadController.uploadRoutes()}" | ||
ajax="false"/> | ||
<p:commandButton value="Download Template" | ||
ajax="false" | ||
icon="fas fa-download" | ||
class="ui-button-warning mx-2" | ||
onclick="PrimeFaces.monitorDownload(start, stop);" > | ||
<p:fileDownload value="#{dataUploadController.templateForSupplierUpload}" /> | ||
</p:commandButton> | ||
|
||
<p:dialog modal="true" widgetVar="statusDialog" header="Status" draggable="false" closable="false" resizable="false"> | ||
</p:dialog> | ||
<script type="text/javascript"> | ||
function start() { | ||
PF('statusDialog').show(); | ||
} | ||
|
||
function stop() { | ||
PF('statusDialog').hide(); | ||
} | ||
</script> | ||
|
||
</h:form> | ||
|
||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Column</th> | ||
<th>Title</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>A</td> | ||
<td>Name</td> | ||
<td>Name. Required</td> | ||
</tr> | ||
<tr> | ||
<td>B</td> | ||
<td>Institution Name</td> | ||
<td>Institution Name. Required</td> | ||
</tr> | ||
<tr> | ||
<td>C</td> | ||
<td>Description</td> | ||
<td>Description. Optional</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<p:poll update="tbl"></p:poll> | ||
</h:panelGroup> | ||
|
||
<h:panelGroup rendered="#{adjustmentCategoryControllerdataUploadController.uploadComplete}" > | ||
|
||
<p:dataTable id="tbl" | ||
value="#{dataUploadController.routes}" | ||
var="routes" | ||
paginator="true" | ||
rows="10" | ||
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" | ||
rowsPerPageTemplate="5,10,15"> | ||
<f:facet name="header" class="p-1" > | ||
<p:outputLabel value="Uploded More Collecting Centres" ></p:outputLabel> | ||
<p:commandButton | ||
style="float: right;" | ||
class="m-1" | ||
ajax="false" | ||
value="To Upload Routes" | ||
icon="fas fa-upload" action="#{dataUploadController.navigateToRouteUpload()}" /> | ||
</f:facet> | ||
|
||
<p:column headerText="Name"> | ||
<h:outputText value="#{collectincentre.code}" /> | ||
</p:column> | ||
<p:column headerText="Institution"> | ||
<h:outputText value="#{collectincentre.name}" /> | ||
</p:column> | ||
</p:dataTable> | ||
|
||
|
||
</h:panelGroup> | ||
|
||
|
||
</ui:define> | ||
</ui:composition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.