github.com/nizigama/simple-note@v0.0.0-20210501235539-2cc762e06fe8/templates/profile.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>User profile</title> 14 </head> 15 16 <body> 17 18 {{ template "protectedHeader" }} 19 20 <div class="container mt-4"> 21 <p class="fs-2 fw-bold">Profile</p> 22 23 <div class="row"> 24 <div class="col-sm-3"> 25 <div class="text-center"> 26 <img src='/profile-picture?random={{ index . "r" }}' class="rounded" alt="user profile picture" 27 height="100px" width="100px"> 28 <br> 29 <br> 30 <form method="post" enctype="multipart/form-data"> 31 <input type="file" name="picture"> 32 <br> 33 <input type="submit" class="btn btn-sm btn-success" value="update"> 34 </form> 35 </div> 36 </div> 37 <div class="col-sm-9"> 38 {{ with (index . "user") }} 39 <h5>{{ .FirstName }} {{ .LastName }}</h5> 40 <span>{{ .Email }}</span> <br> 41 {{ end }} 42 <br> 43 <button type="button" class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#exampleModal"> 44 Delete account 45 </button> 46 </div> 47 </div> 48 49 </div> 50 51 52 53 54 <!-- Modal --> 55 <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> 56 <div class="modal-dialog"> 57 <div class="modal-content"> 58 <div class="modal-header"> 59 <h5 class="modal-title" id="exampleModalLabel">Account deletion</h5> 60 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> 61 </div> 62 <div class="modal-body"> 63 Are you sure you want to delete your account permanently? 64 <br> 65 <br> 66 <h5 class="text-danger">This cannot be undone</h5> 67 </div> 68 <div class="modal-footer"> 69 <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button> 70 <a href="/delete-account" class="btn btn-danger">Confirm</a> 71 </div> 72 </div> 73 </div> 74 </div> 75 <div style="position: absolute;bottom: 10px; left: 0;right: 0;text-align: center;">Copyrights @{{ index . "year" }} 76 </div> 77 </div> 78 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js" 79 integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" 80 crossorigin="anonymous"></script> 81 82 </body> 83 84 </html>