TIPOFF / addresses

Laravel Package to manage addresses & interact with Address API
MIT License
0 stars 2 forks source link

Phone Nova Field #108

Closed drewroberts closed 3 years ago

drewroberts commented 3 years ago

For the packages that have Nova Resources for models that will now have a relationship with Phone (#58), I do not want to use the typical "BelongsTo" nova field (https://nova.laravel.com/docs/3.0/resources/relationships.html#belongsto) and instead would like to use a new Custom Nova Field that is similar to the Phone field I've been using:

Let's call the field PhoneNumber and it should display the formatted phone number from the Phone model and be clickable using the Tel: HTML link. There should be a button next to it for "Change" if the User has edit Permissions and it will accept a new phone number and run a findOrCreate() on the model. There will also be a "View" button that takes you to the Nova Resource for the Phone.

drewroberts commented 3 years ago

Instead of other nova resources displaying just the relationship to Phone (#58), I would like for the data for the Phone model to be displayed similar to the Nova Field I've been using in all the other resources that have a phone string:

https://github.com/dniccum/nova-phone-number The number should be callable by the Nova user and it should be formatted with the Country (#15) flag of the International Calling Code (#67) similar to the way we are creating the frontend field display in issue #73 and #75

joshtorres commented 3 years ago

This is done