Author: david
Date: 2008-10-15 17:15:38 -0700 (Wed, 15 Oct 2008)
New Revision: 1465
Modified:
trunk/qubit/apps/qubit/modules/settings/templates/listSuccess.php
trunk/qubit/lib/form/QubitWidgetFormSchemaFormatterList.class.php
trunk/qubit/lib/form/SettingsGlobalForm.class.php
Log:
Update labels for Global settings based on feedback from archivists. Add
tooltip help text to global settings. Update
QubitWidgetFormSchemaFormatterList to show help text as tooltip.
Modified: trunk/qubit/apps/qubit/modules/settings/templates/listSuccess.php
===================================================================
--- trunk/qubit/apps/qubit/modules/settings/templates/listSuccess.php
2008-10-15 07:06:05 UTC (rev 1464)
+++ trunk/qubit/apps/qubit/modules/settings/templates/listSuccess.php
2008-10-16 00:15:38 UTC (rev 1465)
@@ -15,7 +15,7 @@
</thead>
<tbody>
<tr>
- <td><label for="settings_version"><?php echo __('version')?></label></td>
+ <td><label for="settings_version"><?php echo __('application
version')?></label></td>
<td id="settings_version"><?php echo $version ?></td>
</tr>
<tr>
Modified: trunk/qubit/lib/form/QubitWidgetFormSchemaFormatterList.class.php
===================================================================
--- trunk/qubit/lib/form/QubitWidgetFormSchemaFormatterList.class.php
2008-10-15 07:06:05 UTC (rev 1464)
+++ trunk/qubit/lib/form/QubitWidgetFormSchemaFormatterList.class.php
2008-10-16 00:15:38 UTC (rev 1465)
@@ -30,8 +30,8 @@
class QubitWidgetFormSchemaFormatterList extends sfWidgetFormSchemaFormatter
{
protected
- $rowFormat = "<tr>\n <td>%label%</td>\n
<td>%error%%field%%help%%hidden_fields%</td>\n</tr>\n",
- $helpFormat = '<br />%help%',
+ $rowFormat = "<tr>\n <td><span title=\"%help%\">%label%</td>\n
<td>%error%%field%%hidden_fields%</td>\n</tr>\n",
+ $helpFormat = '%help%',
$errorRowFormat = "<tr><td colspan=\"2\">\n%errors%</td></tr>\n",
$errorListFormatInARow = " <ul class=\"validation_error\">\n%errors%
</ul>\n",
$errorRowFormatInARow = " <li>%error%</li>\n",
Modified: trunk/qubit/lib/form/SettingsGlobalForm.class.php
===================================================================
--- trunk/qubit/lib/form/SettingsGlobalForm.class.php 2008-10-15 07:06:05 UTC
(rev 1464)
+++ trunk/qubit/lib/form/SettingsGlobalForm.class.php 2008-10-16 00:15:38 UTC
(rev 1465)
@@ -39,18 +39,25 @@
{
// Build widgets
$this->setWidgets(array(
- 'reference_image_maxwidth' => new sfWidgetFormInput(),
+ 'reference_image_maxwidth' => new sfWidgetFormInput,
'hits_per_page' => new sfWidgetFormInput,
'multi_repository' => new
sfWidgetFormSelectRadio(array('choices'=>array(1=>'yes', 0=>'no')))
));
// Add labels
$this->widgetSchema->setLabels(array(
- 'reference_image_maxwidth' => 'reference image maximum width',
- 'hits_per_page' => 'hits per page',
- 'multi_repository' => 'multi-repository system'
+ 'reference_image_maxwidth' => 'maximum image width (pixels)',
+ 'hits_per_page' => 'results per page',
+ 'multi_repository' => 'multiple repositories'
));
+ // Add helper text
+ $this->widgetSchema->setHelps(array(
+ 'reference_image_maxwidth' => 'the maximum width for derived reference
images',
+ 'hits_per_page' => 'the number of results shown per page on list pages',
+ 'multi_repository' => 'when set to "yes", the related
repository name will be shown in some labels (e.g. archival descriptions) and
the context menu'
+ ));
+
// Reference image max. width validator
$this->validatorSchema['reference_image_maxwidth'] = new sfValidatorNumber(
array(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---