Closed drewroberts closed 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
This is done
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 theTel:
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 afindOrCreate()
on the model. There will also be a "View" button that takes you to the Nova Resource for the Phone.