Skip to content

Commit

Permalink
* Show count of: 'Applications/Leases', 'Residence and rental history…
Browse files Browse the repository at this point in the history
…', 'Employment and income history' and 'References' in Applicants and tenants table view, and allow adding new ones from there.

* Show count of: 'Applications/leases', 'Units', 'Property photos' in properties table view, and allow adding new ones from there.
* Show count of properties in rental owners table view, and allow adding new ones from there.
* Show count of 'Applications/Leases' and 'Unit photos' in units table view and allow adding new ones from there.
  • Loading branch information
bigprof committed Dec 27, 2023
1 parent abd01f2 commit d3e2853
Show file tree
Hide file tree
Showing 14 changed files with 104 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/admin/pageServerStatus.php
@@ -1,6 +1,6 @@
<?php
$appgini_version = '23.17.1557';
$generated_ts = '27/12/2023 01:48:04';
$generated_ts = '27/12/2023 02:28:26';

require(__DIR__ . '/incCommon.php');

Expand Down
8 changes: 4 additions & 4 deletions app/applicants_and_tenants_view.php
Expand Up @@ -137,10 +137,10 @@
$x->DefaultSortField = '2';
$x->DefaultSortDirection = 'asc';

$x->ColWidth = [100, 100, 100, 100, 100, 100, 80, 80, 80, 100, 100, ];
$x->ColCaption = ['Last name', 'First name', 'Email', 'Phone', 'Birth date', 'Driver license number', 'Monthly gross pay', 'Additional income', 'Assets', 'Status', 'Notes', ];
$x->ColFieldName = ['last_name', 'first_name', 'email', 'phone', 'birth_date', 'driver_license_number', 'monthly_gross_pay', 'additional_income', 'assets', 'status', 'notes', ];
$x->ColNumber = [2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, ];
$x->ColWidth = [100, 100, 100, 100, 100, 100, 80, 80, 80, 100, 100, 100, 100, 100, 100, ];
$x->ColCaption = ['Last name', 'First name', 'Email', 'Phone', 'Birth date', 'Driver license number', 'Monthly gross pay', 'Additional income', 'Assets', 'Status', 'Notes', 'Applications/Leases', 'Residence and rental history', 'Employment and income history', 'References', ];
$x->ColFieldName = ['last_name', 'first_name', 'email', 'phone', 'birth_date', 'driver_license_number', 'monthly_gross_pay', 'additional_income', 'assets', 'status', 'notes', '%applications_leases.tenants%', '%residence_and_rental_history.tenant%', '%employment_and_income_history.tenant%', '%references.tenant%', ];
$x->ColNumber = [2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, -1, -1, -1, -1, ];

// template paths below are based on the app main directory
$x->Template = 'templates/applicants_and_tenants_templateTV.html';
Expand Down
8 changes: 4 additions & 4 deletions app/properties_view.php
Expand Up @@ -135,10 +135,10 @@
$x->DefaultSortField = '1';
$x->DefaultSortDirection = 'desc';

$x->ColWidth = [50, 60, 80, 50, 100, 120, 70, 120, 70, 50, 50, ];
$x->ColCaption = ['Property Name', 'Cover photo', 'Type', 'Number of units', 'Owner', 'Operating account', 'Property reserve', 'Street', 'City', 'State', 'ZIP', ];
$x->ColFieldName = ['property_name', 'photo', 'type', 'number_of_units', 'owner', 'operating_account', 'property_reserve', 'street', 'City', 'State', 'ZIP', ];
$x->ColNumber = [2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, ];
$x->ColWidth = [50, 60, 80, 50, 100, 120, 70, 120, 70, 50, 50, 100, 100, 100, ];
$x->ColCaption = ['Property Name', 'Cover photo', 'Type', 'Number of units', 'Owner', 'Operating account', 'Property reserve', 'Street', 'City', 'State', 'ZIP', 'Applications/leases', 'Units', 'Property photos', ];
$x->ColFieldName = ['property_name', 'photo', 'type', 'number_of_units', 'owner', 'operating_account', 'property_reserve', 'street', 'City', 'State', 'ZIP', '%applications_leases.property%', '%units.property%', '%property_photos.property%', ];
$x->ColNumber = [2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, -1, -1, -1, ];

// template paths below are based on the app main directory
$x->Template = 'templates/properties_templateTV.html';
Expand Down
8 changes: 4 additions & 4 deletions app/rental_owners_view.php
Expand Up @@ -135,10 +135,10 @@
$x->TableIcon = 'resources/table_icons/administrator.png';
$x->PrimaryKey = '`rental_owners`.`id`';

$x->ColWidth = [150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, ];
$x->ColCaption = ['First name', 'Last name', 'Company name', 'Primary email', 'Alternate email', 'Phone', 'Country', 'Street', 'City', 'State', 'Zip', 'Comments', ];
$x->ColFieldName = ['first_name', 'last_name', 'company_name', 'primary_email', 'alternate_email', 'phone', 'country', 'street', 'city', 'state', 'zip', 'comments', ];
$x->ColNumber = [2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, ];
$x->ColWidth = [150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 100, ];
$x->ColCaption = ['First name', 'Last name', 'Company name', 'Primary email', 'Alternate email', 'Phone', 'Country', 'Street', 'City', 'State', 'Zip', 'Comments', 'Properties', ];
$x->ColFieldName = ['first_name', 'last_name', 'company_name', 'primary_email', 'alternate_email', 'phone', 'country', 'street', 'city', 'state', 'zip', 'comments', '%properties.owner%', ];
$x->ColNumber = [2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1, ];

// template paths below are based on the app main directory
$x->Template = 'templates/rental_owners_templateTV.html';
Expand Down
16 changes: 16 additions & 0 deletions app/templates/applicants_and_tenants_templateTV.html
Expand Up @@ -16,3 +16,19 @@
<td id="applicants_and_tenants-assets-<%%VALUE(id)%%>" class="applicants_and_tenants-assets text-right"><%%SELECT%%><%%VALUE(assets)%%><%%ENDSELECT%%></td>
<td id="applicants_and_tenants-status-<%%VALUE(id)%%>" class="applicants_and_tenants-status text-center"><%%SELECT%%><%%VALUE(status)%%><%%ENDSELECT%%></td>
<td id="applicants_and_tenants-notes-<%%VALUE(id)%%>" class="applicants_and_tenants-notes"><%%SELECT%%><%%VALUE(notes)%%><%%ENDSELECT%%></td>
<td class="child-applications_leases-tenants child-records-info" data-id="<%%VALUE(id)%%>" data-table="applications_leases" data-lookup-field="tenants">
<a href="applications_leases_view.php?filterer_tenants=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="applications_leases_view.php?filterer_tenants=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Applications/Leases)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
<td class="child-residence_and_rental_history-tenant child-records-info" data-id="<%%VALUE(id)%%>" data-table="residence_and_rental_history" data-lookup-field="tenant">
<a href="residence_and_rental_history_view.php?filterer_tenant=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="residence_and_rental_history_view.php?filterer_tenant=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Residence and rental history)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
<td class="child-employment_and_income_history-tenant child-records-info" data-id="<%%VALUE(id)%%>" data-table="employment_and_income_history" data-lookup-field="tenant">
<a href="employment_and_income_history_view.php?filterer_tenant=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="employment_and_income_history_view.php?filterer_tenant=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Employment and income history)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
<td class="child-references-tenant child-records-info" data-id="<%%VALUE(id)%%>" data-table="references" data-lookup-field="tenant">
<a href="references_view.php?filterer_tenant=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="references_view.php?filterer_tenant=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (References)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
16 changes: 16 additions & 0 deletions app/templates/applicants_and_tenants_templateTVS.html
Expand Up @@ -16,3 +16,19 @@
<td id="applicants_and_tenants-assets-<%%VALUE(id)%%>" class="applicants_and_tenants-assets text-right text-bold"><%%VALUE(assets)%%></td>
<td id="applicants_and_tenants-status-<%%VALUE(id)%%>" class="applicants_and_tenants-status text-center text-bold"><%%VALUE(status)%%></td>
<td id="applicants_and_tenants-notes-<%%VALUE(id)%%>" class="applicants_and_tenants-notes text-bold"><%%VALUE(notes)%%></td>
<td class="child-applications_leases-tenants child-records-info" data-id="<%%VALUE(id)%%>" data-table="applications_leases" data-lookup-field="tenants">
<a href="applications_leases_view.php?filterer_tenants=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="applications_leases_view.php?filterer_tenants=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Applications/Leases)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
<td class="child-residence_and_rental_history-tenant child-records-info" data-id="<%%VALUE(id)%%>" data-table="residence_and_rental_history" data-lookup-field="tenant">
<a href="residence_and_rental_history_view.php?filterer_tenant=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="residence_and_rental_history_view.php?filterer_tenant=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Residence and rental history)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
<td class="child-employment_and_income_history-tenant child-records-info" data-id="<%%VALUE(id)%%>" data-table="employment_and_income_history" data-lookup-field="tenant">
<a href="employment_and_income_history_view.php?filterer_tenant=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="employment_and_income_history_view.php?filterer_tenant=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Employment and income history)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
<td class="child-references-tenant child-records-info" data-id="<%%VALUE(id)%%>" data-table="references" data-lookup-field="tenant">
<a href="references_view.php?filterer_tenant=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="references_view.php?filterer_tenant=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (References)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
15 changes: 15 additions & 0 deletions app/templates/properties_templateTV.html
Expand Up @@ -29,6 +29,21 @@
<dt class="properties-ZIP-caption field-caption-tv">ZIP</dt>
<dd id="properties-ZIP-<%%VALUE(id)%%>" class="properties-ZIP"><%%SELECT%%><%%VALUE(ZIP)%%><%%ENDSELECT%%></dd>

<dt class="child-applications_leases-property-caption field-caption-tv" title="Applications/leases">Applications/leases</dt>
<dd class="child-applications_leases-property child-records-info" data-id="<%%VALUE(id)%%>" data-table="applications_leases" data-lookup-field="property">
<a href="applications_leases_view.php?filterer_property=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="applications_leases_view.php?filterer_property=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Applications/leases)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</dd>
<dt class="child-units-property-caption field-caption-tv" title="Units">Units</dt>
<dd class="child-units-property child-records-info" data-id="<%%VALUE(id)%%>" data-table="units" data-lookup-field="property">
<a href="units_view.php?filterer_property=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="units_view.php?filterer_property=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Units)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</dd>
<dt class="child-property_photos-property-caption field-caption-tv" title="Property photos">Property photos</dt>
<dd class="child-property_photos-property child-records-info" data-id="<%%VALUE(id)%%>" data-table="property_photos" data-lookup-field="property">
<a href="property_photos_view.php?filterer_property=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="property_photos_view.php?filterer_property=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Property photos)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</dd>
</dl>
</div>
</td>
15 changes: 15 additions & 0 deletions app/templates/properties_templateTVS.html
Expand Up @@ -29,6 +29,21 @@
<dt class="properties-ZIP-caption field-caption-tv">ZIP</dt>
<dd id="properties-ZIP-<%%VALUE(id)%%>" class="properties-ZIP text-bold"><%%VALUE(ZIP)%%></dd>

<dt class="child-applications_leases-property-caption field-caption-tv" title="Applications/leases">Applications/leases</dt>
<dd class="child-applications_leases-property child-records-info" data-id="<%%VALUE(id)%%>" data-table="applications_leases" data-lookup-field="property">
<a href="applications_leases_view.php?filterer_property=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="applications_leases_view.php?filterer_property=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Applications/leases)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</dd>
<dt class="child-units-property-caption field-caption-tv" title="Units">Units</dt>
<dd class="child-units-property child-records-info" data-id="<%%VALUE(id)%%>" data-table="units" data-lookup-field="property">
<a href="units_view.php?filterer_property=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="units_view.php?filterer_property=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Units)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</dd>
<dt class="child-property_photos-property-caption field-caption-tv" title="Property photos">Property photos</dt>
<dd class="child-property_photos-property child-records-info" data-id="<%%VALUE(id)%%>" data-table="property_photos" data-lookup-field="property">
<a href="property_photos_view.php?filterer_property=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="property_photos_view.php?filterer_property=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Property photos)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</dd>
</dl>
</div>
</td>
4 changes: 4 additions & 0 deletions app/templates/rental_owners_templateTV.html
Expand Up @@ -17,3 +17,7 @@
<td id="rental_owners-state-<%%VALUE(id)%%>" class="rental_owners-state"><%%SELECT%%><%%VALUE(state)%%><%%ENDSELECT%%></td>
<td id="rental_owners-zip-<%%VALUE(id)%%>" class="rental_owners-zip text-right"><%%SELECT%%><%%VALUE(zip)%%><%%ENDSELECT%%></td>
<td id="rental_owners-comments-<%%VALUE(id)%%>" class="rental_owners-comments"><%%SELECT%%><%%VALUE(comments)%%><%%ENDSELECT%%></td>
<td class="child-properties-owner child-records-info" data-id="<%%VALUE(id)%%>" data-table="properties" data-lookup-field="owner">
<a href="properties_view.php?filterer_owner=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="properties_view.php?filterer_owner=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Properties)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
4 changes: 4 additions & 0 deletions app/templates/rental_owners_templateTVS.html
Expand Up @@ -17,3 +17,7 @@
<td id="rental_owners-state-<%%VALUE(id)%%>" class="rental_owners-state text-bold"><%%VALUE(state)%%></td>
<td id="rental_owners-zip-<%%VALUE(id)%%>" class="rental_owners-zip text-right text-bold"><%%VALUE(zip)%%></td>
<td id="rental_owners-comments-<%%VALUE(id)%%>" class="rental_owners-comments text-bold"><%%VALUE(comments)%%></td>
<td class="child-properties-owner child-records-info" data-id="<%%VALUE(id)%%>" data-table="properties" data-lookup-field="owner">
<a href="properties_view.php?filterer_owner=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="properties_view.php?filterer_owner=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Properties)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
8 changes: 8 additions & 0 deletions app/templates/units_templateTV.html
Expand Up @@ -17,3 +17,11 @@
<td id="units-bathroom-<%%VALUE(id)%%>" class="units-bathroom text-center"><%%SELECT%%><%%VALUE(bathroom)%%><%%ENDSELECT%%></td>
<td id="units-features-<%%VALUE(id)%%>" class="units-features"><%%SELECT%%><%%VALUE(features)%%><%%ENDSELECT%%></td>
<td id="units-rental_amount-<%%VALUE(id)%%>" class="units-rental_amount text-right"><%%SELECT%%><%%VALUE(rental_amount)%%><%%ENDSELECT%%></td>
<td class="child-applications_leases-unit child-records-info" data-id="<%%VALUE(id)%%>" data-table="applications_leases" data-lookup-field="unit">
<a href="applications_leases_view.php?filterer_unit=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="applications_leases_view.php?filterer_unit=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Applications/Leases)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>
<td class="child-unit_photos-unit child-records-info" data-id="<%%VALUE(id)%%>" data-table="unit_photos" data-lookup-field="unit">
<a href="unit_photos_view.php?filterer_unit=<%%VALUE(id)%%>" target="_blank" title="<%%TRANSLATION(view)%%>" class="children-count" style="visibility: hidden;"><span class="count-children">0</span> <i class="glyphicon glyphicon-new-window"></i></a>
<a href="unit_photos_view.php?filterer_unit=<%%VALUE(id)%%>&addNew_x=1&Embedded=1" target="_blank" class="modal-link new-child" title="<%%TRANSLATION(Add New)%%> (Unit photos)" style="visibility: hidden;"><i class="text-success glyphicon glyphicon-plus"></i></a>
</td>

0 comments on commit d3e2853

Please sign in to comment.