Author: sevein
Date: Sun Oct 10 11:04:08 2010
New Revision: 8047
Log:
Cosmetic changes.
Modified:
trunk/apps/qubit/modules/search/templates/descriptionUpdatesSuccess.php
Modified:
trunk/apps/qubit/modules/search/templates/descriptionUpdatesSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/descriptionUpdatesSuccess.php
Sun Oct 10 10:56:19 2010 (r8046)
+++ trunk/apps/qubit/modules/search/templates/descriptionUpdatesSuccess.php
Sun Oct 10 11:04:08 2010 (r8047)
@@ -1,104 +1,109 @@
-<h1><?php echo __('Description updates'); ?></h1>
+<h1><?php echo __('Description updates') ?></h1>
+
+<?php echo $form->renderFormTag(url_for(array('module' => 'search', 'action'
=> 'descriptionUpdates'))) ?>
-<div style="width: 99%">
-<div class="table-control">
-<form method="post" action="<?php echo url_for(array('module' => 'search',
'action' => 'descriptionUpdates')) ?>">
<?php echo $form->renderHiddenFields() ?>
- <?php echo $form->className
- ->label('Type')
- ->renderRow() ?>
-
- <div class="form-item">
- <label for="dateStart"><?php echo __('Date range') ?></label>
- <?php echo $form->dateStart->renderError() ?>
- <?php echo $form->dateEnd->renderError() ?>
-
- <?php echo __('%1% to %2%', array(
- '%1%' => $form->dateStart->render(),
- '%2%' => $form->dateEnd->render()
- )) ?>
- </div>
+ <div style="width: 99%">
+
+ <div class="table-control">
+
+ <?php echo $form->className
+ ->label('Type')
+ ->renderRow() ?>
+
+ <div class="form-item">
+ <label for="dateStart"><?php echo __('Date range') ?></label>
+ <?php echo $form->dateStart->renderError() ?>
+ <?php echo $form->dateEnd->renderError() ?>
+
+ <?php echo __('%1% to %2%', array(
+ '%1%' => $form->dateStart->render(),
+ '%2%' => $form->dateEnd->render()
+ )) ?>
+ </div>
+
+ <?php echo $form->dateOf->renderRow() ?>
+
+ <?php echo $form->publicationStatus
+ ->label(__('Publication status <span class="note2">(%1% only)</span>',
array('%1%' => sfConfig::get('app_ui_label_informationobject'))))
+ ->renderRow() ?>
- <?php echo $form->dateOf->renderRow() ?>
+ <input class="form-submit" type="submit" value="<?php echo __('Search')
?>"/>
- <?php echo $form->publicationStatus
- ->label(__('Publication status <span class="note2">(%1% only)</span>',
array('%1%' => sfConfig::get('app_ui_label_informationobject'))))
- ->renderRow() ?>
+ </div>
+
+ </div>
- <input class="form-submit" type="submit" value="<?php echo __('Search') ?>"/>
</form>
-</div>
-</div>
<?php if ($form->isValid()): ?>
-<table class="list">
-<thead>
- <tr>
- <th><?php echo __($nameColumnDisplay); ?></th>
-<?php if('QubitInformationObject' == $className && 0 <
sfConfig::get('app_multi_repository')): ?>
- <th><?php echo __('Repository') ?></th>
-<?php elseif('QubitTerm' == $className): ?>
- <th><?php echo __('Taxonomy'); ?></th>
-<?php endif; ?>
-<?php if ('CREATED_AT' != $form->getValue('dateOf')): ?>
- <th style="width: 110px"><?php echo __('Updated'); ?></th>
-<?php else: ?>
- <th style="width: 110px"><?php echo __('Created'); ?></th>
-<?php endif; ?>
- </tr>
-</thead>
-<tbody>
-<?php foreach ($pager->getResults() as $result): ?>
- <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>">
- <td>
-
- <?php if ('QubitInformationObject' == $className): ?>
-
- <?php $title = render_title($result->getTitle(array('cultureFallback' =>
true))) ?>
- <?php echo link_to($title, array($result, 'module' =>
'informationobject')) ?>
- <?php $status = $result->getPublicationStatus() ?>
- <?php if ($status->statusId == QubitTerm::PUBLICATION_STATUS_DRAFT_ID):
?><span class="note2"><?php echo ' ('.$status->status.')' ?></span><?php endif;
?>
-
- <?php elseif ('QubitActor' == $className): ?>
-
- <?php $name =
render_title($result->getAuthorizedFormOfName(array('cultureFallback' =>
true))) ?>
- <?php echo link_to($name, array($result, 'module' => 'actor')) ?>
-
- <?php elseif ('QubitRepository' == $className): ?>
-
- <?php $name =
render_title($result->getAuthorizedFormOfName(array('cultureFallback' =>
true))) ?>
- <?php echo link_to($name, array($result, 'module' => 'repository')) ?>
-
- <?php elseif ('QubitTerm' == $className): ?>
-
- <?php $name = render_title($result->getName(array('cultureFallback' =>
true))) ?>
- <?php echo link_to($name, array($result, 'module' => 'term')) ?>
-
- <?php endif; ?>
- </td>
-
- <?php if('QubitInformationObject' == $className && 0 <
sfConfig::get('app_multi_repository')): ?>
- <td>
- <?php if(null !== $repository = $result->getRepository(array('inherit'
=> true))): ?>
- <?php echo $repository->getAuthorizedFormOfName(array('cultureFallback'
=> true)) ?>
- <?php endif; ?>
- </td>
- <?php elseif('QubitTerm' == $className): ?>
- <td>
- <?php echo $result->getTaxonomy()->getName(array('cultureFallback' =>
true)) ?>
- </td>
- <?php endif; ?>
- <td>
-<?php if ('CREATED_AT' != $form->getValue('dateOf')): ?>
- <?php echo $result->updatedAt ?>
-<?php else: ?>
- <?php echo $result->createdAt ?>
-<?php endif; ?>
- </td>
-<?php endforeach; ?>
-</tbody>
-</table>
-<?php echo get_partial('default/pager', array('pager' => $pager)) ?>
+ <table class="sticky-enabled">
+ <thead>
+ <tr>
+ <th><?php echo __($nameColumnDisplay); ?></th>
+ <?php if ('QubitInformationObject' == $className && 0 <
sfConfig::get('app_multi_repository')): ?>
+ <th><?php echo __('Repository') ?></th>
+ <?php elseif ('QubitTerm' == $className): ?>
+ <th><?php echo __('Taxonomy'); ?></th>
+ <?php endif; ?>
+ <?php if ('CREATED_AT' != $form->getValue('dateOf')): ?>
+ <th style="width: 110px"><?php echo __('Updated'); ?></th>
+ <?php else: ?>
+ <th style="width: 110px"><?php echo __('Created'); ?></th>
+ <?php endif; ?>
+ </tr>
+ </thead><tbody>
+ <?php foreach ($pager->getResults() as $result): ?>
+
+ <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>">
+
+ <td>
+ <?php if ('QubitInformationObject' == $className): ?>
+ <?php $title =
render_title($result->getTitle(array('cultureFallback' => true))) ?>
+ <?php echo link_to($title, array($result, 'module' =>
'informationobject')) ?>
+ <?php $status = $result->getPublicationStatus() ?>
+ <?php if ($status->statusId ==
QubitTerm::PUBLICATION_STATUS_DRAFT_ID): ?><span class="note2"><?php echo '
('.$status->status.')' ?></span><?php endif; ?>
+ <?php elseif ('QubitActor' == $className): ?>
+ <?php $name =
render_title($result->getAuthorizedFormOfName(array('cultureFallback' =>
true))) ?>
+ <?php echo link_to($name, array($result, 'module' => 'actor')) ?>
+ <?php elseif ('QubitFunction' == $className): ?>
+ <?php $name =
render_title($result->getAuthorizedFormOfName(array('cultureFallback' =>
true))) ?>
+ <?php echo link_to($name, array($result, 'module' =>
'function')) ?>
+ <?php elseif ('QubitRepository' == $className): ?>
+ <?php $name =
render_title($result->getAuthorizedFormOfName(array('cultureFallback' =>
true))) ?>
+ <?php echo link_to($name, array($result, 'module' =>
'repository')) ?>
+ <?php elseif ('QubitTerm' == $className): ?>
+ <?php $name =
render_title($result->getName(array('cultureFallback' => true))) ?>
+ <?php echo link_to($name, array($result, 'module' => 'term')) ?>
+ <?php endif; ?>
+ </td>
+
+ <?php if ('QubitInformationObject' == $className && 0 <
sfConfig::get('app_multi_repository')): ?>
+ <td>
+ <?php if (null !== $repository =
$result->getRepository(array('inherit' => true))): ?>
+ <?php echo
$repository->getAuthorizedFormOfName(array('cultureFallback' => true)) ?>
+ <?php endif; ?>
+ </td>
+ <?php elseif('QubitTerm' == $className): ?>
+ <td><?php echo
$result->getTaxonomy()->getName(array('cultureFallback' => true)) ?></td>
+ <?php endif; ?>
+
+ <td>
+ <?php if ('CREATED_AT' != $form->getValue('dateOf')): ?>
+ <?php echo $result->updatedAt ?>
+ <?php else: ?>
+ <?php echo $result->createdAt ?>
+ <?php endif; ?>
+ </td>
+
+ </tr>
+
+ <?php endforeach; ?>
+ </tbody>
+ </table>
+
+ <?php echo get_partial('default/pager', array('pager' => $pager)) ?>
+
<?php endif; ?>
--
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.com/group/qubit-commits?hl=en.