|
64 | 64 | </svg> |
65 | 65 | </button> |
66 | 66 |
|
| 67 | + <a href="#qr" class="trigger"> |
| 68 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"> |
| 69 | + <rect x="1" y="1" width="22" height="22" rx="3" fill="none" stroke="currentColor" stroke-width="1.5" /> |
| 70 | + |
| 71 | + <rect x="3" y="3" width="6" height="6" rx="1" /> |
| 72 | + <rect x="5" y="5" width="2" height="2" /> |
| 73 | + |
| 74 | + <rect x="15" y="3" width="6" height="6" rx="1" /> |
| 75 | + <rect x="17" y="5" width="2" height="2"/> |
| 76 | + |
| 77 | + <rect x="3" y="15" width="6" height="6" rx="1" /> |
| 78 | + <rect x="5" y="17" width="2" height="2"/> |
| 79 | + |
| 80 | + <rect x="11" y="3" width="2" height="2" /> |
| 81 | + <rect x="13" y="7" width="2" height="2" /> |
| 82 | + <rect x="11" y="11" width="2" height="2" /> |
| 83 | + <rect x="15" y="11" width="2" height="2" /> |
| 84 | + <rect x="9" y="13" width="2" height="2" /> |
| 85 | + <rect x="13" y="15" width="2" height="2" /> |
| 86 | + <rect x="17" y="15" width="2" height="2" /> |
| 87 | + <rect x="11" y="19" width="2" height="2" /> |
| 88 | + <rect x="15" y="19" width="2" height="2" /> |
| 89 | + </svg> |
| 90 | + </a> |
| 91 | + |
67 | 92 | {{if eq .AccountsEnabled true}} |
68 | 93 | <div id="authentication"> |
69 | 94 | {{if eq .Authenticated true }} |
|
81 | 106 | </div> |
82 | 107 | {{end}} |
83 | 108 |
|
| 109 | + |
| 110 | + |
84 | 111 | {{if eq .IsOwner true}} |
85 | 112 | <a href="/{{.ID}}/edit" aria-label="Edit document"> |
86 | 113 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" |
|
89 | 116 | <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" /> |
90 | 117 | </svg> |
91 | 118 | </a> |
| 119 | + |
92 | 120 | <form method="post" action="/{{.ID}}/delete" style="display:inline" enctype="multipart/form-data" |
93 | | - onsubmit="return confirm('Delete this document?')"> |
94 | | - <button aria-label="Delete document" style="color:#f97583"> |
| 121 | + onsubmit="return confirm('Delete this document?')" id="delete-btn-form"> |
| 122 | + <button aria-label="Delete document" class="delete-btn" type="submit"> |
95 | 123 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" |
96 | 124 | stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
97 | 125 | <polyline points="3 6 5 6 21 6" /> |
|
103 | 131 | </button> |
104 | 132 | </form> |
105 | 133 | {{end}} |
106 | | - |
107 | | - <a href="#qr" class="trigger"> |
108 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"> |
109 | | - <rect x="1" y="1" width="22" height="22" rx="3" fill="none" stroke="currentColor" stroke-width="1.5" /> |
110 | | - |
111 | | - <rect x="3" y="3" width="6" height="6" rx="1" /> |
112 | | - <rect x="5" y="5" width="2" height="2" /> |
113 | | - |
114 | | - <rect x="15" y="3" width="6" height="6" rx="1" /> |
115 | | - <rect x="17" y="5" width="2" height="2"/> |
116 | | - |
117 | | - <rect x="3" y="15" width="6" height="6" rx="1" /> |
118 | | - <rect x="5" y="17" width="2" height="2"/> |
119 | | - |
120 | | - <rect x="11" y="3" width="2" height="2" /> |
121 | | - <rect x="13" y="7" width="2" height="2" /> |
122 | | - <rect x="11" y="11" width="2" height="2" /> |
123 | | - <rect x="15" y="11" width="2" height="2" /> |
124 | | - <rect x="9" y="13" width="2" height="2" /> |
125 | | - <rect x="13" y="15" width="2" height="2" /> |
126 | | - <rect x="17" y="15" width="2" height="2" /> |
127 | | - <rect x="11" y="19" width="2" height="2" /> |
128 | | - <rect x="15" y="19" width="2" height="2" /> |
129 | | - </svg> |
130 | | - </a> |
131 | 134 | </header> |
132 | 135 |
|
133 | 136 | <div id="qr" class="modal"> |
|
0 commit comments