VeryApt / django-phone-field

Lightweight model and form field for phone numbers in Django
GNU General Public License v3.0
52 stars 13 forks source link

PhoneWidget size attrs #5

Closed dwasyl closed 5 years ago

dwasyl commented 5 years ago

Since PhoneWidget updates the phone_attrs and ext_attrs based on the attrs provided to the widget there is no runtime way of lengthening just the phone_attrs or ext_attrs input boxes. Currently to change the length of one, you must change the length of both inputs.

Would you be open to separate attrs value of phone_size and ext_size that then get applied to the respective attr default size?

va-andrew commented 5 years ago

Yeah, that's a good idea. Feel free to submit a PR, or I can get to this later in the week

dwasyl commented 5 years ago

Okay, I will see if I have time. I'm busy trying to shoehorn PhoneWidget into crispy-forms which is an adventure on its own.