2023-01-13 19:43:42 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2023-01-22 20:41:50 +00:00
|
|
|
<title>{{ .Title }} — Numerus</title>
|
2023-01-17 21:28:47 +00:00
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="/static/numerus.css">
|
2023-01-13 19:43:42 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2023-01-17 21:28:47 +00:00
|
|
|
<header>
|
|
|
|
<h1><img src="/static/numerus.svg" alt="Numerus" width="261" height="33"></h1>
|
2023-01-23 17:52:18 +00:00
|
|
|
<details id="profilemenu">
|
|
|
|
<summary>
|
|
|
|
<i class="ri-eye-close-line ri-3x"></i>
|
|
|
|
</summary>
|
|
|
|
<ul role="menu">
|
2023-01-22 21:30:15 +00:00
|
|
|
<li role="presentation">
|
2023-01-29 13:22:28 +00:00
|
|
|
<a role="menuitem" href="{{ companyURI "/profile" }}">
|
2023-01-23 17:52:18 +00:00
|
|
|
<i class="ri-account-circle-line"></i>
|
Add the company relation and read-only form to edit
I do not have more time to update the update to the company today, but i
believe this is already a good amount of work for a commit.
The company is going to be used for row level security, as users will
only have access to the data from companies they are granted access, by
virtue of being in the company_user relation.
I did not know how add a row level security policy to the company_user
because i needed the to select on the same relation and this is not
allowed, because it would create an infinite loop.
Had to add the vat, pg_libphonenumber, and uri extensions in order to
validate VAT identification numbers, phone numbers, and URIs,
repectively. These libraries are not in Debian, but i created packages
for them all in https://dev.tandem.ws/tandem.
2023-01-24 20:46:07 +00:00
|
|
|
{{( pgettext "Account" "menu" )}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li role="presentation">
|
|
|
|
<a role="menuitem" href="{{ companyURI "/tax-details" }}">
|
|
|
|
<i class="ri-vip-diamond-line"></i>
|
|
|
|
{{( pgettext "Tax Details" "menu" )}}
|
2023-01-23 17:52:18 +00:00
|
|
|
</a>
|
2023-01-22 21:30:15 +00:00
|
|
|
</li>
|
|
|
|
<li role="presentation">
|
2023-01-23 17:52:18 +00:00
|
|
|
<form method="POST" action="/logout">
|
|
|
|
<button type="submit" role="menuitem">
|
|
|
|
<i class="ri-logout-circle-line"></i>
|
|
|
|
{{( pgettext "Logout" "action" )}}
|
|
|
|
</button>
|
|
|
|
</form>
|
2023-01-22 21:30:15 +00:00
|
|
|
</li>
|
2023-01-17 21:28:47 +00:00
|
|
|
</ul>
|
2023-01-23 17:52:18 +00:00
|
|
|
</details>
|
2023-01-17 21:28:47 +00:00
|
|
|
</header>
|
|
|
|
<main>
|
2023-01-22 20:41:50 +00:00
|
|
|
{{- template "content" . }}
|
2023-01-17 21:28:47 +00:00
|
|
|
</main>
|
2023-01-13 19:43:42 +00:00
|
|
|
</body>
|
|
|
|
</html>
|