From f7c009c45235ac0f96f42f572b921e490a04dd5e Mon Sep 17 00:00:00 2001 From: Moncef Belyamani Date: Sat, 2 Aug 2014 19:29:58 -0400 Subject: [PATCH] Remove required attribute until we find workaround See issue #207 for desired solution. Closes #200. --- app/views/admin/locations/forms/_description.html.haml | 2 +- app/views/admin/locations/forms/_location_name.html.haml | 2 +- app/views/admin/organizations/forms/_name.html.haml | 2 +- app/views/admin/services/forms/_description.html.haml | 2 +- app/views/admin/services/forms/_name.html.haml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/admin/locations/forms/_description.html.haml b/app/views/admin/locations/forms/_description.html.haml index 816d79b61..3c6081f7d 100644 --- a/app/views/admin/locations/forms/_description.html.haml +++ b/app/views/admin/locations/forms/_description.html.haml @@ -4,4 +4,4 @@ %span.desc A description of the location's services. %p - = f.text_area :description, required: true, class: 'span9', rows: 10 \ No newline at end of file + = f.text_area :description, required: false, class: 'span9', rows: 10 \ No newline at end of file diff --git a/app/views/admin/locations/forms/_location_name.html.haml b/app/views/admin/locations/forms/_location_name.html.haml index e80ae554a..44a840ab7 100644 --- a/app/views/admin/locations/forms/_location_name.html.haml +++ b/app/views/admin/locations/forms/_location_name.html.haml @@ -4,4 +4,4 @@ %span.desc The name of the organization at a location, such as a branch, department, or similar. %p - = f.text_field :name, required: true, maxlength: 255, class: 'span10' \ No newline at end of file + = f.text_field :name, required: false, maxlength: 255, class: 'span10' \ No newline at end of file diff --git a/app/views/admin/organizations/forms/_name.html.haml b/app/views/admin/organizations/forms/_name.html.haml index 3f2034a33..483ff4865 100644 --- a/app/views/admin/organizations/forms/_name.html.haml +++ b/app/views/admin/organizations/forms/_name.html.haml @@ -2,4 +2,4 @@ %header = f.label :name, 'Organization Name' %p - = f.text_field :name, required: true, maxlength: 255, class: 'span10' \ No newline at end of file + = f.text_field :name, required: false, maxlength: 255, class: 'span10' \ No newline at end of file diff --git a/app/views/admin/services/forms/_description.html.haml b/app/views/admin/services/forms/_description.html.haml index 3a09a5b34..0e9aae46a 100644 --- a/app/views/admin/services/forms/_description.html.haml +++ b/app/views/admin/services/forms/_description.html.haml @@ -4,4 +4,4 @@ %span.desc A description of the service. %p - = f.text_area :description, required: true, class: 'span9', rows: 5 + = f.text_area :description, required: false, class: 'span9', rows: 5 diff --git a/app/views/admin/services/forms/_name.html.haml b/app/views/admin/services/forms/_name.html.haml index ec3981b13..e0b78987f 100644 --- a/app/views/admin/services/forms/_name.html.haml +++ b/app/views/admin/services/forms/_name.html.haml @@ -4,4 +4,4 @@ %span.desc The name of the service. %p - = f.text_field :name, required: true, maxlength: 255, class: 'span10' + = f.text_field :name, required: false, maxlength: 255, class: 'span10'