$menu[] = '-divider-'; if ($to->status != TIMEOFF_MODEL::STATUS_ACTIVE) { $menu[] = array('href' => ci_site_url(array('admin/timeoffs/save', $to->id, 'status', TIMEOFF_MODEL::STATUS_ACTIVE)), 'title' => '<i class="fa fa-check-square-o text-success"></i> ' . lang('common_approve')); } else { $menu[] = array('href' => ci_site_url(array('admin/timeoffs/save', $to->id, 'status', TIMEOFF_MODEL::STATUS_PENDING)), 'title' => '<i class="fa fa-eye text-warning"></i> ' . $to->prop_text('status', FALSE, TIMEOFF_MODEL::STATUS_PENDING)); } /* MENU - DENY */ $menu[] = array('href' => ci_site_url(array('admin/timeoffs/save', $to->id, 'status', TIMEOFF_MODEL::STATUS_DENIED)), 'title' => '<i class="fa fa-thumbs-o-down text-muted"></i> ' . lang('common_reject')); /* MENU - DELETE */ $menu[] = '-divider-'; $menu[] = array('href' => ci_site_url(array('admin/timeoffs/delete', $to->id)), 'title' => '<i class="fa fa-times text-danger"></i> ' . lang('common_delete'), 'class' => 'hc-confirm'); ?> <?php if (!isset($_skip_title)) { ?> <a class="<?php echo $class; ?> " href="#" data-toggle="dropdown"> <?php echo $title; ?> </a> <?php } ?> <?php echo Hc_html::dropdown_menu($menu);
?> <?php echo form_open('auth/login', array('class' => 'form-horizontal form-condensed')); ?> <?php echo Hc_html::wrap_input($identity_label, $this->hc_form->build_input($identity)); ?> <?php echo Hc_html::wrap_input(lang('common_password'), $this->hc_form->build_input($password)); ?> <?php echo Hc_html::wrap_input('', form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), 'Login')); ?> <?php echo form_close(); ?> <p> <a href="<?php echo ci_site_url('auth/forgot_password'); ?> "> <?php echo lang('auth_login_form_forgot_password'); ?> </a>
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(' ', $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>
?> <?php $default_assign = $this->hc_form->get_default('assign'); echo Hc_html::wrap_input($fields['user']['label'], array('', Hc_bootstrap::nav_tabs(array('later' => lang('common_select_later'), 'now' => lang('common_select_now')), $default_assign, 'assign', '', 'style="margin: 0 0;"'))); ?> <?php unset($fields['user']['options'][0]); $fields['user']['extra']['multiple'] = 'multiple'; $fields['user']['extra']['class'] = 'hc-multiselect'; echo hc_bootstrap::tab_content(array('later' => Hc_html::wrap_input(lang('shift_staff_count'), $this->hc_form->build_input(array('name' => 'count', 'type' => 'text', 'size' => 4, 'default' => 1))), 'now' => Hc_html::wrap_input('', $this->hc_form->build_input($fields['user']))), $default_assign); } ?> <?php echo Hc_html::wrap_input('', form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang($this->conf['entity'] . '_add'))); ?> <?php 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; });
<div class="page-header"> <h2><?php echo lang('common_change_password'); ?> </h2> </div> <?php echo form_open('', array('class' => 'form-horizontal form-condensed')); ?> <?php echo Hc_html::wrap_input($new_password['label'], $this->hc_form->build_input($new_password)); ?> <?php echo Hc_html::wrap_input($new_password_confirm['label'], $this->hc_form->build_input($new_password_confirm)); ?> <?php echo hc_html::wrap_input('', form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('common_save'))); ?> <?php echo form_close();
if (isset($m['children']) && $m['children']) { ?> <a class="dropdown-toggle" data-toggle="dropdown" href="#" title="<?php echo $link_title; ?> "> <?php echo $link_icon; echo $link_title; ?> <b class="caret"></b> </a> <?php echo Hc_html::dropdown_menu($m['children']); ?> <?php } else { ?> <?php if (isset($m['external']) && $m['external']) { ?> <a target="_blank" href="<?php echo $m['link']; ?> " title="<?php echo $link_title;
$conflicts = $object->conflicts(); $tabs = array(); $tab_content = array(); /* EDIT */ $tabs['edit'] = '<i class="fa fa-edit"></i> ' . lang('common_edit'); $tab_content['edit'] = array(); $tab_content['edit'][] = form_open(join('/', array($this->conf['path'], 'save', $object->id)), array('class' => 'form-horizontal form-condensed')); $tab_content['edit'][] = Hc_html::wrap_input($fields['id']['label'], $this->hc_form->build_input($fields['id'])) . Hc_html::wrap_input($fields['status']['label'], $this->hc_form->build_input($fields['status'])); if ($object->date == $object->date_end) { $tab_content['edit'][] = Hc_html::wrap_input($fields['date']['label'], $this->hc_form->build_input($fields['date'])) . Hc_html::wrap_input(lang('time'), array($this->hc_form->build_input($fields['start']), ' - ', $this->hc_form->build_input($fields['end']))); } 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')) . ' ' . 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']);
<?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 $orphan_errors = hc_orphan_errors($this->hc_form->errors(), $fields); if ($orphan_errors) { ?> <div class="alert alert-danger"> <button type="button" class="close" data-dismiss="alert">×</button> <ul> <?php foreach ($orphan_errors as $f => $error) { ?> <li><?php echo $error; ?> </li> <?php } ?> </ul>
<?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(' ', $actions); echo Hc_html::wrap_input('', $actions); echo form_close();
<div class="page-header"> <h2><?php echo $page_title; ?> </h2> </div> <?php echo form_open('setup/run', array('class' => 'form-horizontal form-condensed')); ?> <fieldset> <legend><?php echo lang('setup_admin'); ?> </legend> <?php foreach ($fields as $f) { ?> <?php echo Hc_html::wrap_input($f['label'], $this->hc_form->build_input($f)); } ?> </fieldset> <?php echo Hc_html::wrap_input('', form_button(array('type' => 'submit', 'name' => 'submit', 'class' => 'btn btn-default'), lang('setup_setup'))); ?> <?php echo form_close();
<?php echo form_open(join('/', array($this->conf['path'], 'savepassword', $object->id)), array('class' => 'form-horizontal form-condensed')); ?> <?php foreach ($fields as $f) { ?> <?php if ($f['name'] == 'password') { $f['label'] = lang('common_new_password'); } ?> <?php echo Hc_html::wrap_input($f['label'], $this->hc_form->build_input($f)); } ?> <?php echo Hc_html::wrap_input('', form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('common_save'))); ?> <?php echo form_close();
?> <div class="page-header"> <h2><?php echo lang('auth_profile'); ?> </h2> </div> <?php echo form_open('', array('class' => 'form-horizontal form-condensed')); ?> <?php if ($login_with == 'username') { ?> <?php echo Hc_html::wrap_input(lang('common_username'), $username); } ?> <?php echo Hc_html::wrap_input(lang('common_email'), $this->hc_form->build_input($email)); ?> <?php echo hc_html::wrap_input('', form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('common_save'))); ?> <?php echo form_close();
<div class="page-header"> <h2><?php echo lang('auth_forgot_password'); ?> </h2> </div> <?php echo form_open('auth/forgot_password', array('class' => 'form-horizontal form-condensed')); ?> <p> <?php echo lang('auth_forgot_password_help'); ?> </p> <?php echo Hc_html::wrap_input(lang('common_email'), $this->hc_form->build_input($email)); ?> <?php echo Hc_html::wrap_input('', form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('auth_forgot_password_send'))); ?> <?php echo form_close();