summaryrefslogtreecommitdiff
path: root/app/Module/IndividualFactsTabModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2016-02-28 17:52:22 +0000
committerGreg Roach <fisharebest@gmail.com>2016-02-28 18:20:09 +0000
commit673157b0c0a21c0a56335ccd60e4d481f416ae1f (patch)
tree2436089401c5e77c3cd2c63f135c1a53dc338944 /app/Module/IndividualFactsTabModule.php
parent14c3d3fb510e1c4899ec81cb0d1d1e7e08af7079 (diff)
downloadwebtrees-673157b0c0a21c0a56335ccd60e4d481f416ae1f.tar.gz
webtrees-673157b0c0a21c0a56335ccd60e4d481f416ae1f.tar.bz2
webtrees-673157b0c0a21c0a56335ccd60e4d481f416ae1f.zip
Refactor CSS
Diffstat (limited to 'app/Module/IndividualFactsTabModule.php')
-rw-r--r--app/Module/IndividualFactsTabModule.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/app/Module/IndividualFactsTabModule.php b/app/Module/IndividualFactsTabModule.php
index 8d36b0891d..6fc9d59d4b 100644
--- a/app/Module/IndividualFactsTabModule.php
+++ b/app/Module/IndividualFactsTabModule.php
@@ -120,7 +120,14 @@ class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterf
ob_start();
- echo '<div class="descriptionbox rela"><form action="?"><input id="checkbox_rela_facts" type="checkbox" ';
+ echo '<table class="facts_table">';
+ echo '<colgroup>';
+ echo '<col class="width20">';
+ echo '<col class="width80">';
+ echo '</colgroup>';
+ echo '<tbody>';
+ echo '<tr><td colspan="2" class="descriptionbox rela">';
+ echo '<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')) {
@@ -128,9 +135,9 @@ 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></div>';
- echo '<table class="facts_table">';
- echo '<tbody>';
+ echo '</form>';
+ echo '</td></tr>';
+
if (!$indifacts) {
echo '<tr><td colspan="2" class="facts_value">', I18N::translate('There are no facts for this individual.'), '</td></tr>';
}