<commit_before>[#ftl]
[#include "/layout.ftl"]
[@adminLeftPaneLayout]
<script type="text/javascript" src="js/restApproval.js"></script>
<STYLE TYPE="text/css"><!-- @import url(pages/css/jquery/jquery-ui.css); --></STYLE>
<script type="text/javascript" src="pages/js/jquery/jquery-ui.min.js"></script>
<span id="page.id" title="approval.list"></span>
<div class="content "> <!--  Main Content Begins-->
[@mifos.crumbs breadcrumbs /]
<br /><br />
<span id="dialog" title="Operation Details" style="display:none;">Details</span>
<table id="waitingForApprovalList" class="datatable">
	<thead>
		<tr>
			<th>Approval Id</th>
			<th>Type</th>
			<th>Operation</th>
			<th>Created on</th>
			<th>State</th>
			<th>-</th>
		</tr>
	</thead>
    <tbody>
        [#list waitingForApprovalList as approval]
            <tr>
               <td>${approval.id}</td>
               <td>${approval.type}</td>
               <td>${approval.operation}</td>
               <td>${approval.printableCreatedOnDate}</td>
               <td>${approval.state}</td>
               <td> <a href="#" onclick='approve(${approval.id})'>Approve</a> &nbsp;|&nbsp;
                    <a href="#" onclick='editArgs(${approval.id})'>Details</a>&nbsp;|&nbsp;
                    <a href="#" onclick='reject(${approval.id})'>Reject</a> </td>
            </tr>
        [/#list]
    </tbody>
</table>
</table>
[@widget.datatable "waitingForApprovalList" /]
<span id="dialog" style="display:none;">Content</span>
<br />
<hr id='separateHR'/>
<h3>Approved/Rejected list</h3>
<table id="approvedList" class="datatable">
	<thead>
		<tr>
			<th>Approval Id</th>
			<th>Type</th>
			<th>Operation</th>
			<th>State</th>
			<th>Created Date</th>
			<th>Approval Date</th>
			<th>-</th>
		</tr>
	</thead>
    <tbody>
        [#list approvedList as approval]
            <tr>
               <td>${approval.id}</td>
               <td>${approval.type}</td>
               <td>${approval.operation}</td>
               <td>${approval.state}</td>
               <td>${approval.printableCreatedOnDate}</td>
               <td>${approval.printableApprovedOnDate}</td>
               <td><a href="#" onclick='editArgs(${approval.id})'>Details</a></td>
            </tr>
        [/#list]
    </tbody>
</table>
</table>
[@widget.datatable "approvedList" /]
<style>
#dialog span {
   margin-left: 5px;
}
.sorting {
    background-color: #C3D9FF;
}
#separateHR {
    width:100%;
}
.datatables_wrapper {
    min-height: 30px;
}
</style>
</div><!--Main Content Ends-->
[/@adminLeftPaneLayout]<commit_msg>MIFOS-5314: 'View REST Approval List' page looks inappropriate in Firefox<commit_after>[#ftl]
[#include "/layout.ftl"]
[@adminLeftPaneLayout]
<script type="text/javascript" src="js/restApproval.js"></script>
<STYLE TYPE="text/css"><!-- @import url(pages/css/jquery/jquery-ui.css); --></STYLE>
<script type="text/javascript" src="pages/js/jquery/jquery-ui.min.js"></script>
<span id="page.id" title="approval.list"></span>
<div class="content "> <!--  Main Content Begins-->
[@mifos.crumbs breadcrumbs /]
<br /><br />
<span id="dialog" title="Operation Details" style="display:none;">Details</span>
<table id="waitingForApprovalList" class="datatable">
	<thead>
		<tr>
			<th>Approval Id</th>
			<th>Type</th>
			<th>Operation</th>
			<th>Created on</th>
			<th>State</th>
			<th>-</th>
		</tr>
	</thead>
    <tbody>
        [#list waitingForApprovalList as approval]
            <tr>
               <td>${approval.id}</td>
               <td>${approval.type}</td>
               <td>${approval.operation}</td>
               <td>${approval.printableCreatedOnDate}</td>
               <td>${approval.state}</td>
               <td> <a href="#" onclick='approve(${approval.id})'>Approve</a> &nbsp;|&nbsp;
                    <a href="#" onclick='editArgs(${approval.id})'>Details</a>&nbsp;|&nbsp;
                    <a href="#" onclick='reject(${approval.id})'>Reject</a> </td>
            </tr>
        [/#list]
    </tbody>
</table>
</table>
[@widget.datatable "waitingForApprovalList" /]
<span id="dialog" style="display:none;">Content</span>
<br />
<hr id='separateHR'/>
<h3>Approved/Rejected list</h3>
<table id="approvedList" class="datatable">
	<thead>
		<tr>
			<th>Approval Id</th>
			<th>Type</th>
			<th>Operation</th>
			<th>State</th>
			<th>Created Date</th>
			<th>Approval Date</th>
			<th>-</th>
		</tr>
	</thead>
    <tbody>
        [#list approvedList as approval]
            <tr>
               <td>${approval.id}</td>
               <td>${approval.type}</td>
               <td>${approval.operation}</td>
               <td>${approval.state}</td>
               <td>${approval.printableCreatedOnDate}</td>
               <td>${approval.printableApprovedOnDate}</td>
               <td><a href="#" onclick='editArgs(${approval.id})'>Details</a></td>
            </tr>
        [/#list]
    </tbody>
</table>
</table>
[@widget.datatable "approvedList" /]
<style>
#dialog span {
   margin-left: 5px;
}
.sorting {
    background-color: #C3D9FF;
}
#separateHR {
    width:100%;
}
.datatable {
    float: left;
}
.datatables_wrapper {
    min-height: 30px;
}
</style>
</div><!--Main Content Ends-->
[/@adminLeftPaneLayout]
{'fraction_non_alphanumeric': 0.2144787644787645, 'fraction_numerical': 0.004633204633204633, 'mean_word_length': 2.7900512070226773, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 217, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6274410', 'n_tokens_mistral': 1959, 'n_tokens_neox': 1844, 'n_words': 295}