Skip to content

Commit

Permalink
report template fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrClemRkz committed Jul 1, 2020
1 parent defd1bc commit 038c352
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 33 deletions.
25 changes: 12 additions & 13 deletions templates/incidents/complaints/daily_summary_report_districtwise.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,37 +49,36 @@ module.exports = data => {
margin-top: 3px;
margin-bottom: 3px;
}
h5.heading {
margin-bottom: 0px
}
</style>
</head>
<body class="document-border">
<div class="container">
<div class="row text-center">
<div class="col-12">
<h5 class="bold">මහමැතිවරණය - 2020.${electionDate.getMonth() +
1}.${electionDate.getDate()}</h5>
<h5 class="bold">நாடாளுமன்றத் தேர்தல் - 2020.${electionDate.getMonth() +
1}.${electionDate.getDate()}</h5>
<h5 class="bold">Parliamentary Election - 2020.${electionDate.getMonth() +
1}.${electionDate.getDate()}</h5>
<h5 class="bold heading">පාර්ලිමේන්තු මැතිවරණය - ${electionDate.getFullYear()}</h5>
<h5 class="bold heading">நாடாளுமன்றத் தேர்தல் - ${electionDate.getFullYear()}</h5>
<h5 class="bold heading">Parliamentary Election - ${electionDate.getFullYear()}</h5>
</div>
</div>
<hr />
<div class="row text-center">
<div class="col-12">
<h5>මැතිවරණ පැමිණිලි සාරාංශ වාර්තාව</h5>
<div class="col-12 headings">
<h5 class="heading">මැතිවරණ පැමිණිලි සාරාංශ වාර්තාව</h5>
<h6>(දිස්ත්‍රික් මැතිවරණ පැමිණිලි කළමනාකරණ මධ්‍යස්ථාන)</h6>
<h5>தேர்தல் முறைப்பாடுகள் சுருக்க அறிக்கை</h5>
<h5 class="heading">தேர்தல் முறைப்பாடுகள் சுருக்க அறிக்கை</h5>
<h6>(மாவட்ட தேர்தல்கள் முறைப்பாட்டு முகாமைத்துவ மத்திய நிலையங்கள்)</h6>
<h5>Election Complaints Summary</h5>
<h5 class="heading">Election Complaints Summary</h5>
<h6>(District Complaint Management Centers)</h6>
</div>
</div>
<hr />
<div class="row text-center">
<div class="col-12">
<span><u>2020.${today.getMonth() +
1}.${today.getDate()} - 00.00 pm</u></span>
<span><u>${data.dateInfo}</u></span>
</div>
</div>
Expand Down Expand Up @@ -209,7 +208,7 @@ function generateRows(complaintByDistrict) {
"බදුල්ල/பதுளை/Badulla",
"මොනරාගල/மொனராகலை/Monaragala",
"රත්නපුර/இரத்தினபரி/Ratnapura",
"කෑගල්ල/கேகாலை/Kagalle"
"කෑගල්ල/கேகாலை/Kegalle"
];

return districts
Expand Down
39 changes: 19 additions & 20 deletions templates/incidents/complaints/daily_summery_report_categorywise.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,26 @@ module.exports = data => {
</head>
<body class="document-border">
<table>
<tr>
<th style="border: none; width: 150px">
<img
src="${baseURL}/assets/national-emblem.png"
alt="emblem-srilanka"
style="height:100px;"
/>
</th>
<th style="border: none">
<div class="bold">මහමැතිවරණය - 2020</div>
<tr>
<th style="border: none; width: 150px">
<img
src="${baseURL}/assets/national-emblem.png"
alt="emblem-srilanka"
style="height:100px;"
/>
</th>
<th style="border: none">
<div class="bold">පාර්ලිමේන්තු මැතිවරණය - 2020</div>
<div class="bold">பாராளுமன்றத் தேர்தல் - 2020</div>
<div class="bold">Parliamentary Election - 2020</div>
</th>
<th style="border: none; width: 150px">
<img
src="${baseURL}/assets/elections-logo.jpg"
alt="elections-logo"
style="height:100px;"
/>
</th>
</th>
<th style="border: none; width: 150px">
<img
src="${baseURL}/assets/elections-logo.jpg"
alt="elections-logo"
style="height:100px;"
/>
</th>
</tr>
<tr class="grey" style="height: 70px;">
<th colspan="3">
Expand All @@ -84,8 +84,7 @@ module.exports = data => {
தேர்தல் முறைப்பாடுகள் 24 மணித்தியால சுருக்க அறிக்கை (தேர்தல்கள் முறைப்பாட்டு முகாமைத்துவ மத்திய நிலையம்)
</div>
<div>
Election Complaints 24 hour summery (Election Complaints Management
Centre)
Election Complaints 24 hour summery (Election Complaints Management Centre)
</div>
</th>
</tr>
Expand Down

0 comments on commit 038c352

Please sign in to comment.