Author: david
Date: 2008-10-27 15:37:27 -0700 (Mon, 27 Oct 2008)
New Revision: 1508
Modified:
trunk/qubit/apps/qubit/modules/digitalobject/templates/_edit.php
trunk/qubit/lib/form/SettingsGlobalForm.class.php
trunk/qubit/web/css/form.css
Log:
Tweak display of checkbox and radio elements. Add class specifiers to raidio
button in "settings > global settings" and checkbox "digital object >
auto-generate derivative" to help formatting in IE6 (where attribute specifiers
won't work).
Modified: trunk/qubit/apps/qubit/modules/digitalobject/templates/_edit.php
===================================================================
--- trunk/qubit/apps/qubit/modules/digitalobject/templates/_edit.php
2008-10-27 21:57:38 UTC (rev 1507)
+++ trunk/qubit/apps/qubit/modules/digitalobject/templates/_edit.php
2008-10-27 22:37:27 UTC (rev 1508)
@@ -16,14 +16,14 @@
<label for="upload"><?php echo __('Add a new %1% representation',
array('%1%'=>QubitTerm::getById($usageId))); ?></label>
<table class="inline">
<tr>
- <td width="60%"><?php include_component('digitalobject', 'upload',
array('usageId'=>$usageId)); ?></td>
- <?php if ($digitalObject->canThumbnail()): ?>
- <td width="40%">
- <?php echo __('or'); ?>
- <?php echo checkbox_tag('createDerivative', $usageId, false,
array('style'=>'width: auto')); ?>
+ <td width="60%">
+ <?php include_component('digitalobject', 'upload',
array('usageId'=>$usageId)); ?>
+ <?php if ($digitalObject->canThumbnail()): ?>
+ <br/><?php echo __('or'); ?>
+ <?php echo checkbox_tag('createDerivative', $usageId, false,
array('class'=>'checkbox')); ?>
<?php echo __('auto-generate'); ?>
+ <?php endif; ?>
</td>
- <?php endif; ?>
</tr>
</table>
</div>
Modified: trunk/qubit/lib/form/SettingsGlobalForm.class.php
===================================================================
--- trunk/qubit/lib/form/SettingsGlobalForm.class.php 2008-10-27 21:57:38 UTC
(rev 1507)
+++ trunk/qubit/lib/form/SettingsGlobalForm.class.php 2008-10-27 22:37:27 UTC
(rev 1508)
@@ -43,7 +43,7 @@
'upload_dir' => new sfWidgetFormInput(array(),
array('class'=>'disabled', 'disabled'=>true)),
'reference_image_maxwidth' => new sfWidgetFormInput,
'hits_per_page' => new sfWidgetFormInput,
- 'multi_repository' => new
sfWidgetFormSelectRadio(array('choices'=>array(1=>'yes', 0=>'no')))
+ 'multi_repository' => new
sfWidgetFormSelectRadio(array('choices'=>array(1=>'yes', 0=>'no')),
array('class'=>'radio'))
));
// Add labels
Modified: trunk/qubit/web/css/form.css
===================================================================
--- trunk/qubit/web/css/form.css 2008-10-27 21:57:38 UTC (rev 1507)
+++ trunk/qubit/web/css/form.css 2008-10-27 22:37:27 UTC (rev 1508)
@@ -28,6 +28,18 @@
border: 1px solid #a3a3a3;
}
+form
+ input[type="radio"], input.radio,
+ input[type="checkbox"], input.checkbox
+{
+ padding: 0;
+ margin: 0;
+ border: none;
+ background-color: none;
+ font: none;
+ width: auto;
+}
+
form textarea
{
width: 95%;
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---