Skip to content

Commit 80aca35

Browse files
committed
Back button, admin-facing commissions list, dev-facing commissions list
1 parent eab36a0 commit 80aca35

3 files changed

Lines changed: 37 additions & 3 deletions

File tree

frontend/pages/admin.ejs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@
33
<h1>Commission Management</h1>
44
<p>Manage commissions created on your platform.</p>
55
<div class="buttons">
6-
<div class="button hidden">Back</div>
7-
<div class="button active">Next</div>
6+
<a class="button" href="<%= tenant.domain %><%= tenant.path %>/create">New Commission</a>
7+
<div id="sync" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23" fill="none">
8+
<path d="M18.5949 5.16663C16.8618 3.32009 14.3989 2.16663 11.6666 2.16663C6.41992 2.16663 2.16663 6.41992 2.16663 11.6666C2.16663 16.9133 6.41992 21.1666 11.6666 21.1666C14.3989 21.1666 16.8618 20.0132 18.5949 18.1666M17.3236 7.98035L20.9804 7.98035L20.9804 4.3235" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
9+
</svg> Sync Existing</div>
10+
<a class="button" href="<%= tenant.domain %>">Back to <%= tenant.name %></a>
11+
</div>
12+
<div class="commissions">
13+
<% session[vars.commissions].forEach(commission => { %>
14+
<div class="commission">
15+
<h2><%= commission.id %></h2>
16+
<p><%= commission.status %></p>
17+
<a class="button" href="<%= tenant.domain %><%= tenant.path %>/<%= commission.id %>">View</a>
18+
</div>
19+
<% }) %>
820
</div>
921
<%- include('foot.ejs') %>

frontend/pages/dev.ejs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<%- include('head.ejs') %>
2+
<img src="<%= tenant.logo %>" alt="<%= tenant.name %>">
3+
<h1>Commission Management</h1>
4+
<p>Manage commissions assigned to you.</p>
5+
<div class="buttons">
6+
<a class="button" href="<%= tenant.domain %><%= tenant.path %>/create">New Commission</a>
7+
<div id="sync" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23" fill="none">
8+
<path d="M18.5949 5.16663C16.8618 3.32009 14.3989 2.16663 11.6666 2.16663C6.41992 2.16663 2.16663 6.41992 2.16663 11.6666C2.16663 16.9133 6.41992 21.1666 11.6666 21.1666C14.3989 21.1666 16.8618 20.0132 18.5949 18.1666M17.3236 7.98035L20.9804 7.98035L20.9804 4.3235" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
9+
</svg> Sync Existing</div>
10+
<a class="button" href="<%= tenant.domain %>">Back to <%= tenant.name %></a>
11+
</div>
12+
<div class="commissions">
13+
<% session[vars.commissions].forEach(commission => { %>
14+
<div class="commission">
15+
<h2><%= commission.id %></h2>
16+
<p><%= commission.status %></p>
17+
<a class="button" href="<%= tenant.domain %><%= tenant.path %>/<%= commission.id %>">View</a>
18+
</div>
19+
<% }) %>
20+
</div>
21+
<%- include('foot.ejs') %>

frontend/pages/user.ejs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
<div id="sync" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23" fill="none">
1414
<path d="M18.5949 5.16663C16.8618 3.32009 14.3989 2.16663 11.6666 2.16663C6.41992 2.16663 2.16663 6.41992 2.16663 11.6666C2.16663 16.9133 6.41992 21.1666 11.6666 21.1666C14.3989 21.1666 16.8618 20.0132 18.5949 18.1666M17.3236 7.98035L20.9804 7.98035L20.9804 4.3235" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
1515
</svg> Sync Existing</div>
16+
<a class="button" href="<%= tenant.domain %>">Back to <%= tenant.name %></a>
1617
</div>
1718
<div class="commissions">
1819
<% session[vars.commissions].forEach(commission => { %>
1920
<div class="commission">
2021
<h2><%= commission.id %></h2>
2122
<p><%= commission.status %></p>
22-
<a class="button" href="<%= tenant.domain %><%= tenant.path %>/<%= commission.id %>"><%= commission.locked ? 'View' : 'Edit' %></a>
23+
<a class="button" href="<%= tenant.domain %><%= tenant.path %>/<%= commission.id %>">View</a>
2324
</div>
2425
<% }) %>
2526
</div>

0 commit comments

Comments
 (0)