{* $Id$ *} {title url=$trackerId|sefurl:'tracker' adm="trackers"}{tr}{$tracker_info.name}{/tr}{/title} {if !empty($tracker_info.description)} {if $tracker_info.descriptionIsParsed eq 'y'}
{wiki}{$tracker_info.description}{/wiki}
{else}
{$tracker_info.description|escape|nl2br}
{/if} {/if}
{if $tiki_p_create_tracker_items eq 'y' && $prefs.tracker_legacy_insert neq 'y'} {if $fields_count gt 0} {icon name="create"} {tr}Create Item{/tr} {else} {icon name="create"} {tr}Create Item{/tr} {/if} {/if} {include file="tracker_actions.tpl" showitems="n"}
{if ! $js}{/if}
{if $user and $prefs.feature_user_watches eq 'y' and $category_watched eq 'y'}
{tr}Watched by categories:{/tr} {section name=i loop=$watching_categories} {$watching_categories[i].name|escape}  {/section}
{/if} {if !empty($mail_msg)}
{$mail_msg}
{/if} {include file='tracker_error.tpl'} {tabset name='tabs_view_tracker' skipsingle=1} {if $tiki_p_view_trackers eq 'y' or (($tracker_info.writerCanModify eq 'y' or $tracker_info.userCanSeeOwn eq 'y' or $tracker_info.groupCanSeeOwn eq 'y' or $tracker_info.writerGroupCanModify eq 'y') and $user)} {tab name="{tr}Tracker Items{/tr}"}

{tr}Items{/tr} {$item_count}

{* -------------------------------------------------- tab with list --- *} {if (($tracker_info.showStatus eq 'y' and $tracker_info.showStatusAdminOnly ne 'y') or $tiki_p_admin_trackers eq 'y') or $show_filters eq 'y'} {include file='tracker_filter.tpl'} {/if} {if (isset($cant_pages) && $cant_pages > 1) or $initial}{initials_filter_links}{/if} {if $items|@count ge '1'} {* ------- list headings --- *}
{*the table-responsive class cuts off dropdown menus *} {if $tracker_info.showStatus eq 'y' or ($tracker_info.showStatusAdminOnly eq 'y' and $tiki_p_admin_trackers eq 'y')} {/if} {if $tiki_p_admin_trackers eq 'y'} {/if} {foreach from=$listfields key=ix item=field_value} {if $field_value.isTblVisible eq 'y' and ( $field_value.type ne 'x' and $field_value.type ne 'h') and ($field_value.type ne 'p' or $field_value.options_array[0] ne 'password')} {/if} {/foreach} {if $tracker_info.showCreated eq 'y'} {/if} {if $tracker_info.showLastModif eq 'y'} {/if} {if $tracker_info.showLastModifBy eq 'y'} {/if} {if $tracker_info.useComments eq 'y' and ($tracker_info.showComments eq 'y' || $tracker_info.showLastComment eq 'y') and $tiki_p_tracker_view_comments ne 'n'} {tr}Comments{/tr} {/if} {if ($tiki_p_tracker_view_attachments eq 'y' or $tiki_p_admin_trackers eq 'y') and $tracker_info.useAttachments eq 'y' and $tracker_info.showAttachments eq 'y'} {if $tiki_p_admin_trackers eq 'y'}{/if} {/if} {if $tiki_p_admin_trackers eq 'y' or $tiki_p_remove_tracker_items eq 'y' or $tiki_p_remove_tracker_items_pending eq 'y' or $tiki_p_remove_tracker_items_closed eq 'y'} {/if} {* ------- Items loop --- *} {assign var=itemoff value=0} {section name=user loop=$items} {if $tracker_info.showStatus eq 'y' or ($tracker_info.showStatusAdminOnly eq 'y' and $tiki_p_admin_trackers eq 'y')} {/if} {if $tiki_p_admin_trackers eq 'y'} {/if} {* ------- list values --- *} {$ajaxedit = $prefs.ajax_inline_edit_trackerlist eq 'y' and ($tiki_p_modify_tracker_items eq 'y' and $items[user].status ne 'p' and $items[user].status ne 'c') or ($tiki_p_modify_tracker_items_pending eq 'y' and $items[user].status eq 'p') or ($tiki_p_modify_tracker_items_closed eq 'y' and $items[user].status eq 'c') } {foreach from=$items[user].field_values key=ix item=field_value} {if $field_value.isTblVisible eq 'y' and $field_value.type ne 'x' and $field_value.type ne 'h' and ($field_value.type ne 'p' or $field_value.options_array[0] ne 'password')} {/if} {/foreach} {if $tracker_info.showCreated eq 'y'} {/if} {if $tracker_info.showLastModif eq 'y'} {/if} {if $tracker_info.showLastModifBy eq 'y'} {/if} {if $tracker_info.useComments eq 'y' and ($tracker_info.showComments eq 'y' or $tracker_info.showLastComment eq 'y') and $tiki_p_tracker_view_comments ne 'n'} {/if} {if ($tiki_p_tracker_view_attachments eq 'y' or $tiki_p_admin_trackers eq 'y') and $tracker_info.useAttachments eq 'y' and $tracker_info.showAttachments eq 'y'} {if $tiki_p_admin_trackers eq 'y'}{/if} {/if} {if $tiki_p_admin_trackers eq 'y' or ($tiki_p_remove_tracker_items eq 'y' and $items[user].status ne 'p' and $items[user].status ne 'c') or ($tiki_p_remove_tracker_items_pending eq 'y' and $items[user].status eq 'p') or ($tiki_p_remove_tracker_items_closed eq 'y' and $items[user].status eq 'c')} {/if} {assign var=itemoff value=$itemoff+1} {/section}
{select_all checkbox_names='action[]'} {self_link _sort_arg='sort_mode' _sort_field='f_'|cat:$field_value.fieldId}{$field_value.name|tra|truncate:255:"..."|escape|default:" "}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='created'}{tr}Created{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='lastModif'}{tr}Last modified{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='lastModifby'}{tr}Last modifier{/tr}{/self_link} {tr}atts{/tr}{tr}dls{/tr}
{assign var=ustatus value=$items[user].status|default:"c"} {icon name=$status_types.$ustatus.iconname iclass='tips' ititle=":{$status_types.$ustatus.label}"}
{trackeroutput field=$field_value showlinks=y showpopup="y" item=$items[user] list_mode=y inTable=formcolor reloff=$itemoff editable=($ajaxedit and $listfields[$field_value.fieldId].editable) ? 'block' : ''} {if $tracker_info.showCreatedFormat}{$items[user].created|tiki_date_format:$tracker_info.showCreatedFormat}{else}{$items[user].created|tiki_short_datetime}{/if}{if $tracker_info.showLastModifFormat}{$items[user].lastModif|tiki_date_format:$tracker_info.showLastModifFormat}{else}{$items[user].lastModif|tiki_short_datetime}{/if} {if empty($items[user].lastModifBy)}Unknown{else}{$items[user].lastModifBy|username}{/if} {if $tracker_info.showComments eq 'y'}{$items[user].comments}{/if}{if $tracker_info.showComments eq 'y' and $tracker_info.showLastComment eq 'y'}
{/if}{if $tracker_info.showLastComment eq 'y' and !empty($items[user].lastComment)}{$items[user].lastComment.userName|escape}-{$items[user].lastComment.commentDate|tiki_short_date}{/if}
{icon name="attach"} {$items[user].attachments}{$items[user].hits} {actions} {strip} {if $prefs.tracker_legacy_insert neq 'y'} {icon name="edit" _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {else} {icon name="post" _menu_text='y' _menu_icon='y' alt="{tr}View/Edit{/tr}"} {/if} {if $tiki_p_create_tracker_items eq 'y' and $prefs.tracker_clone_item eq 'y'} {icon name="copy" _menu_text='y' _menu_icon='y' alt="{tr}Duplicate{/tr}"} {/if} {icon name="delete" _menu_text='y' _menu_icon='y' alt="{tr}Delete{/tr}"} {if $tiki_p_admin_trackers eq 'y'} {permission_link mode=text type=trackeritem id=$items[user].itemId permType=trackers parentId=$trackerId} {icon name="history" _menu_text='y' _menu_icon='y' alt="{tr}History{/tr}"} {/if} {/strip} {/actions}
{if $tiki_p_admin_trackers eq 'y'}
{ticket}
{/if}
{pagination_links cant=$item_count step=$maxRecords offset=$offset}{/pagination_links} {/if} {/tab} {/if} {if $tiki_p_create_tracker_items eq 'y' && $prefs.tracker_legacy_insert eq 'y'} {* --------------------------------------------------------------------------------- tab with edit --- *} {tab name="{tr}Insert New Item{/tr}"}

{tr}Insert New Item{/tr}

{if isset($validationjs)} {jq} $("#newItemForm").validate({ {{$validationjs}}, ignore: '.ignore', submitHandler: function(form, event){return process_submit(form, event);} }); {/jq} {/if}
{remarksbox type="note"}{tr}Fields marked with an * are mandatory.{/tr}{/remarksbox}
{if $tracker_info.showStatus eq 'y' and ($tracker_info.showStatusAdminOnly ne 'y' or $tiki_p_admin_trackers eq 'y')}
{include file='tracker_status_input.tpl' tracker=$tracker_info form_status=status}
{/if} {foreach from=$ins_fields key=ix item=field_value} {if $field_value.type ne 'x' and $field_value.type ne 'l' and $field_value.type ne 'q' and ($field_value.type ne 'A' or $tiki_p_attach_trackers eq 'y') and $field_value.type ne 'N' and $field_value.type ne '*' and !($field_value.type eq 's' and $field_value.name eq 'Rating') }
{if empty($field_value.options_map.labelasplaceholder)} {/if}
{trackerinput field=$field_value inTable=formcolor showDescription=y}
{/if} {/foreach} {* -------------------- antibot code -------------------- *} {if $prefs.feature_antibot eq 'y' && $user eq ''} {include file='antibot.tpl' tr_style="formcolor" showmandatory=y} {/if} {if !isset($groupforalert) || $groupforalert ne ''}
{if $showeachuser eq 'y'} {/if} {section name=idx loop=$listusertoalert}
{if $showeachuser eq 'n'} {else} {$listusertoalert[idx].user} {/if}
{/section}
{/if}
{tr}View inserted item{/tr}
{* --------------------------- to continue inserting items after saving --------- *}
{tr}Insert new item{/tr}
{/tab} {/if} {if $tracker_sync} {tab name="{tr}Synchronization{/tr}"}

{tr}Synchronization{/tr}

{tr _0=$tracker_sync.provider|cat:'/tracker'|cat:$tracker_sync.source}This tracker is a remote copy of %0.{/tr} {if $tracker_sync.last} {tr _0=$tracker_sync.last|tiki_short_date}It was last updated on %0.{/tr} {/if}

{permission name=tiki_p_admin_trackers}

{tr}Items added locally{/tr}

{tr}Safe modifications (no remote conflict){/tr}

{tr}Dangerous modifications (remote conflict){/tr}

{tr}On push, local items will be removed until data reload.{/tr}

{if $tracker_sync.modified} {remarksbox type=warning title="{tr}Local changes will be lost{/tr}"}

{tr}When reloading the data from the source, all local changes will be lost.{/tr}

{/remarksbox} {/if}
{jq} $('.sync-refresh').submit(function () { var form = this; $.ajax({ type: 'post', url: $(form).attr('action'), dataType: 'json', data: $(form).serialize(), error: function (jqxhr) { $(':submit', form).showError(jqxhr); }, success: function () { document.location.reload(); } }); return false; }); $('.load-items').closest('form').each(function () { var form = this; $(form).hide(); $.getJSON($(this).attr('action'), function (data) { $.each(data.sets, function (k, name) { var list = $(form).find('.load-items.' + name)[0]; $.each(data[name], function (k, info) { var li = $('
  • '); li.append($('