summaryrefslogtreecommitdiff
path: root/fanchart.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-08-29 14:48:49 +0100
committerGreg Roach <fisharebest@gmail.com>2014-08-29 14:48:49 +0100
commit2be958bc182d3048130a7d6c431f3d207535e0df (patch)
tree7eafed9f3f888cb1a0e523f9879ef7e26959e173 /fanchart.php
parentb833c3a377c434fa15a040957555dc43f0006ab2 (diff)
downloadwebtrees-2be958bc182d3048130a7d6c431f3d207535e0df.tar.gz
webtrees-2be958bc182d3048130a7d6c431f3d207535e0df.tar.bz2
webtrees-2be958bc182d3048130a7d6c431f3d207535e0df.zip
Fanchart lifespans incorrect on arabic pages. A11Y of fanchart form.
Diffstat (limited to 'fanchart.php')
-rw-r--r--fanchart.php22
1 files changed, 15 insertions, 7 deletions
diff --git a/fanchart.php b/fanchart.php
index 344497f8c2..35f9271e1c 100644
--- a/fanchart.php
+++ b/fanchart.php
@@ -29,7 +29,7 @@ $controller=new WT_Controller_Fanchart();
if (WT_Filter::getBool('img')) {
Zend_Session::writeClose();
- $controller->generate_fan_chart('png');
+ $controller->generate_fan_chart('png', $fanChart); // $fanChart comes from the theme
exit;
}
@@ -46,14 +46,18 @@ $controller
<table class="list_table">
<tr>
<td class="descriptionbox">
- <?php echo WT_I18N::translate('Individual'); ?>
+ <label for="rootid">
+ <?php echo WT_I18N::translate('Individual'); ?>
+ </label>
</td>
<td class="optionbox">
<input class="pedigree_form" data-autocomplete-type="INDI" type="text" name="rootid" id="rootid" size="3" value="<?php echo $controller->rootid; ?>">
<?php echo print_findindi_link('rootid'); ?>
</td>
<td class="descriptionbox">
- <?php echo WT_I18N::translate('Layout'); ?>
+ <label for="fan_style">
+ <?php echo WT_I18N::translate('Layout'); ?>
+ </label>
</td>
<td class="optionbox">
<?php echo select_edit_control('fan_style', $controller->getFanStyles(), null, $controller->fan_style); ?>
@@ -64,16 +68,20 @@ $controller
</tr>
<tr>
<td class="descriptionbox">
- <?php echo WT_I18N::translate('Generations'); ?>
+ <label for="generations">
+ <?php echo WT_I18N::translate('Generations'); ?>
+ </label>
</td>
<td class="optionbox">
<?php echo edit_field_integers('generations', $controller->generations, 2, 9); ?>
</td>
<td class="descriptionbox">
- <?php echo WT_I18N::translate('Width'), help_link('fan_width'); ?>
+ <label for="fan_width">
+ <?php echo WT_I18N::translate('Width'), help_link('fan_width'); ?>
+ </label>
</td>
<td class="optionbox">
- <input type="text" size="3" name="fan_width" value="<?php echo $controller->fan_width; ?>"> %
+ <input type="text" size="3" id="fan_width" name="fan_width" value="<?php echo $controller->fan_width; ?>"> %
</td>
</tr>
</table>
@@ -86,6 +94,6 @@ if ($controller->error_message) {
}
if ($controller->root) {
- echo '<div id="fan_chart">', $controller->generate_fan_chart('html'), '</div>';
+ echo '<div id="fan_chart">', $controller->generate_fan_chart('html', $fanChart), '</div>';
}
echo '</div>';