github.com/servernoj/jade@v0.0.0-20231225191405-efec98d19db1/testdata/v1/form.tpl (about)

     1  <form method="post">
     2      <fieldset>
     3          <legend>General</legend>
     4          <p>
     5              <label for="user[name]">Username:
     6                  <input type="text" name="user[name]" value="{{ print user.name }}"/>
     7              </label>
     8          </p>
     9          <p>
    10              <label for="user[email]">Email:
    11                  <input type="text" name="user[email]" value="{{ print user.email }}"/>
    12                  <div class="tip">
    13                      Enter a valid 
    14                      email address 
    15                      such as <em>tj@vision-media.ca</em>.
    16                  </div>
    17              </label>
    18          </p>
    19      </fieldset>
    20      <fieldset>
    21          <legend>Location</legend>
    22          <p>
    23              <label for="user[city]">City:
    24                  <input type="text" name="user[city]" value="{{ print user.city }}"/>
    25              </label>
    26          </p>
    27          <p>
    28              <select name="user[province]">
    29                  <option value="">-- Select Province --</option>
    30                  <option value="AB">Alberta</option>
    31                  <option value="BC">British Columbia</option>
    32                  <option value="SK">Saskatchewan</option>
    33                  <option value="MB">Manitoba</option>
    34                  <option value="ON">Ontario</option>
    35                  <option value="QC">Quebec</option>
    36              </select>
    37          </p>
    38      </fieldset>
    39      <p class="buttons">
    40          <input type="submit" value="Save"/>
    41      </p>
    42  </form>