Changeset 8300
- Timestamp:
- 04/04/08 19:17:10 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/__edit_form_ajax_inner.php
r8278 r8300 29 29 $hides = $this->getParameterValue($edit_key.'.hide', array()); 30 30 31 $width = $this->getParameterValue('edit.width', 400); 32 31 33 $groupedColumns = $this->getColumnsGrouped($edit_key.'.display', true); 32 34 $pkn = $groupedColumns['pk']->getName(); 33 // $pkn = $this->getPrimaryKeyAdminColumn()->getName();34 35 35 36 if (!isset($pageName)) … … 88 89 layoutConfig: { 89 90 }, 90 91 width: 400, 91 92 <?php if ($width != 'fill'): ?> 93 width: <?php echo $width ?>, 94 <?php endif; ?> 95 92 96 // defaults: {width: 230}, 93 97 reader: ds_<?php echo $edit_name ?>.reader, … … 172 176 $relatedTableFKs = substr($column->key, 0, $last); 173 177 $fieldName = str_replace('/', $tableDelimiter, $column->key); 178 179 $width = 175; 180 $params = $this->getParameterValue('list.fields.'.$column->key.'.params'); 181 $params = is_array($params) ? $params : sfToolkit::stringToArray($params); 182 if (isset($params['width'])) $width = $params['width']; 183 174 184 $options = array('name' => strtolower($tableName).'['.$fieldName.']', 175 'width' => 175); 185 'width' => $width); 186 if (isset($params['height'])) $options['height'] = $params['height']; 176 187 $columnDef = $this->getColumnAjaxDefinition($column, $options, 'edit', $groupedColumns); 177 188 $cls=''; if (isset($columnDef['options']['allowBlank']) && ($columnDef['options']['allowBlank']===false)) $cls = ' class="required"'; 178 189 179 180 190 $comma = ', '; 181 191 if ($first)