Untitled

mail@pastecode.io avatar
unknown
html
6 months ago
6.2 kB
0
Indexable
Never
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>User Update Form</title>
  <link rel="stylesheet" href="/static/register.css">
</head>

<body>

  <div class="wrapper">
    <div class="title">
      User info update form
    </div>
    <div class="form">
      <form method="post" onsubmit="return validateLogin()">
        <div class="inputfield">
          <label>User Name</label>
          <input type="text" class="input" id="Fname" name="Fname" value="{{info.username}}" disabled>
        </div>
        <div class="inputfield">
          <label>Full Name</label>
          <input type="text" class="input" id="Lname" name="Lname" value="{{info.fullname}}">
        </div>
        <div class="inputfield">
          <label>Password</label>
          <input type="password" class="input" id="password" name="password" value="{{info.password}}">
        </div>
        <div class="inputfield">
          <label>Confirm Password</label>
          <input type="password" class="input" id="password2" name="password2" value="{{info.password}}">
        </div>
        <div class="inputfield">
          <label>Gender</label>
          <div class="custom_select">
            <select id="gender" name="gender">
              <option value="">Select</option>
              <option value="male" {% if info.gender == "male" %} selected {% endif %}>Male</option>
              <option value="female" {% if info.gender == "female" %} selected {% endif %}>Female</option>
              <option value="transgender" {% if info.gender == "transgender" %} selected {% endif %}>Transgender</option>
              <option value="Other" {% if info.gender == "Other" %} selected {% endif %}>Other</option>
              <option value="dontshare" {% if info.gender == "dontshare" %} selected {% endif %}>I don't want to share</option>
            </select>
          </div>
        </div>
        <div class="inputfield">
          <label>Email Address</label>
          <input type="email" class="input" id="email" name="email" value="{{info.email}}">
        </div>
        <div class="inputfield">
          <label>Phone Number</label>
          <input type="text" class="input" id="phone" name="phone" value="{{info.phonenumber}}">
        </div>


        <div class="inputfield">
          <label>Phone Code</label>
          <div class="custom_select">
            <select id="code" name="code" value="{{info.code}}">
              <option value="">Select</option>
              <option value="1" {% if info.countrycode == 1 %} selected {% endif %}>US: +1</option>
              <option value="44" {% if info.countrycode == 44 %} selected {% endif %}>UK: +44</option>
              <option value="32" {% if info.countrycode == 32 %} selected {% endif %}>Belgum: +32</option>
              <option value="972" {% if info.countrycode == 972 %} selected {% endif %}>Israel: +972</option>
              <option value="7" {% if info.countrycode == 7 %} selected {% endif %}>Russia: +7</option>
            </select>
          </div>
        </div>
        <div class="inputfield">
          <label>City</label>
          <div class="custom_select">
            <select id="city" name="city">
              <option value = "">Select</option>
              <option value="Haifa" {% if info.city == "Haifa" %} selected {% endif %}>Haifa</option>
              <option value="Tel-Aviv" {% if info.city == "Tel-Aviv" %} selected {% endif %}>Tel-Aviv</option>
              <option value="Be'er-Sheva" {% if info.city == "Be'er-Sheva" %} selected {% endif %}>Be'er Sheva</option>
              <option value="Hadera" {% if info.city == "Hadera" %} selected {% endif %}>Hadera</option>
              <option value="Jerusalem" {% if info.city == "Jerusalem" %} selected {% endif %}>Jerusalem</option>
            </select>
          </div>
        </div>


        <div class="inputfield terms">
          <h4>סמן השכלה קודמת במתמטיקה</h3>
            <label class="check">
              <input type="checkbox" id="op1" name="mycheckbox" value="Highschool graduate" {% if 'Highschool graduate' in info.knowledge %}checked{% endif %}>
              <span class="checkmark"></span>
            </label>
            <p>Highschool graduate</p>

            <label class="check">
              <input type="checkbox" id="op2" name="mycheckbox" value="5 grade bagrut" {% if '5 grade bagrut' in info.knowledge %}checked{% endif %}>
              <span class="checkmark"></span>
            </label>
            <p>5 grade bagrut</p>

            <label class="check">
              <input type="checkbox" id="op3" name="mycheckbox" value="University courses" {% if 'University courses' in info.knowledge %}checked{% endif %}>
              <span class="checkmark"></span>
            </label>
            <p>University courses</p>

            <label class="check">
              <input type="checkbox" id="op4" name="mycheckbox" value="Self Study" {% if 'Self Study' in info.knowledge %}checked{% endif %}>
              <span class="checkmark"></span>
            </label>
            <p>Self Study</p>

            <label class="check">
              <input type="checkbox" id="op5" name="mycheckbox" value="BA in Mathematics" {% if 'BA in Mathematics' in info.knowledge %}checked{% endif %}>
              <span class="checkmark"></span>
            </label>
            <p>BA in Mathematics</p>

            <label class="check">
              <input type="checkbox" id="op6" name="mycheckbox" value="MA in Mathematics" {% if 'MA in Mathematics' in info.knowledge %}checked{% endif %}>
              <span class="checkmark"></span>
            </label>
            <p>MA in Mathematics</p>
        </div>
        <div class="inputfield">
          <input type="submit" value="Update" class="btn">
        </div>
        <div class="inputfield">
          <button onclick="window.location.href = '../';">HOME</button>
        </div>
        <p id="error">{{error}}</p>
      </form>
    </div>
  </div>

  <script defer src="/static/register.js"></script>
</body>

</html>