Пример #1
0
<?php

echo Form::open(Request::current()->uri(), array('class' => 'form-horizontal panel'));
?>
	<?php 
echo Form::hidden('ds_id', $ds->id());
?>
	
	<?php 
echo View::factory('datasource/section/information_form', array('users' => $users, 'ds' => $ds));
?>
	
	<div class="form-actions panel-footer">
		<?php 
echo UI::actions(NULL, Datasource_Section::uri());
?>
	</div>
<?php 
echo Form::close();
Пример #2
0
		<?php 
    echo UI::button(__('File manager'), array('class' => 'btn-filemanager btn-flat btn-info btn-sm', 'data-el' => 'textarea_content', 'icon' => UI::icon('folder-open'), 'data-hotkeys' => 'ctrl+m'));
    ?>
		</div>
		<?php 
}
?>
	</div>
	<?php 
echo Form::textarea('content', $layout->content, array('class' => 'form-control', 'id' => 'textarea_content', 'data-height' => 600, 'data-readonly' => (!$layout->is_exists() or $layout->is_exists() and $layout->is_writable()) ? 'off' : 'on'));
?>

	<?php 
if ($layout->is_exists() and !$layout->is_writable()) {
    ?>
	<div class="panel-default alert alert-danger alert-dark no-margin-b">
		<?php 
    echo __('File is not writable');
    ?>
	</div>
	<?php 
} elseif (ACL::check('layout.edit')) {
    ?>
	<div class="form-actions panel-footer">
		<?php 
    echo UI::actions($page_name);
    ?>
	</div>
	<?php 
}
echo Form::close();
Пример #3
0
<?php

echo Form::open(NULL, array('class' => Form::HORIZONTAL));
?>
	<?php 
echo Form::hidden('token', Security::token());
?>
	<div class="panel">
		<?php 
echo $content;
?>
		<div class="form-actions panel-footer">
			<?php 
echo UI::actions('plugins');
?>
		</div>
	</div>
<?php 
echo Form::close();
Пример #4
0
    ?>
<div class="panel-body">
	<?php 
    foreach ($fields as $key => $field) {
        ?>
	<?php 
        echo $field->backend_template($document);
        ?>
	<?php 
    }
    ?>
</div>
<?php 
}
?>

<?php 
if ($document->has_access_change()) {
    ?>
<div class="form-actions panel-footer">
	<?php 
    echo UI::actions(TRUE, Route::get('datasources')->uri(array('controller' => 'data', 'directory' => 'datasources')) . URL::query(array('ds_id' => $datasource->id()), FALSE));
    ?>
</div>
<?php 
    echo Form::close();
} else {
    ?>
</div>
<?php 
}
Пример #5
0
} catch (Exception $e) {
}
?>
		
		<hr class="panel-wide" />
		
		<?php 
if ($field->is_required()) {
    ?>
		<?php 
    echo View::factory('datasource/hybrid/field/edit/system_isreq', array('field' => $field, 'post_data' => $post_data));
    ?>
		<?php 
}
?>

		<?php 
echo View::factory('datasource/hybrid/field/edit/system_hint', array('field' => $field, 'post_data' => $post_data));
?>

		<?php 
echo View::factory('datasource/hybrid/field/edit/system_position', array('field' => $field, 'post_data' => $post_data));
?>
	</div>
	<div class="panel-footer form-actions">
		<?php 
echo UI::actions(NULL, Route::get('datasources')->uri(array('controller' => 'section', 'directory' => 'datasources', 'action' => 'edit', 'id' => $ds->id())));
?>
	</div>
<?php 
echo Form::close();
Пример #6
0
		<div class="form-group">
			<label class="control-label col-md-3" for="search_index_fields"><?php 
echo __('Index document fields');
?>
</label>
			<div class="col-md-9">
				<?php 
echo Form::select('search_index_fields[]', $ds->record_fields_array(), (array) $ds->search_index_fields);
?>
			</div>
		</div>
		
		<div class="form-group">
			<label class="control-label col-md-3" for="search_index_doc_id_fields"><?php 
echo __('Document ID fields');
?>
</label>
			<div class="col-md-9">
				<?php 
echo Form::select('search_index_doc_id_fields[]', $ds->record_fields_array(), (array) $ds->search_index_doc_id_fields);
?>
			</div>
		</div>
	</div>
	<div class="form-actions panel-footer">
		<?php 
echo UI::actions(NULL, Route::get('datasources')->uri(array('controller' => 'data', 'directory' => 'datasources')));
?>
	</div>
<?php 
echo Form::close();