diff options
| author | Bobby <[email protected]> | 2022-05-01 01:02:38 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-01 01:02:38 -0400 |
| commit | b0b1938f0e2ae2d159f0a616f8043d0b7f24f2eb (patch) | |
| tree | 71ed919b888e83fb49d619d1ba338dcba43b245c /interface/views/index.ejs | |
| parent | fd8acf8d1b04368763a97d1452565aa71dcc118a (diff) | |
| parent | d527bddaeb3083d2a5ec787626e512eb45d3a967 (diff) | |
| download | Welfare-Schemes-DMQL-b0b1938f0e2ae2d159f0a616f8043d0b7f24f2eb.tar.xz Welfare-Schemes-DMQL-b0b1938f0e2ae2d159f0a616f8043d0b7f24f2eb.zip | |
Merge pull request #4 from luciferreeves/main
Main page changes
Diffstat (limited to 'interface/views/index.ejs')
| -rw-r--r-- | interface/views/index.ejs | 103 |
1 files changed, 63 insertions, 40 deletions
diff --git a/interface/views/index.ejs b/interface/views/index.ejs index 827334b..99dc89b 100644 --- a/interface/views/index.ejs +++ b/interface/views/index.ejs @@ -5,46 +5,69 @@ </head> <body> + <div class="ui modal login"> + <i class="close icon"></i> + <div class="header">Log in to continue</div> + <div + class="ui padded container segment" + style="border: none; box-shadow: none" + > + <form class="ui form" method="post" onsubmit="login(event)"> + <div class="field"> + <label>Username</label> + <input + placeholder="Username" + name="username" + type="text" + autocomplete="off" + id="username" + /> + </div> + <div class="field"> + <label>Password</label> + <input + type="password" + name="password" + placeholder="password" + id="password" + /> + </div> + <div class="ui primary submit button" id="submit">Submit</div> + <div class="ui error message"></div> + </form> + </div> + </div> <%- 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> + <div class="ui main container segment"> + <div class="ui cards"> + <div class="card"> + <div class="content"> + <div class="header">Citizens</div> + <div class="description"> + <pre> + Gender Statistics:<br> + =====================<br> + Male: <%= genderDistribution[0].genderCount %><br> + Female: <%= genderDistribution[1].genderCount %><br> + ---------------------<br> + Total: <%= genderDistribution[0].genderCount + genderDistribution[1].genderCount %> + </pre> + Provides the details of all the citizens in the database + </div> + </div> + <div class="extra content"> + <div class="ui basic green button" onclick="route('citizens')"> + View Data + </div> + </div> + </div> + </div> + </div> </body> + <%- include('partials/scripts') %> + <script> + $(".ui.dropdown").dropdown(); + $(".login.modal").modal("attach events", ".loginButton", "show"); + </script> + <script src="/login.js"></script> </html> |
