示例#1
0
文件: add.php 项目: ZerGabriel/cms-1
echo Form::select('type', DataSource_Hybrid_Field::types(), Arr::get($post_data, 'type'), array('id' => 'select-field-type'));
?>
			</div>
		</div>
	</div>
		
	<div class="panel-heading">
		<span class="panel-title"><?php 
echo __('Field settings');
?>
</span>
	</div>
	<div class="panel-body">
		<div id="field-options">
		<?php 
foreach (DataSource_Hybrid_Field::get_empty_fields() as $type => $field) {
    ?>
		<fieldset id="f-<?php 
    echo $type;
    ?>
" disabled="disabled">
		
		<?php 
    try {
        $field->set($post_data);
        echo View::factory('datasource/hybrid/field/edit/' . $type, array('field' => $field, 'sections' => $sections));
    } catch (Exception $exc) {
    }
    ?>
			<hr class="panel-wide" />