github.com/nizigama/simple-note@v0.0.0-20210501235539-2cc762e06fe8/templates/updateNote.html (about)

     1  <!doctype html>
     2  <html lang="en">
     3  
     4  <head>
     5      <!-- Required meta tags -->
     6      <meta charset="utf-8">
     7      <meta name="viewport" content="width=device-width, initial-scale=1">
     8  
     9      <!-- Bootstrap CSS -->
    10      <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet"
    11          integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
    12  
    13      <title>Simple note</title>
    14  </head>
    15  
    16  <body>
    17  
    18      {{ template "protectedHeader" }}
    19  
    20      <div class="container mt-4">
    21          <p class="fs-2 fw-bold">Update note</p>
    22  
    23          <form method="post" style="width: 50%;">
    24              {{ with (index . "note" ) }}
    25              <div class="mb-3">
    26                  <input required type="text" name="title" class="form-control" placeholder="Note title"
    27                      value="{{ .Title }}">
    28              </div>
    29              <div class="mb-3">
    30                  <textarea required class="form-control" name="note" rows="6"
    31                      placeholder="Write something here">{{ .Body }}</textarea>
    32              </div>
    33              {{ end }}
    34              <input type="submit" value="Update" class="btn btn-sm btn-success">
    35          </form>
    36  
    37  
    38      </div>
    39  
    40  
    41      <div style="position: absolute;bottom: 10px; left: 0;right: 0;text-align: center;">Copyrights @{{ index . "year" }}
    42      </div>
    43      </div>
    44      <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"
    45          integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
    46          crossorigin="anonymous"></script>
    47  
    48  </body>
    49  
    50  </html>