Author: jablko
Date: Tue Oct 19 16:05:37 2010
New Revision: 8312

Log:
Indentation

Modified:
   trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php

Modified: trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php
==============================================================================
--- trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php        
Tue Oct 19 16:05:18 2010        (r8311)
+++ trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php        
Tue Oct 19 16:05:37 2010        (r8312)
@@ -1,82 +1,82 @@
-    <div class="section">
+<div class="section">
 
-      <h3><?php echo __('Date(s)') ?> <span class="form-required" title="<?php 
echo __('This is a mandatory element.') ?>">*</span></h3>
+  <h3><?php echo __('Date(s)') ?> <span class="form-required" title="<?php 
echo __('This is a mandatory element.') ?>">*</span></h3>
 
-      <table class="inline">
-        <thead>
-          <tr>
-            <th style="width: 25%">
-              <?php echo __('Type') ?>
-            </th><th style="width: 20%">
-              <?php echo __('Date') ?>
-            </th><th style="width: 20%">
-              <?php echo __('End date') ?>
-            </th><th style="width: 30%">
-              <?php echo __('Date display') ?>
-            </th><th style="width: 5%">
-              <?php echo image_tag('delete', array('align' => 'top', 'class' 
=> 'deleteIcon')) ?>
-            </th>
-          </tr> 
-        </thead><tbody>
-
-          <?php foreach ($resource->getDates() as $i => $eventDate): ?>
-            <tr class="<?php echo 'related_obj_'.$eventDate->id ?>">
-              <td>
-                <div class="animateNicely">
-                  <input type="hidden" name="updateEvents[<?php echo $i 
?>][id]" value="<?php echo $eventDate->id ?>" />
-                  <?php if (in_array($eventDate->typeId, 
sfIsadPlugin::eventTypes())): ?>
-                    <select name="updateEvents[<?php echo $i ?>][typeId]">
-                      <?php foreach (sfIsadPlugin::eventTypes() as $item): ?>
-                        <option value="<?php echo $item->id ?>"<?php if 
($eventDate->typeId == $item->id): ?> selected="selected"<?php endif; ?>><?php 
echo $item->__toString() ?></option>
-                      <?php endforeach; ?>
-                    </select>
-                  <?php else: ?>
-                    <select name="updateEvents[<?php echo $i ?>][typeId]" 
readonly="readonly">
-                      <option value="<?php echo $eventDate->type->id ?>" 
selected="selected"><?php echo $eventDate->type->__toString() ?></option>
-                    </select>
-                  <?php endif; ?>
-                </div>
-              </td><td>
-                <div class="animateNicely">
-                  <input name="updateEvents[<?php echo $i ?>][startDate]'" 
value="<?php echo Qubit::renderDate($eventDate->startDate) ?>"/>
-                </div>
-              </td><td>
-                <div class="animateNicely">
-                  <input name="updateEvents[<?php echo $i ?>][endDate]'" 
value="<?php echo Qubit::renderDate($eventDate->endDate) ?>"/>
-                </div>
-              </td><td>
-                <div class="animateNicely">
-                  <input name="updateEvents[<?php echo $i ?>][dateDisplay]'" 
value="<?php echo 
esc_entities($eventDate->getDateDisplay(array('cultureFallback' => true))) ?>"/>
-                </div>
-              </td><td style="text-align: right">
-                <div class="animateNicely">
-                  <input type="checkbox" name="deleteEvents[<?php echo 
$eventDate->id ?>]" value="delete" class="multiDelete" />
-                </div>
-              </td>
-            </tr>
-          <?php endforeach; ?>
-
-          <tr>
-            <td>
-              <div class="animateNicely">
-                <?php echo $form['updateEvents[new][typeId]'] ?>
-              </div>
-            </td><td>
-              <?php echo $form['updateEvents[new][startDate]'] ?>
-            </td><td>
-              <?php echo $form['updateEvents[new][endDate]'] ?>
-            </td><td>
-              <?php echo $form['updateEvents[new][dateDisplay]'] ?>
-            </td><td>
-              &nbsp;
-            </td>
-          </tr>
-
-        </tbody>
-      </table>
-
-      <div class="description">
-        <?php echo __('Identify and record the date(s) of the unit of 
description. Identify the type of date given. Record as a single date or a 
range of dates as appropriate. Use YYYY-MM-DD format for the <em>Date</em> 
field. The <em>End Date</em> field can be used to indicate a date range. The 
<em>Date Display</em> field can be used to enter free-text date information.') 
?>
-      </div>
+  <table class="inline">
+    <thead>
+      <tr>
+        <th style="width: 25%">
+          <?php echo __('Type') ?>
+        </th><th style="width: 20%">
+          <?php echo __('Date') ?>
+        </th><th style="width: 20%">
+          <?php echo __('End date') ?>
+        </th><th style="width: 30%">
+          <?php echo __('Date display') ?>
+        </th><th style="width: 5%">
+          <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
+        </th>
+      </tr> 
+    </thead><tbody>
+
+      <?php foreach ($resource->getDates() as $i => $eventDate): ?>
+        <tr class="<?php echo 'related_obj_'.$eventDate->id ?>">
+          <td>
+            <div class="animateNicely">
+              <input type="hidden" name="updateEvents[<?php echo $i ?>][id]" 
value="<?php echo $eventDate->id ?>" />
+              <?php if (in_array($eventDate->typeId, 
sfIsadPlugin::eventTypes())): ?>
+                <select name="updateEvents[<?php echo $i ?>][typeId]">
+                  <?php foreach (sfIsadPlugin::eventTypes() as $item): ?>
+                    <option value="<?php echo $item->id ?>"<?php if 
($eventDate->typeId == $item->id): ?> selected="selected"<?php endif; ?>><?php 
echo $item->__toString() ?></option>
+                  <?php endforeach; ?>
+                </select>
+              <?php else: ?>
+                <select name="updateEvents[<?php echo $i ?>][typeId]" 
readonly="readonly">
+                  <option value="<?php echo $eventDate->type->id ?>" 
selected="selected"><?php echo $eventDate->type->__toString() ?></option>
+                </select>
+              <?php endif; ?>
+            </div>
+          </td><td>
+            <div class="animateNicely">
+              <input name="updateEvents[<?php echo $i ?>][startDate]'" 
value="<?php echo Qubit::renderDate($eventDate->startDate) ?>"/>
+            </div>
+          </td><td>
+            <div class="animateNicely">
+              <input name="updateEvents[<?php echo $i ?>][endDate]'" 
value="<?php echo Qubit::renderDate($eventDate->endDate) ?>"/>
+            </div>
+          </td><td>
+            <div class="animateNicely">
+              <input name="updateEvents[<?php echo $i ?>][dateDisplay]'" 
value="<?php echo 
esc_entities($eventDate->getDateDisplay(array('cultureFallback' => true))) ?>"/>
+            </div>
+          </td><td style="text-align: right">
+            <div class="animateNicely">
+              <input type="checkbox" name="deleteEvents[<?php echo 
$eventDate->id ?>]" value="delete" class="multiDelete" />
+            </div>
+          </td>
+        </tr>
+      <?php endforeach; ?>
+
+      <tr>
+        <td>
+          <div class="animateNicely">
+            <?php echo $form['updateEvents[new][typeId]'] ?>
+          </div>
+        </td><td>
+          <?php echo $form['updateEvents[new][startDate]'] ?>
+        </td><td>
+          <?php echo $form['updateEvents[new][endDate]'] ?>
+        </td><td>
+          <?php echo $form['updateEvents[new][dateDisplay]'] ?>
+        </td><td>
+          &nbsp;
+        </td>
+      </tr>
+
+    </tbody>
+  </table>
+
+  <div class="description">
+    <?php echo __('Identify and record the date(s) of the unit of description. 
Identify the type of date given. Record as a single date or a range of dates as 
appropriate. Use YYYY-MM-DD format for the <em>Date</em> field. The <em>End 
Date</em> field can be used to indicate a date range. The <em>Date Display</em> 
field can be used to enter free-text date information.') ?>
+  </div>
 
-    </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.

Reply via email to