2018-06-17 18:42:41 +03:00
|
|
|
<h2>
|
|
|
|
#{title'}
|
|
|
|
|
imp:web: access control UX cleanups (fix #834)
Changes:
1. rename the sandstorm "manage" permission to "edit"
(old permission names: view, add, manage;
new permission names: view, add, edit).
Rationale: "edit" best describes this permission's current powers, to users and to operators.
If we ever added more manager-type features we'd want that to be a new permission,
not a rename of the existing one (which would change the powers of existing users).
2. rename the sandstorm roles for consistency with permissions
(old role names: viewer, editor, manager;
new role names: viewer, adder, editor)
Rationale: it's needed to avoid confusion.
3. add a new option: --allow=view|add|edit|sandstorm (default: add).
'sandstorm' sets permissions according to the X-Sandstorm-Permissions header.
Drop the --capabilities and --capabilities-header options.
Rationale: it's simpler and more intuitive.
4. replace "capability" with "permission" in ui/docs/code.
Rationale: consistent with the above, more familiar.
2023-10-23 11:39:13 +03:00
|
|
|
$if elem AddPermission perms
|
2018-06-24 17:25:22 +03:00
|
|
|
<a #addformlink href="#" role="button" style="cursor:pointer; margin-top:1em;"
|
|
|
|
data-toggle="modal" data-target="#addmodal" title="Add a new transaction to the journal">
|
|
|
|
Add a transaction
|
2018-06-10 02:39:05 +03:00
|
|
|
|
|
|
|
<div .table-responsive>
|
|
|
|
<table .transactionsreport .table .table-condensed>
|
|
|
|
<thead>
|
|
|
|
<th .date style="text-align:left;">Date
|
|
|
|
<th .description style="text-align:left;">Description
|
|
|
|
<th .account style="text-align:left;">Account
|
|
|
|
<th .amount style="text-align:right;">Amount
|
|
|
|
|
2021-06-23 04:43:12 +03:00
|
|
|
$forall torig <- items
|
2020-05-24 19:57:50 +03:00
|
|
|
<tr .title ##{transactionFrag torig} title="#{showTransaction torig}">
|
2018-06-17 18:42:41 +03:00
|
|
|
<td .date nowrap>
|
|
|
|
#{show (tdate torig)}
|
|
|
|
<td colspan=2>
|
|
|
|
#{textElideRight 60 (tdescription torig)}
|
2018-06-10 02:39:05 +03:00
|
|
|
<td .amount style="text-align:right;">
|
|
|
|
|
|
|
|
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
|
2019-02-18 18:55:29 +03:00
|
|
|
<tr .posting>
|
2018-06-17 18:42:41 +03:00
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<td>
|
2018-06-10 02:39:05 +03:00
|
|
|
|
|
|
|
<a href="@?{acctlink acc}##{tindex torig}" title="#{acc}">
|
|
|
|
#{elideAccountName 40 acc}
|
2018-06-17 18:42:41 +03:00
|
|
|
<td .amount style="text-align:right;">
|
2018-06-10 02:39:05 +03:00
|
|
|
^{mixedAmountAsHtml amt}
|
2018-06-12 19:56:53 +03:00
|
|
|
|
imp:web: access control UX cleanups (fix #834)
Changes:
1. rename the sandstorm "manage" permission to "edit"
(old permission names: view, add, manage;
new permission names: view, add, edit).
Rationale: "edit" best describes this permission's current powers, to users and to operators.
If we ever added more manager-type features we'd want that to be a new permission,
not a rename of the existing one (which would change the powers of existing users).
2. rename the sandstorm roles for consistency with permissions
(old role names: viewer, editor, manager;
new role names: viewer, adder, editor)
Rationale: it's needed to avoid confusion.
3. add a new option: --allow=view|add|edit|sandstorm (default: add).
'sandstorm' sets permissions according to the X-Sandstorm-Permissions header.
Drop the --capabilities and --capabilities-header options.
Rationale: it's simpler and more intuitive.
4. replace "capability" with "permission" in ui/docs/code.
Rationale: consistent with the above, more familiar.
2023-10-23 11:39:13 +03:00
|
|
|
$if elem AddPermission perms
|
2018-06-24 17:25:22 +03:00
|
|
|
^{addModal AddR j today}
|