diff options
| author | David Drury <david@drury.me.uk> | 2016-02-24 20:35:37 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-02-28 17:25:55 +0000 |
| commit | dc46b57449e335587417319b1bb980729dfe17aa (patch) | |
| tree | 5c4fca6ee64be3c1244ac1276a022b7d258b7acc /app/Module/IndividualFactsTabModule.php | |
| parent | 4b207177137d933a7ecf26b2ec91aaebe8e8cd7a (diff) | |
| download | webtrees-dc46b57449e335587417319b1bb980729dfe17aa.tar.gz webtrees-dc46b57449e335587417319b1bb980729dfe17aa.tar.bz2 webtrees-dc46b57449e335587417319b1bb980729dfe17aa.zip | |
Added styling for Census Assistant notes (same as markdown).
census-edit.php fixed bug in function updateCensusText whereby hidden <th> elements were included in the column count when generating the note text.
fixed bug in CensusAssistantModule.php function formatCensusNote to remove leading \n char from $data (real solution would be to change regex on line 294 but I go cross eyed looking at that).
Accomodate censuses with many columns (eg US 1930). To do this it was necessary to move the "Events of close relatives etc." line outside the facts table as colspan and table-layout: fixed don't play well together
NotesTabModule.php also need some work to properly show censuses with many columns
Select the correct census from which to derive the column headers
Use Soundex to perform place matching
Safety first programming
Diffstat (limited to 'app/Module/IndividualFactsTabModule.php')
| -rw-r--r-- | app/Module/IndividualFactsTabModule.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/app/Module/IndividualFactsTabModule.php b/app/Module/IndividualFactsTabModule.php index 1065686373..8d36b0891d 100644 --- a/app/Module/IndividualFactsTabModule.php +++ b/app/Module/IndividualFactsTabModule.php @@ -120,13 +120,7 @@ class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterf ob_start(); - echo '<table class="facts_table">'; - echo '<tbody>'; - if (!$indifacts) { - echo '<tr><td colspan="2" class="facts_value">', I18N::translate('There are no facts for this individual.'), '</td></tr>'; - } - - echo '<tr><td colspan="2" class="descriptionbox rela"><form action="?"><input id="checkbox_rela_facts" type="checkbox" '; + echo '<div class="descriptionbox rela"><form action="?"><input id="checkbox_rela_facts" type="checkbox" '; echo $controller->record->getTree()->getPreference('EXPAND_RELATIVES_EVENTS') ? 'checked' : ''; echo ' onclick="jQuery(\'tr.rela\').toggle();"><label for="checkbox_rela_facts">', I18N::translate('Events of close relatives'), '</label>'; if (file_exists(Site::getPreference('INDEX_DIRECTORY') . 'histo.' . WT_LOCALE . '.php')) { @@ -134,7 +128,12 @@ class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterf echo $EXPAND_HISTO_EVENTS ? 'checked' : ''; echo ' onclick="jQuery(\'tr.histo\').toggle();"><label for="checkbox_histo">', I18N::translate('Historical facts'), '</label>'; } - echo '</form></td></tr>'; + echo '</form></div>'; + echo '<table class="facts_table">'; + echo '<tbody>'; + if (!$indifacts) { + echo '<tr><td colspan="2" class="facts_value">', I18N::translate('There are no facts for this individual.'), '</td></tr>'; + } foreach ($indifacts as $fact) { FunctionsPrintFacts::printFact($fact, $controller->record); |
