{style} {literal} .ow_ticket_attachment_icon { display: inline-block; background-repeat: no-repeat; cursor: pointer; width: 14px; height: 17px; } .ticket_attachments_label { margin: 15px 0 5px; padding-left: 5px; font-weight: bold; } .ticket_add_post .jhtmlarea { margin: 0px auto; } .post_content img { max-width: 100%; } .post_content { overflow: hidden; } .ow_ticket_post_comment { background-position: right center; background-repeat: no-repeat; padding-right: 28px; } {/literal} {/style} {script} {literal} $(".ow_ticket_attachment").hover( function(){ $(this).find("a.ticket_delete_attachment").show(); }, function(){ $(this).find("a.ticket_delete_attachment").hide(); } ); $("a.ticket_delete_attachment").each(function(){ var container_handler = $(this).parent(); $(this).click(function(){ if ( confirm(OW.getLanguageText('iisticketing', 'confirm_delete_attachment')) ) { var attachment_id = $(this).attr("data-aid"); var attachmentDeleteCode = $(this).attr("code"); var params = {}; var url = "{/literal}{url_for_route for='iisticketing.delete_attachment'}{literal}"; params['attachmentId'] = attachment_id; if(attachmentDeleteCode!=null && attachmentDeleteCode!=undefined) { params['attachmentDeleteCode'] = attachmentDeleteCode; } $.ajaxSetup({dataType: 'json'}); $.post(url, params, function(data){ if ( data.result == true ) { OW.info(data.msg); container_handler.remove(); } else if (data.error != undefined) { OW.warning(data.error); } }); } else { return false; } }); }); {/literal} {/script} {$breadcrumb}
{block_decorator name='box' addClass='ow_std_margin' iconClass='ow_ic_info' langLabel='iisticketing+view_page_details_block_cap_label'} {if isset($ticketInfo.categoryTitle)} {elseif isset($ticketInfo.networkUid)} {/if}
{text key='iisticketing+view_page_date_label'} {$ticketInfo.timeStamp}
{text key='iisticketing+view_page_order_label'}
{$ticketInfo.orderTitle}
{text key='event+view_page_created_label'} {user_link name=$ticketInfo.displayName username=$ticketInfo.username}
{text key='iisticketing+view_category_label'} {$ticketInfo.categoryTitle}
{text key='iisticketing+view_network_label'} {if isset($ticketInfo.networkUrl)} {$ticketInfo.networkUid}{/if}
{/block_decorator}
{if $isTicketManager || $isOwner || !empty($tb)}
{block_decorator name='box' iconClass='ow_ic_info' langLabel='iisticketing+this_ticket' addClass='ow_stdmargin'} {/block_decorator}
{/if}
{block_decorator name='box' type='empty' iconClass='ow_ic_picture' langLabel='event+view_page_image_block_cap_label' addClass="ow_std_margin clearfix"} {$ticketInfo.description} {/block_decorator}
{foreach from=$attachments item='attm'}
{if $attm.downloadUrl != ''} {$attm.fileName|escape} {$attm.fileName} {else} {$attm.fileName} {/if} ({$attm.fileSize}Kb)
{if $isManager || ($isOwner && !$ticketInfo.locked)} {if isset($attachmentDeleteCode)} {else} {/if} {/if}
{/foreach}
{foreach from=$postList item=post name=postList} {capture assign='tpl'} {capture name='info_string'} {$avatars[$post.userId].title} {$post.createStamp} {/capture} {capture name='content'} {add_content key="ticket.before_post_add_content" postId=$post.id userId=$post.userId text=$post.text}
{if isset($post.beforeMoreText)} {$post.beforeMoreText} {if isset($post.showMore)}... {text key='iisticketp+more'} {/if} {else} {$post.text} {/if}
{if isset($post.showMore)} {/if} {if $post.edited}
{text key='iisticketing+post_edited'} {$avatars[$post.edited.userId].title} ({$post.edited.editStamp})
{/if} {if isset($postAttachment[$post.id])}
{text key='iisticketing+attachments'}:
{foreach from=$postAttachment[$post.id] item='attm'}  
{if $attm.downloadUrl != ''} {$attm.fileName|escape} {$attm.fileName} {else} {$attm.fileName} {/if} ({$attm.fileSize}Kb) {if $isManager || ($post.userId == $userId && !$ticketInfo.locked)} {if isset($attachmentDeleteCode)} {text key='iisticketing+delete'} {else} {text key='iisticketing+delete'} {/if} {/if}

{/foreach}
{/if} {add_content key="ticket.after_post_add_content" postId=$post.id userId=$post.userId text=$post.text} {/capture} {decorator name='ipc' avatar=$avatars[$post.userId] content=$smarty.capture.content infoString=$smarty.capture.info_string toolbar=$toolbars[$post.id] } {/capture} {if $page==1 && $smarty.foreach.postList.first}
{$tpl}
{add_content key='socialsharing.get_sharing_buttons' description=$post.text title=$ticketInfo.title image='' class='ow_social_sharing_nomargin' entityType='ticket_ticket' entityId=$post.ticketId}
{add_content key='ticket.ticket.content.after_first_post'} {else}
{$tpl}
{/if} {/foreach}
{$paging}
{if $ticketInfo.locked} {block_decorator name='box' type='empty' addClass='ow_smallmargin ow_center'}
{text key='iisticketing+ticket_is_locked'}
{/block_decorator} {/if}
{if $isOwner || $isTicketManager || !empty($tb)}
{else}
{/if} {if !$ticketInfo.locked && ($isTicketManager || $isOwner) } {form name='add-post-form'} {block_decorator name='box' iconClass='ow_ic_write' langLabel='iisticketing+add_post_title' addClass='ow_stdmargin'}
{input name='text' class="ow_smallmargin"}
{error name='text'}
{$attachmentsCmp}
{submit name='submit' class='ow_positive'}
{/block_decorator} {/form} {/if}
{decorator name='button' langLabel='iisticketing+back' onclick="window.location='{$backUrl}'"}