Exemplo n.º 1
0
<?php

$class = 'alert alert-success';
?>
<div class="<?php 
echo $class;
?>
">
<?php 
echo ci_anchor(array($this->conf['path'], 'delete', $e->id), '<i class="fa fa-times text-danger"></i>', 'class="close hc-confirm" title="' . lang('common_delete') . '"');
echo ci_anchor(array($this->conf['path'], 'edit', $e->id), '<strong>' . $e->title() . '</strong>');
?>
</div>
Exemplo n.º 2
0
<?php

$targets = array('timeoff' => 'admin/timeoffs/edit', 'shift' => 'admin/shifts/edit');
?>
<ul class="list-unstyled">
	<?php 
foreach ($conflicts as $c) {
    ?>
		<li class="alert alert-danger">
			<?php 
    echo ci_anchor(array($targets[$c->my_class()], $c->id), $c->title(TRUE));
    ?>
		</li>
	<?php 
}
?>
</ul>
Exemplo n.º 3
0
    echo Hc_html::wrap_input($fields['user']['label'], $object->user->title(TRUE));
} else {
    ?>
	<?php 
    echo Hc_html::wrap_input($fields['user']['label'], lang('shift_not_assigned'));
}
?>

<?php 
$btns = array();
$btns[] = form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('common_save'));
if ($object->status == SHIFT_MODEL::STATUS_DRAFT) {
    $btns[] = ci_anchor(array($this->conf['path'], 'save', $object->id, 'status', SHIFT_MODEL::STATUS_ACTIVE), '<i class="fa fa-check"></i> ' . lang('shift_publish'), 'class="btn btn-success"');
}
if (!($group_count > 1 && $this->hc_modules->exists('shift_groups'))) {
    $btns[] = ci_anchor(array($this->conf['path'], 'delete', $object->id), lang('common_delete'), 'class="btn btn-danger btn-sm hc-confirm"');
}
$btns = join('&nbsp;', $btns);
echo Hc_html::wrap_input('', $btns);
echo form_close();
?>

<script language="JavaScript">
jQuery('.hc-shift-templates').on('click', function(e)
{
	jQuery(this).closest('form').find('[name=start]').val( jQuery(this).data('start') );
	jQuery(this).closest('form').find('[name=end]').val( jQuery(this).data('end') );
	jQuery(this).closest('.dropdown').find('.dropdown-toggle').dropdown('toggle');
	return false;
});
</script>
Exemplo n.º 4
0
} else {
    $tab_content['edit'][] = Hc_html::wrap_input(lang('time_dates'), array($this->hc_form->build_input($fields['date']), ' - ', $this->hc_form->build_input($fields['date_end'])));
}
$tab_content['edit'][] = Hc_html::wrap_input($fields['user']['label'], $this->hc_form->build_input($fields['user']));
$tab_content['edit'][] = Hc_html::wrap_input('', form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('common_save')) . '&nbsp;' . ci_anchor(array($this->conf['path'], 'delete', $object->id), lang('common_delete'), 'class="btn btn-danger btn-sm hc-confirm"'));
$tab_content['edit'][] = form_close();
$tab_content['edit'] = join("\n", $tab_content['edit']);
/* CONFLICTS */
if ($conflicts) {
    $tabs['conflicts'] = '<i class="fa fa-exclamation-circle text-danger"></i> ' . lang('shift_conflicts');
    $targets = array('timeoff' => 'admin/timeoffs/edit', 'shift' => 'admin/shifts/edit');
    $tab_content['conflicts'] = array();
    $tab_content['conflicts'][] = '<ul class="list-unstyled">';
    foreach ($conflicts as $c) {
        $tab_content['conflicts'][] = '<li class="alert alert-danger">';
        $tab_content['conflicts'][] = ci_anchor(array($targets[$c->my_class()], $c->id), $c->title(TRUE));
        $tab_content['conflicts'][] = '</li>';
    }
    $tab_content['conflicts'][] = '</ul>';
    $tab_content['conflicts'] = join("\n", $tab_content['conflicts']);
} else {
    $tabs['_conflicts'] = '<i class="fa fa-check text-success"></i> ' . lang('shift_no_conflicts');
}
/* NOTES */
if ($this->hc_modules->exists('notes')) {
    $notes_count = $object->note->count();
    $tabs['notes'] = '<i class="fa fa-comment-o"></i> ' . lang('common_notes') . ' [' . $notes_count . ']';
    $tab_content['notes'] = array('content' => Modules::run('notes/admin/index', 'timeoff', $object->id), 'attr' => array('class' => 'hc-target', 'data-src' => ci_site_url(array('notes/admin/index', 'timeoff', $object->id))));
}
?>
Exemplo n.º 5
0
<ul class="nav nav-list">
<li><?php 
echo ci_anchor('auth/password', '<i class="fa fa-lock"></i>' . ' ' . lang('common_change_password'));
?>
</li>
</ul>
Exemplo n.º 6
0
					<?php 
    }
    ?>
				</div>
			</div>
		<?php 
}
?>

		<div class="controls">
			<?php 
echo form_button(array('type' => 'submit', 'name' => 'submit', 'class' => 'btn btn-primary'), lang('common_save'));
?>

			<?php 
echo ci_anchor(array($this->conf['path'], 'delete', $object['id']), lang('common_delete'), 'class="btn btn-danger hc-confirm"');
?>
		</div>
		<?php 
echo form_close();
?>
	</div>

	<div class="span6" style="margin-bottom: 0.5em;">

		<?php 
if ($geocoded == 1) {
    ?>

			<div class="alert alert-success">
				<?php 
Exemplo n.º 7
0
?>
">
			<?php 
echo $e->name;
?>
		</a>
	</li>

	<li class="text-muted">
		id: <?php 
echo $e->id;
?>
	</li>

	<li>
		<div class="pull-left">
			<?php 
echo ci_anchor(array($this->conf['path'], 'up', $e->id), '<i class="fa fa-arrow-left"> </i>', 'title="' . lang('common_move_up') . '"');
?>
		</div>

		<div class="pull-right">
			<?php 
echo ci_anchor(array($this->conf['path'], 'down', $e->id), '<i class="fa fa-arrow-right"></i>', 'title="' . lang('common_move_down') . '"');
?>
		</div>

		<div class="clearfix"></div>
	</li>
</ul>
</div>
Exemplo n.º 8
0
<?php 
}
?>

<?php 
$products = $this->app_conf->get('products');
if ($products) {
    ?>
	<div class="control-group<?php 
    echo $class;
    ?>
">
		<label class="control-label"></label>
		<div class="controls">
			<?php 
    echo ci_anchor('admin/conf/resetproducts', 'Reset Products');
    ?>
		</div>
	</div>
<?php 
}
?>

<div class="controls">
<?php 
echo form_submit(array('name' => 'submit', 'class' => 'btn btn-primary'), lang('common_save'));
?>
</div>

<?php 
echo form_close();
Exemplo n.º 9
0
<?php

$CI =& ci_get_instance();
$remote_integration = $CI->remote_integration();
?>

<?php 
echo form_open(join('/', array($this->conf['path'], 'save', $object->id)), array('class' => 'form-horizontal form-condensed'));
?>

<?php 
foreach ($fields as $f) {
    ?>
	<?php 
    echo Hc_html::wrap_input($f['label'], $this->hc_form->build_input($f));
}
?>

<?php 
$actions = array();
$actions[] = form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('common_save'));
if ($this->auth->check() != $object->id) {
    $archive_title = $object->active ? lang('user_archive') : lang('user_restore');
    $archive_btn = $object->active ? 'btn-warning' : 'btn-success';
    $actions[] = ci_anchor(array($this->conf['path'], 'disable', $object->id), $archive_title, 'class="btn btn-sm hc-confirm ' . $archive_btn . '"');
}
$actions = join('&nbsp;', $actions);
echo Hc_html::wrap_input('', $actions);
echo form_close();
Exemplo n.º 10
0
<html>
<body>
	<h1>Activate account for <?php 
echo $identity;
?>
</h1>
	<p>Please click this link to <?php 
echo ci_anchor('auth/activate/' . $id . '/' . $activation, 'Activate Your Account');
?>
.</p>
</body>
</html>
Exemplo n.º 11
0
<?php

$menu = array('index' => ci_anchor(array($this->conf['path']), '<i class="fa fa-list"></i>' . ' ' . lang('common_view')), 'add' => ci_anchor(array($this->conf['path'], 'add'), '<i class="fa fa-plus-square-o"></i>' . ' ' . lang('common_add')));
require NTS_SYSTEM_APPPATH . 'views/_boilerplate/_print_menu.php';
Exemplo n.º 12
0
            $link_slug = join('/', $link_slug);
        }
        $this_disabled = FALSE;
        reset($disabled_panels);
        foreach ($disabled_panels as $dp) {
            if (substr($link_slug, 0, strlen($dp)) == $dp) {
                $this_disabled = TRUE;
                break;
            }
        }
        if ($this_disabled) {
            continue;
        }
        $link_title = $v[1];
        list($link_title, $link_icon) = Hc_lib::parse_icon($link_title);
        $link_view = ci_anchor($link_slug, $link_icon . $link_title);
    } else {
        $link_view = $v;
    }
    ?>

		<?php 
    if (substr($k, 0, strlen('_header')) == '_header') {
        ?>
			<li class="dropdown-header">
		<?php 
    } elseif (substr($k, 0, strlen('_divider')) == '_divider') {
        ?>
			<li class="divider">
		<?php 
    } elseif ($k == $current_view) {
Exemplo n.º 13
0
<?php

$menu = array('list' => ci_anchor(array($this->conf['path']), '<i class="fa fa-list"></i>' . ' ' . lang('my_schedule')));
require NTS_SYSTEM_APPPATH . 'views/_boilerplate/_print_menu.php';
Exemplo n.º 14
0
<?php

$menu = array('index' => ci_anchor(array('admin/schedules/index/all', $object->date), '<i class="fa fa-calendar"></i>' . ' ' . lang('schedules')));
require NTS_SYSTEM_APPPATH . 'views/_boilerplate/_print_menu.php';
Exemplo n.º 15
0
<html>
<body>
	<h1>Reset Password for <?php 
echo $identity;
?>
</h1>
	<p>Please click this link to <?php 
echo ci_anchor('auth/reset_password/' . $forgotten_password_code, 'Reset Your Password');
?>
.</p>
</body>
</html>
Exemplo n.º 16
0
<ul class="nav nav-list">
<li><?php 
echo ci_anchor('auth/profile', '<i class="fa fa-user"></i>' . ' ' . lang('auth_profile'));
?>
</li>
</ul>
Exemplo n.º 17
0
        if ($tab_class) {
            $class[] = $tab_class;
        }
    }
    $class = join(' ', $class);
    ?>
		<li class="<?php 
    echo $class;
    ?>
">
			<?php 
    $label = $this->{$this->model}->prop_text('status', FALSE, $t);
    $label .= ' [' . $count . ']';
    ?>
			<?php 
    echo ci_anchor(array($this->conf['path'], 'index', $t), $label, 'title="' . $this->{$this->model}->prop_text('status', FALSE, $t) . '"');
    ?>
		</li>
	<?php 
}
?>

	<li class="divider">&nbsp;</li>

	<li>
		<a href="<?php 
echo ci_site_url(array($this->conf['path'], 'add'));
?>
">
			<i class="fa fa-plus text-success"></i> <?php 
echo lang('common_add');
Exemplo n.º 18
0
<div class="pull-right" style="margin: 0.5em 0.5em;">
	<?php 
echo $this->hc_form->input(array('name' => 'id[]', 'type' => 'checkbox', 'value' => $e->id), FALSE);
?>
</div>

<div class="<?php 
echo $class;
?>
">

<?php 
if (0) {
    ?>
	<?php 
    echo ci_anchor(array($this->conf['path'], 'delete', $e->id), '&times;', 'class="close text-danger hc-confirm" title="' . lang('common_delete') . '"');
}
?>

<ul class="list-unstyled list-separated">
	<li class="dropdown">
		<i class="fa-fw fa fa-calendar"></i> 
		<a class="" href="#" data-toggle="dropdown">
			<?php 
echo $date_view;
?>
 <b class="caret"></b>
		</a>

		<?php 
$to = $e;