summaryrefslogtreecommitdiff
path: root/views/staff/plans/index.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/staff/plans/index.ejs')
-rw-r--r--views/staff/plans/index.ejs54
1 files changed, 54 insertions, 0 deletions
diff --git a/views/staff/plans/index.ejs b/views/staff/plans/index.ejs
new file mode 100644
index 0000000..aa6c35a
--- /dev/null
+++ b/views/staff/plans/index.ejs
@@ -0,0 +1,54 @@
+[[ include ../_header ]]
+
+ <h1>Plans</h1>
+
+[[ include ../_nav ]]
+
+ <hr>
+
+<table>
+ <tr>
+ <td></td>
+ [[ plans.forEach(function(plan){ ]]
+ <td>
+ [[- plan.name ]]
+ </td>
+ [[ }) ]]
+ </tr>
+
+ <tr>
+ <td></td>
+ [[ plans.forEach(function(plan){ ]]
+ <td>
+ <a href="/staff/plans/[[- plan.slug ]]">edit</a>
+ </td>
+ [[ }) ]]
+ </tr>
+
+ [[ fields.forEach(function(field){ ]]
+ <tr>
+ <td>[[- field.replace(/_/," ") ]]</td>
+ [[ plans.forEach(function(plan){ ]]
+ <td>
+ [[- plan[field] ]]
+ </td>
+ [[ }) ]]
+ </tr>
+ [[ }) ]]
+
+ [[ permissions.forEach(function(permission){ ]]
+ <tr>
+ <td>[[- permission.replace(/_/," ") ]]</td>
+ [[ plans.forEach(function(plan){ ]]
+ <td>
+ [[- plan.permissions[permission] ? "x" : " " ]]
+ </td>
+ [[ }) ]]
+ </tr>
+ [[ }) ]]
+
+</table>
+
+ <hr>
+
+[[ include ../_footer ]]