Author: sevein
Date: Thu Jul 21 17:14:20 2011
New Revision: 9346
Log:
Updates in the rights component template
Modified:
trunk/plugins/qtAccessionPlugin/modules/accession/templates/_right.php
Modified: trunk/plugins/qtAccessionPlugin/modules/accession/templates/_right.php
==============================================================================
--- trunk/plugins/qtAccessionPlugin/modules/accession/templates/_right.php
Thu Jul 21 17:13:32 2011 (r9345)
+++ trunk/plugins/qtAccessionPlugin/modules/accession/templates/_right.php
Thu Jul 21 17:14:20 2011 (r9346)
@@ -1,12 +1,40 @@
-<?php
+<?php
$sf_response->addStylesheet('/vendor/yui/container/assets/skins/sam/container',
'first') ?>
-$sf_response->addStylesheet('/vendor/yui/container/assets/skins/sam/container',
'first');
-
-$sf_response->addJavaScript('/vendor/yui/datasource/datasource-min');
-$sf_response->addJavaScript('/vendor/yui/container/container-min');
-$sf_response->addJavaScript('dialog');
-
-use_helper('Javascript');
+<?php $sf_response->addJavaScript('/vendor/yui/datasource/datasource-min') ?>
+<?php $sf_response->addJavaScript('/vendor/yui/container/container-min') ?>
+<?php $sf_response->addJavaScript('dialog') ?>
+
+<?php use_helper('Javascript') ?>
+
+<div class="section">
+
+ <table id="rightDisplay">
+ <caption>
+ <?php echo __('Right records') ?>
+ </caption><thead>
+ <tr>
+ <th>
+ <?php echo __('Start') ?>
+ </th><th>
+ <?php echo __('End') ?>
+ </th><th style="text-align: center; width: 10%">
+ <?php echo image_tag('delete', array('align' => 'top', 'class' =>
'deleteIcon')) ?>
+ </th>
+ </tr>
+ </thead><tbody>
+ <?php foreach ($isdf->relatedAuthorityRecord as $item): ?>
+ <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>
related_obj_<?php echo $item->id ?>" id="<?php echo url_for(array($item,
'module' => 'right')) ?>">
+ <td>
+ <?php // echo ?>
+ </td><td>
+ <?php // echo $item->description ?>
+ </td><td style="text-align: center">
+ <input class="multiDelete" name="deleteRights[]" type="checkbox"
value="<?php echo url_for(array($item, 'module' => 'right')) ?>"/>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
// Template for new display table rows
$editHtml = image_tag('pencil', array('alt' => 'edit', 'style' => 'align:
top'));
@@ -31,7 +59,7 @@
{
$editButtonJs = <<<editButtonJs
// Add edit button to rows
-jQuery('#relatedRights tr[id]', context)
+jQuery('#rightDisplay tr[id]', context)
.click(function ()
{
dialog.open(this.id);
@@ -48,7 +76,7 @@
{
// Define dialog
var dialog = new QubitDialog('updateRight', {
- 'displayTable': 'relatedRights',
+ 'displayTable': 'rightDisplay',
'newRowTemplate': $rowTemplate });
$editButtonJs
@@ -57,17 +85,19 @@
content
) ?>
-<!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
-<div class="section" id="updateRight">
+ <!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
+ <div class="section" id="updateRight">
+
+ <h3><?php echo __('Right') ?></h3>
- <h3><?php echo __('Right') ?></h3>
+ <?php echo $form->startDate->renderRow() ?>
- <?php echo $form->startDate->renderRow() ?>
+ <?php echo $form->endDate->renderRow() ?>
- <?php echo $form->endDate->renderRow() ?>
+ <?php echo $form->act->renderRow() ?>
- <?php echo $form->act->renderRow() ?>
+ <?php echo $form->basis->renderRow() ?>
- <?php echo $form->basis->renderRow() ?>
+ </div>
</div>
--
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.