From 3655c80feb8613de9518712d3baf49545e7cb857 Mon Sep 17 00:00:00 2001 From: Siddhant Bajaj Date: Mon, 13 Mar 2017 22:57:38 +0530 Subject: [PATCH] Fixed registration limit issue --- app/views/admin/conferences/edit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/conferences/edit.html.haml b/app/views/admin/conferences/edit.html.haml index 8ba8f80e..f038ec8b 100644 --- a/app/views/admin/conferences/edit.html.haml +++ b/app/views/admin/conferences/edit.html.haml @@ -24,5 +24,5 @@ = f.input :start_hour, :input_html => {size: 2, type: 'number', min: 0, max: 23} = f.input :end_hour, :input_html => {size: 2, type: 'number', min: 1, max: 24} = f.inputs name: "Registrations" do - = f.input :registration_limit, as: :number, in: 0..9999, hint: "Limit the number of registrations to the conference (0 no limit)" + = f.input :registration_limit, as: :number, in: 0..9999, hint: "Limit the number of registrations to the conference (0 no limit). You currently have " + pluralize(@conference.registrations.count,'registration') = f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}