Selaa lähdekoodia

add delete icons

marek 1 kuukausi sitten
vanhempi
sitoutus
18dd571fe4

+ 9 - 3
templates/en/panel/deleteAccount.eta

@@ -8,11 +8,17 @@
     </svg>
 ` %>
 
+<% const deleteIcon = `
+  <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+    <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
+  </svg>
+` %>
+
 <div class="container-row">
-    <a role="button" href="/en/panel"><%~ backIcon %></a>
-    <h2>delete account</h2>
+    <a role="button" href="/en/panel/settings"><%~ backIcon %></a>
+    <h2><%~ deleteIcon %> delete account</h2>
 </div>
 
 <p>are you sure you want to delete your account <strong><%= it?.user?.name ? `${it?.user?.name} (${it?.user.email})` : it?.user.email %></strong>?</p>
 
-<a role="button" class="danger" href="/en/auth/delete">delete account</a>
+<a role="button" class="danger" href="/en/auth/delete"><%~ deleteIcon %> delete account</a>

+ 8 - 2
templates/en/panel/stations/delete.eta

@@ -8,11 +8,17 @@
     </svg>
 ` %>
 
+<% const deleteIcon = `
+  <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+    <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
+  </svg>
+` %>
+
 <div class="container-row">
     <a role="button" href="/en/panel/stations/<%= it?.meteostanica.id %>"><%~ backIcon %></a>
-    <h2>delete station</h2>
+    <h2><%~ deleteIcon %> delete station</h2>
 </div>
 
 <p>are you sure you want to delete your station <strong><%= it?.meteostanica.name %></strong>?</p>
 
-<a role="button" class="danger" href="/en/panel/stations/<%= it?.meteostanica.id %>/deleteConfirm">delete station</a>
+<a role="button" class="danger" href="/en/panel/stations/<%= it?.meteostanica.id %>/deleteConfirm"><%~ deleteIcon %> delete station</a>

+ 10 - 4
templates/sk/panel/deleteAccount.eta

@@ -8,11 +8,17 @@
     </svg>
 ` %>
 
+<% const deleteIcon = `
+  <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+    <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
+  </svg>
+` %>
+
 <div class="container-row">
-    <a role="button" href="/panel"><%~ backIcon %></a>
-    <h2>zmazať účet</h2>
+    <a role="button" href="/panel/settings"><%~ backIcon %></a>
+    <h2><%~ deleteIcon %> zmazať účet</h2>
 </div>
 
-<p>ste si istý, že chcete zmazať svoj účet <strong><%= it?.user?.name ? `${it?.user?.name} (${it?.user.email})` : it?.user.email %></strong>?</p>
+<p>ste si istí, že chcete zmazať svoj účet <strong><%= it?.user?.name ? `${it?.user?.name} (${it?.user.email})` : it?.user.email %></strong>?</p>
 
-<a role="button" class="danger" href="/auth/delete">zmazať účet</a>
+<a role="button" class="danger" href="/auth/delete"><%~ deleteIcon %> zmazať účet</a>

+ 9 - 3
templates/sk/panel/stations/delete.eta

@@ -8,11 +8,17 @@
     </svg>
 ` %>
 
+<% const deleteIcon = `
+  <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+    <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
+  </svg>
+` %>
+
 <div class="container-row">
     <a role="button" href="/panel/stations/<%= it?.meteostanica.id %>"><%~ backIcon %></a>
-    <h2>zmazať stanicu</h2>
+    <h2><%~ deleteIcon %> zmazať stanicu</h2>
 </div>
 
-<p>ste si istý, že chcete zmazať svoju stanicu <strong><%= it?.meteostanica.name %></strong>?</p>
+<p>ste si istí, že chcete zmazať svoju stanicu <strong><%= it?.meteostanica.name %></strong>?</p>
 
-<a role="button" class="danger" href="/panel/stations/<%= it?.meteostanica.id %>/deleteConfirm">zmazať stanicu</a>
+<a role="button" class="danger" href="/panel/stations/<%= it?.meteostanica.id %>/deleteConfirm"><%~ deleteIcon %> zmazať stanicu</a>