Beispiel #1
0
    ?>
			<?php 
    echo Form::hidden('link_id_max', $posted_links ? max(array_keys($posted_links)) : 0, array('id' => 'link_id_max'));
    ?>
		</div>
	</div>
<?php 
}
if (\Config::get('news.tags.isEnabled')) {
    ?>
	<?php 
    echo form_select($val, 'tags', isset($tags) ? $tags : array(), 8, null, true, true);
}
?>
	<?php 
echo form_input_datetime($val, 'published_at_time', isset($news) ? check_and_get_datatime($news->published_at, 'datetime_minutes') : '');
if (\Config::get('news.form.isSecure.isEnabled')) {
    ?>
	<?php 
    echo form_radio($val, 'is_secure', isset($news) ? $news->is_secure : 0, 2, 'inline');
}
?>
	<?php 
echo form_input($val, 'slug', isset($news) ? $news->slug : \News\Site_Util::get_slug(), $col_sm_size);
if (empty($news->is_published)) {
    ?>
	<?php 
    echo form_button('form.draft', 'submit', 'is_draft', array('value' => 1, 'id' => 'form_draft', 'class' => 'btn btn-default btn-primary submit_btn'));
}
if (!empty($is_edit)) {
    ?>
Beispiel #2
0
$label_col_size = 3;
?>
<div class="well">
<?php 
echo form_open(true);
?>
	<?php 
echo form_input($val, 'name', isset($album_image) ? $album_image->name : '', 12, $label_col_size);
if (!\Album\Site_Util::check_album_disabled_to_update($album_image->album->foreign_table, true)) {
    ?>
	<?php 
    echo form_public_flag($val, isset($album_image) ? $album_image->public_flag : null, false, $label_col_size);
    ?>
	<?php 
    echo Form::hidden('original_public_flag', isset($album_image) ? $album_image->public_flag : null);
}
?>
	<?php 
echo form_input_datetime($val, 'shot_at_time', isset($album_image) ? check_and_get_datatime($album_image->shot_at, 'datetime_minutes') : '', null, 6, $label_col_size);
if (is_enabled_map('image/edit', 'album')) {
    ?>
	<?php 
    echo form_map($val, null, $location, $label_col_size);
}
?>
	<?php 
echo form_button('form.do_edit', 'submit', null, null, $label_col_size);
?>
</div><!-- well -->