In the 'edit_interface.php' file I see the "case 'add':" section on around line 500 but I'm unable to find the actual Add Marriage form that is used when clicking "Add marriage details". Could someone please point to which file that contains that code?
At the bottom of the "Add marriage details" form of course is the section 'Husband, Age, Wife, Age' . I've been asked several times if it's required to enter in the Ages of the husband and wife. I'm wanting to put some text about that in-between the Address <tr> and the Husband <tr>.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the reply. Anywhere I bring up the form it's the same form; under the "Close Relatives" tab, adding a Marriage new fact on the Family page, when "Edit Family" is clicked on the Family page, etc. I just need to know where the code is for that form?
Thanks again!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The form is generated dynamically from the gedcom data.
You probably want to look at add_simple_tag() in functions_edit.php. You'd need to make any changes conditional on the record type, as changes here affect all AGE tags, including INDI ones, such as DEAT:AGE.
I don't think there is any special handling for AGE. so it is covered by default processing.
I'm afraid it isn't simple…
The empty HUSB/WIFE:AGE fields are added in functions_edit.php, in the function insert_missing_subtags(). If you don't want these fields at all, you would remove them here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the 'edit_interface.php' file I see the "case 'add':" section on around line 500 but I'm unable to find the actual Add Marriage form that is used when clicking "Add marriage details". Could someone please point to which file that contains that code?
At the bottom of the "Add marriage details" form of course is the section 'Husband, Age, Wife, Age' . I've been asked several times if it's required to enter in the Ages of the husband and wife. I'm wanting to put some text about that in-between the Address <tr> and the Husband <tr>.
Thanks!
You add marriages from the FAMILY page, not the INDIVIDUAL page.
Thanks for the reply. Anywhere I bring up the form it's the same form; under the "Close Relatives" tab, adding a Marriage new fact on the Family page, when "Edit Family" is clicked on the Family page, etc. I just need to know where the code is for that form?
Thanks again!
The form is generated dynamically from the gedcom data.
You probably want to look at add_simple_tag() in functions_edit.php. You'd need to make any changes conditional on the record type, as changes here affect all AGE tags, including INDI ones, such as DEAT:AGE.
I don't think there is any special handling for AGE. so it is covered by default processing.
I'm afraid it isn't simple…
The empty HUSB/WIFE:AGE fields are added in functions_edit.php, in the function insert_missing_subtags(). If you don't want these fields at all, you would remove them here.