aboutsummaryrefslogtreecommitdiff
path: root/interface/views/citizens.ejs
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-05-01 00:17:22 -0400
committerBobby <[email protected]>2022-05-01 00:17:22 -0400
commit50c8c294e2e23566887a47a3180c180675d64add (patch)
treede9cc1d4ec012683da687568709a49a3eecf6923 /interface/views/citizens.ejs
parent017e8b42d953136140e0ff6d12559b86d1a330d5 (diff)
downloadWelfare-Schemes-DMQL-50c8c294e2e23566887a47a3180c180675d64add.tar.xz
Welfare-Schemes-DMQL-50c8c294e2e23566887a47a3180c180675d64add.zip
login function with a new main page
Diffstat (limited to 'interface/views/citizens.ejs')
-rw-r--r--interface/views/citizens.ejs51
1 files changed, 51 insertions, 0 deletions
diff --git a/interface/views/citizens.ejs b/interface/views/citizens.ejs
new file mode 100644
index 0000000..97c98fa
--- /dev/null
+++ b/interface/views/citizens.ejs
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <%- include('partials/head') %>
+ </head>
+
+ <body>
+ <%- include('partials/navbar') %>
+ <table class="ui selectable table">
+ <thead>
+ <tr>
+ <th>Citizen ID</th>
+ <th>First Name</th>
+ <th>Middle Name</th>
+ <th>Last Name</th>
+ <th>Address</th>
+ <th>Mobile Number</th>
+ <th>Date of Birth</th>
+ <th>Gender</th>
+ <th>Marital Status</th>
+ <th>Disabled</th>
+ <th>Disabled Percentage</th>
+ <th>Caste</th>
+ <th>Village ID</th>
+ </tr>
+ </thead>
+ <tbody>
+ <% for(var i=0; i < citizens.length; i++) { %>
+ <tr>
+ <td><%= citizens[i].citizen_id %></td>
+ <td><%= citizens[i].first_name %></td>
+ <td>
+ <%= citizens[i].middle_name ? citizens[i].middle_name : '-' %>
+ </td>
+ <td><%= citizens[i].last_name %></td>
+ <td><%= citizens[i].address %></td>
+ <td><%= citizens[i].mobile_num %></td>
+ <td><%= citizens[i].dob %></td>
+ <td><%= citizens[i].gender %></td>
+ <td><%= citizens[i].marital_status %></td>
+ <td><%= citizens[i].disabled %></td>
+ <td><%= citizens[i].disbaled_percentage %></td>
+ <td><%= citizens[i].caste %></td>
+ <td><%= citizens[i].village_id %></td>
+ </tr>
+ <% } %>
+ </tbody>
+ </table>
+ </body>
+ <%- include('partials/scripts') %>
+</html>