Author: jablko
Date: Sun Oct 24 13:14:28 2010
New Revision: 8425
Log:
Cosmetic changes
Modified:
trunk/apps/qubit/modules/function/templates/browseSuccess.php
trunk/apps/qubit/modules/function/templates/deleteSuccess.php
trunk/apps/qubit/modules/function/templates/listSuccess.php
Modified: trunk/apps/qubit/modules/function/templates/browseSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/function/templates/browseSuccess.php Sun Oct
24 12:58:20 2010 (r8424)
+++ trunk/apps/qubit/modules/function/templates/browseSuccess.php Sun Oct
24 13:14:28 2010 (r8425)
@@ -72,6 +72,6 @@
<div class="search">
<form action="<?php echo url_for(array('module' => 'function', 'action' =>
'list')) ?>">
<input name="subquery" value="<?php echo
esc_entities($sf_request->subquery) ?>"/>
- <input class="form-submit" type="submit" value="<?php echo __('Search
Function') ?>"/>
+ <input class="form-submit" type="submit" value="<?php echo __('Search
function') ?>"/>
</form>
</div>
Modified: trunk/apps/qubit/modules/function/templates/deleteSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/function/templates/deleteSuccess.php Sun Oct
24 12:58:20 2010 (r8424)
+++ trunk/apps/qubit/modules/function/templates/deleteSuccess.php Sun Oct
24 13:14:28 2010 (r8425)
@@ -1,6 +1,6 @@
-<h1><?php echo __('Are you sure you want to delete <em>"%1%"</em>?',
array('%1%' => render_title($func))) ?></h1>
+<h1><?php echo __('Are you sure you want to delete <em>"%1%"</em>?',
array('%1%' => render_title($item))) ?></h1>
-<?php echo $form->renderFormTag(url_for(array($func, 'module' => 'function',
'action' => 'delete')), array('method' => 'delete')) ?>
+<?php echo $form->renderFormTag(url_for(array($item, 'module' => 'function',
'action' => 'delete')), array('method' => 'delete')) ?>
<div class="actions section">
@@ -8,7 +8,7 @@
<div class="content">
<ul class="clearfix links">
- <li><?php echo link_to(__('Cancel'), array($func, 'module' =>
'function')) ?></li>
+ <li><?php echo link_to(__('Cancel'), array($item, 'module' =>
'function')) ?></li>
<li><input class="form-submit" type="submit" value="<?php echo
__('Confirm') ?>"/></li>
</ul>
</div>
Modified: trunk/apps/qubit/modules/function/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/function/templates/listSuccess.php Sun Oct 24
12:58:20 2010 (r8424)
+++ trunk/apps/qubit/modules/function/templates/listSuccess.php Sun Oct 24
13:14:28 2010 (r8425)
@@ -1,34 +1,29 @@
<h1><?php echo __('List %1%', array('%1%' =>
sfConfig::get('app_ui_label_function'))) ?></h1>
<table class="sticky-enabled">
-<thead>
- <tr>
- <th>
- <?php echo __('Name') ?>
- <?php if (QubitAcl::check(new QubitFunction, 'create')): ?>
- <span class="th-link"><?php echo link_to(__('Add new'), array('module'
=> 'function', 'action' => 'create')) ?></span>
- <?php endif; ?>
- </th>
- <th><?php echo __('Updated') ?></th>
- </tr>
-</thead>
-
-<tbody>
-<?php foreach ($pager->getResults() as $func): ?>
- <tr>
- <td>
- <?php if (QubitAcl::check($func, 'update')): ?>
- <?php echo
link_to(render_title($func->getAuthorizedFormOfName(array('cultureFallback' =>
true))), array($func, 'module' => 'function')) ?>
- <?php else: ?>
- <?php echo
link_to(render_title($func->getAuthorizedFormOfName(array('cultureFallback' =>
true))), array($func, 'module' => 'function')) ?>
- <?php endif; ?>
- </td>
- <td>
- <?php echo $func->updatedAt ?>
- </td>
- </tr>
-<?php endforeach; ?>
-</tbody>
+ <thead>
+ <tr>
+ <th>
+ <?php echo __('Name') ?>
+ </th><th>
+ <?php echo __('Updated') ?>
+ </th>
+ </tr>
+ </thead><tbody>
+ <?php foreach ($pager->getResults() as $item): ?>
+ <tr>
+ <td>
+ <?php if (QubitAcl::check($item, 'update')): ?>
+ <?php echo
link_to(render_title($item->getAuthorizedFormOfName(array('cultureFallback' =>
true))), array($item, 'module' => 'function')) ?>
+ <?php else: ?>
+ <?php echo
link_to(render_title($item->getAuthorizedFormOfName(array('cultureFallback' =>
true))), array($item, 'module' => 'function')) ?>
+ <?php endif; ?>
+ </td><td>
+ <?php echo format_date($item->updatedAt, 'f') ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
</table>
<?php echo get_partial('default/pager', array('pager' => $pager)) ?>
@@ -36,6 +31,6 @@
<div class="search">
<form action="<?php echo url_for(array('module' => 'function', 'action' =>
'list')) ?>">
<input name="subquery" value="<?php echo
esc_entities($sf_request->subquery) ?>"/>
- <input class="form-submit" type="submit" value="<?php echo __('Search
Function') ?>"/>
+ <input class="form-submit" type="submit" value="<?php echo __('Search
function') ?>"/>
</form>
</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.