From 9f108dd1a969473375341d92a7b1252fa2cedc9a Mon Sep 17 00:00:00 2001 From: mszulecki Date: Thu, 14 Jun 2007 17:09:01 +0000 Subject: Initial import. git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- .../mailadmin/template/templates/_edit_form.php | 93 ++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 data/generator/sfPropelAdmin/mailadmin/template/templates/_edit_form.php (limited to 'data/generator/sfPropelAdmin/mailadmin/template/templates/_edit_form.php') diff --git a/data/generator/sfPropelAdmin/mailadmin/template/templates/_edit_form.php b/data/generator/sfPropelAdmin/mailadmin/template/templates/_edit_form.php new file mode 100644 index 0000000..47c385e --- /dev/null +++ b/data/generator/sfPropelAdmin/mailadmin/template/templates/_edit_form.php @@ -0,0 +1,93 @@ +[?php echo form_tag('getModuleName() ?>/'.$sf_context->getActionName(), array( + 'id' => 'sf_admin_edit_form', + 'name' => 'sf_admin_edit_form', + 'multipart' => true, +getColumnCategories('edit.display') as $category): ?> +getColumns('edit.display', $category) as $name => $column): ?> +getParameterValue('edit.fields.'.$column->getName().'.type')): ?> + 'onsubmit' => 'double_list_submit(); return true;' + + + + +)) ?] + +getPrimaryKey() as $pk): ?> +[?php echo object_input_hidden_tag($getSingularName() ?>, 'getgetPhpName() ?>') ?] + + + +getColumnCategories('edit.display') as $category): ?> + +
+

[?php echo __('') ?]

+ + + +getParameterValue('edit.hide', array()) ?> +getColumns('edit.display', $category) as $name => $column): ?> +getName(), $hides)) continue ?> +isPrimaryKey()) continue ?> +getParameterValue('edit.fields.'.$column->getName().'.credentials') ?> + + [?php if ($sf_user->hasCredential()): ?] + +getParameterValue('edit.fields.'.$column->getName().'.only_for'); if($only_for): ?> +[?php if($sf_context->getActionName()==''): ?] + +
+ [?php echo label_for('getParameterValue("edit.fields.".$column->getName().".label_for", $this->getSingularName()."[".$column->getName()."]") ?>', __($labels['getSingularName() ?>{getName() ?>}']), 'isNotNull()): ?>class="required" ') ?] +
+ [?php if ($sf_request->hasError('getSingularName() ?>{getName() ?>}')): ?] + [?php echo form_error('getSingularName() ?>{getName() ?>}', array('class' => 'form-error-msg')) ?] + [?php endif; ?] + [?php $value = getColumnEditTag($column); ?>; echo $value ? $value : ' ' ?] + getHelp($column, 'edit') ?> +
+
+ + +[?php endif; ?] + + + + [?php endif; ?] + + + +
+ + +[?php include_partial('edit_actions', array('getSingularName() ?>' => $getSingularName() ?>)) ?] + + + + -- cgit v1.1-32-gdbae