<%- include("partials/page-header", { user, title: t.patienteoverview.patienttitle, subtitle: "", showUserName: true }) %>
<%- include("partials/flash") %>
+ <%=t.patienteoverview.newpatient%>
value="<%= query?.firstname || '' %>" />
value="<%= query?.lastname || '' %>" />
<%=t.global.reset2%>
<% if (patients.length === 0) { %> <% } %> <% patients.forEach(p => { %> <% }) %>
ID <%=t.global.name%> N.I.E. / DNI <%=t.global.gender%> <%=t.global.birthday%> <%=t.global.email%> <%=t.global.phone%> <%=t.global.address%> <%=t.global.country%> <%=t.global.status%> <%=t.global.notice%> <%=t.global.create%> <%=t.global.change%> <%=t.global.action%>
<%=t.patientoverview.nopatientfound%>
/>
<%= p.id %> <%= p.firstname %> <%= p.lastname %> <%= p.dni || "-" %> <% if (p.gender === 'm') { %> m <% } else if (p.gender === 'w') { %> w <% } else if (p.gender === 'd') { %> d <% } else { %> - <% } %> <%= new Date(p.birthdate).toLocaleDateString("de-DE") %> <%= p.email || "-" %> <%= p.phone || "-" %> <%= p.street || "" %> <%= p.house_number || "" %>
<%= p.postal_code || "" %> <%= p.city || "" %>
<%= p.country || "-" %> <% if (p.active) { %> Aktiv <% } else { %> Inaktiv <% } %> <%= p.notes ? p.notes.substring(0, 80) : "-" %> <%= new Date(p.created_at).toLocaleString("de-DE") %> <%= new Date(p.updated_at).toLocaleString("de-DE") %>