From 6dba1392a29a003c3334259a222061f29ff04b13 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 14 Jan 2016 16:14:39 -0800 Subject: added UI for invite codes --- app/views/invite_codes/_invite_code.html.haml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/views/invite_codes/_invite_code.html.haml (limited to 'app/views/invite_codes/_invite_code.html.haml') 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' -- cgit v1.2.3