Socialify

Folder ..

Viewing adduser.ejs
143 lines (137 loc) • 4.2 KB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
  <head>
    <%- include('partials/head') %>
  </head>
   <body>
    <%- include('partials/navbar') %>
    <div class="ui container segment" >
      <h1 style="text-align: center;">Add New Citizen</h1>
      <form class="ui form" method="post" onsubmit="addCitizen(event)" id="citizenForm">
        <div class="field">
            <label>Citizen ID</label>
            <input
              placeholder="Citizen ID"
              name="citizen_id"
              type="text"
              autocomplete="off"
              id="citizen_id"
            />
          </div>
          <div class="field">
            <label>First Name</label>
            <input
              placeholder="First Name"
              name="first_name"
              type="text"
              autocomplete="off"
              id="first_name">
          </div>
          <div class="field">
            <label>Middle Name</label>
            <input
              placeholder="Middle Name"
              name="middle_name"
              type="text"
              autocomplete="off"
              id="middle_name">
          </div>
          <div class="field">
            <label>Last Name</label>
            <input
              placeholder="Last Name"
              name="last_name"
              type="text"
              autocomplete="off"
              id="last_name">
          <div>
        <div class="field">
          <label>Address</label>
          <input
            placeholder="House number"
            name="address"
            type="text"
            autocomplete="off"
            id="address"
          />
        </div>
        <div class="field">
          <label>Mobile Number</label>
          <input
            type="text"
            name="mobile_number"
            placeholder="Mobile Number"
            id="mobile_number"
          />
        </div>
        <div class="field">
          <label>Date of Birth</label>
          <input type="date" name="dob" placeholder="DOB" id="dob" />
        </div>
        <div class="field">
          <label>Gender</label>
          <select class="ui dropdown" id="gender">
            <option value="M" selected>Male</option>
            <option value="F">Female</option>
          </select>
        </div>
        <div class="field">
          <label>Marital Status</label>
          <select class="ui dropdown" id="marital_status">
            <option value="M" selected>Married</option>
            <option value="UM">Unmarried</option>
          </select>
        </div>
        <div class = "field">
          <label>Disabled</label>
            <select class="ui dropdown" id="disabled">
                <option value="Yes" selected>Yes</option>
                <option value="No">No</option>
            </select>
        </div>
        <div class="field">
          <label>Disabled Percentage</label>
          <input
            type="text"
            name="disbaled_percentage"
            placeholder="Disabled Percentage"
            id="disbaled_percentage"
          />
        </div>
        <div class="field">
          <label>Caste</label>
          <select class="ui dropdown" id="caste">
            <option value="OC" selected>OC</option>
            <option value="SC">SC</option>
            <option value="ST">ST</option>
            <option value="BC">BC</option>
        </select>
        </div>
        
        <div class="field">
          <label>State</label>
          <select class="ui dropdown" id="state">
        </select>
        </div>
        <div class="field">
            <label>District</label>
            <select class="ui dropdown" id="district">
            </select>
          </div>
          <div class="field">
              <lable>Mandal</lable>
                <select class="ui dropdown" id="mandal">
                </select>
          </div>
          <div class="field">
            <label>Village Name</label>
            <select class="ui dropdown" id="village">
            </select>
          </div>
  
        <div class="ui primary button" id="add_citizen" >Submit</div>
        <div class="ui error message"></div>
      </form>

    </div>

  </body>
  <%- include('partials/scripts') %>

  <script src="/adduser.js"></script>

</html>