rubyforgood / inkind-admin

A project serving Community Education Partnerships - https://www.cep.ngo/ . This Rails application presents an admin interface for CEP to manage their volunteers and students. And provides a GraphQL backend for https://github.com/rubyforgood/inkind-volunteer .
MIT License
9 stars 27 forks source link

Restrict phone number field to the telephone input #192

Open sowmi20189 opened 2 years ago

sowmi20189 commented 2 years ago

Summary

As as admin, I want the phone number field to be restricted to only 10 digits on the pages wherever applicable.

Things to Consider

Currently, the field takes alphabets and numbers up to 'n' digits.

Criteria for Completion

Refer the below screenshot - Add phone number can't be blank

Phone number can't be blank

Phone number warning message:

Phone number warning message
JelenaD1 commented 2 years ago

I'll tackle this one. @garettarrowood

JelenaD1 commented 2 years ago

Hey @garettarrowood, me and @robgentile17 are pairing on this on rn. He is just cloning the repo. Is there any specific format we want to allow for phone numbers or just plane numbers without - in between?

JelenaD1 commented 2 years ago

@RudeChowder joined the forces on this one too:)