Skip to content

Instantly share code, notes, and snippets.

View bshaffer's full-sized avatar

Brent Shaffer bshaffer

View GitHub Profile
@bshaffer
bshaffer / _form.php
Created April 13, 2011 05:39
(expanded from 3 partials)
<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<div class="sf_admin_form">
<?php echo form_tag_for($form, '@sf_guard_user_sf_guard_user_old') ?>
<?php echo $form->renderHiddenFields(false) ?>
<?php if ($form->hasGlobalErrors()): ?>
<?php echo $form->renderGlobalErrors() ?>
<?php endif; ?>
<?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_id">
<?php if ('id' == $sort[0]): ?>
<?php echo link_to(__('Id', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=id&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Id', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=id&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<tr>
<th class="batch checkboxes"><input type="checkbox" class="checkbox" /></th>
<th>
<?php echo link_to('Username', '@sf_guard_user', array('query_string' => 'sort=username&sort_direction='.$helper->toggleSortDirection('username'), 'class' => $helper->getSortDirection('username'))) ?>
</th>
<th>
<?php echo link_to('First Name', '@sf_guard_user', array('query_string' => 'sort=first_name&sort_direction='.$helper->toggleSortDirection('first_name'), 'class' => $helper->getSortDirection('first_name'))) ?>
</th>
<tr id="sf_guard_user_<?php echo $sf_guard_user['id'] ?>" class="<?php echo $odd ?>">
<td class="checkboxes">
<input type="checkbox" name="ids[]" value="<?php echo $sf_guard_user->getPrimaryKey() ?>" class="checkbox" />
</td>
<td class="=username">
<?php echo link_to($sf_guard_user->getUsername(), 'sf_guard_user_edit', $sf_guard_user) ?>
</td>
<td class="first_name">
<?php
require_once(dirname(__FILE__).'/../lib/BaseSf_guard_user_oldGeneratorConfiguration.class.php');
require_once(dirname(__FILE__).'/../lib/BaseSf_guard_user_oldGeneratorHelper.class.php');
/**
* sf_guard_user_old actions.
*
* @package ##PROJECT_NAME##
* @subpackage sf_guard_user_old
<?php
/**
* sf_guard_user actions.
*
* @package ##PROJECT_NAME##
* @subpackage sf_guard_user
* @author ##AUTHOR_NAME##
* @version SVN: $Id: actions.class.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
*/
diff --git a/lib/vendor/OM_L10n/data/src/strings/strings.en_US.xml b/lib/vendor/OM_L10n/data/src/strings/strings.en_US.xml
index d4a43e8..6a23145 100644
--- a/lib/vendor/OM_L10n/data/src/strings/strings.en_US.xml
+++ b/lib/vendor/OM_L10n/data/src/strings/strings.en_US.xml
@@ -4,11 +4,11 @@
<propset>
<prop>
<propkey>String Count</propkey>
-<propval>469</propval>
+<propval>813</propval>
@bshaffer
bshaffer / BaseSf_guard_user_oldGeneratorConfiguration.class.php
Created April 9, 2011 05:08
from BaseSf_guard_user_oldGeneratorConfiguration...
<?php
/**
* sf_guard_user_old module configuration.
*
* @package ##PROJECT_NAME##
* @subpackage sf_guard_user_old
* @author ##AUTHOR_NAME##
* @version SVN: $Id: configuration.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
*/
@bshaffer
bshaffer / actions
Created April 9, 2011 05:07
Old Admin: from actions.class.php...
<?php
abstract class autoSf_guard_user_oldActions extends sfActions
{
// ....
protected function processForm(sfWebRequest $request, sfForm $form)
{
$form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName()));
if ($form->isValid())
{
@bshaffer
bshaffer / _list_th_tabular.php
Created April 9, 2011 05:04
_list_th_tabular.php
<?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_id">
<?php if ('id' == $sort[0]): ?>
<?php echo link_to(__('Id', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=id&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Id', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=id&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>