summaryrefslogtreecommitdiff
path: root/app/views/invite_codes/_invite_code.html.haml
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-01-14 16:14:39 -0800
committerelijah <elijah@riseup.net>2016-01-14 16:14:39 -0800
commit6dba1392a29a003c3334259a222061f29ff04b13 (patch)
treee3161cf87ecec5ebc095adf55f66db1e21c17cbb /app/views/invite_codes/_invite_code.html.haml
parentdd2518c40ab06f51d0f7380f1521087d3a4fbd5f (diff)
added UI for invite codes
Diffstat (limited to 'app/views/invite_codes/_invite_code.html.haml')
-rw-r--r--app/views/invite_codes/_invite_code.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/invite_codes/_invite_code.html.haml b/app/views/invite_codes/_invite_code.html.haml
new file mode 100644
index 0000000..a3c420d
--- /dev/null
+++ b/app/views/invite_codes/_invite_code.html.haml
@@ -0,0 +1,9 @@
+%tr
+ %td
+ = simple_date(invite_code.created_at)
+ %td
+ %input.invite-code{:value => invite_code.invite_code}
+ %td
+ = "#{invite_code.invite_count}/#{invite_code.max_uses}"
+ %td
+ = btn t(".destroy", cascade: true), invite_code_path(invite_code), :method => 'delete'