X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FCase%2FForm%2FCaseView.tpl;h=97d653462c7ff07e0b46044abf4ea044e8e64e68;hb=66cae70584f43f4d98a9a08b686487f9a0353d00;hp=1b4c0a191a3f7d7b3ec75c7f19828738003e0745;hpb=a755b1785b561f65aca4115b3c81209c2816435d;p=civicrm-core.git diff --git a/templates/CRM/Case/Form/CaseView.tpl b/templates/CRM/Case/Form/CaseView.tpl index 1b4c0a191a..783d68342c 100644 --- a/templates/CRM/Case/Form/CaseView.tpl +++ b/templates/CRM/Case/Form/CaseView.tpl @@ -1,8 +1,8 @@ {* +--------------------------------------------------------------------+ - | CiviCRM version 4.4 | + | CiviCRM version 4.5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2013 | + | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -25,29 +25,17 @@ *} {* CiviCase - view case screen*} -{* here we are showing related cases w/ jquery dialog *}
-{if $showRelatedCases} - - - - - - - {foreach from=$relatedCases item=row key=caseId} - - - - - - {/foreach} -
{ts}Client Name{/ts}{ts}Case Type{/ts}
{$row.client_name}{$row.case_type}{$row.links}
+{* here we are showing related cases w/ jquery dialog *} +{if $showRelatedCases} + {include file="CRM/Case/Form/ViewRelatedCases.tpl"} - {else} +{* Main case view *} +{else}

{ts}Summary{/ts}

- +
{if $multiClient} @@ -85,7 +76,7 @@ {/foreach}
@@ -55,11 +43,14 @@ {foreach from=$caseRoles.client item=client name=clients} {$client.display_name}{if not $smarty.foreach.clients.last},   {/if} {/foreach} - - + + +
+ +
{if $hasRelatedCases} - + {/if}
{if $hasRelatedCases} - + {/if} {/if} @@ -93,13 +84,13 @@ {ts}Subject{/ts}: {$caseDetails.case_subject} - {ts}Type{/ts}: {$caseDetails.case_type}  + {ts}Type{/ts}: {$caseDetails.case_type}  - {ts}Status{/ts}: {$caseDetails.case_status}  + {ts}Status{/ts}: {$caseDetails.case_status}  - {ts}Open Date{/ts}: {$caseDetails.case_start_date|crmDate}  + {ts}Open Date{/ts}: {$caseDetails.case_start_date|crmDate}  {ts}ID{/ts}: {$caseID} @@ -114,45 +105,35 @@
{/if} - - - - {if $hasAccessToAllCases} - - - - - - {else} - - {/if} - +
+
+

+ {$form.add_activity_type_id.html} + {if $hasAccessToAllCases}   + {$form.timeline_id.html}{$form._qf_CaseView_next.html}   + {$form.report_id.html} + {/if} +

+
+
+

+ {if $hasAccessToAllCases} + {ts}Print Report{/ts} + {/if} - {if $mergeCases} -

- - - {/if} - - {if call_user_func(array('CRM_Core_Permission','giveMeAllACLs'))} - - - - {/if} -
{$form.activity_type_id.label}
{$form.activity_type_id.html} 
- -
{$form.timeline_id.label}
{$form.timeline_id.html} {$form._qf_CaseView_next.html}
{$form.report_id.label}
{$form.report_id.html} 
{ts}Merge Case{/ts} - - {$form.merge_case_id.html} {$form._qf_CaseView_next_merge_case.html} + {if $mergeCases} + {ts}Merge Case{/ts} + {$form._qf_CaseView_next_merge_case.html} + + {$form.merge_case_id.html} -
{ts}Assign to Another Contact{/ts} - - {$form.change_client_id.html|crmAddClass:twenty} {$form._qf_CaseView_next_edit_client.html} - -
+ {/if} -
@@ -166,11 +147,22 @@ {if $hasAccessToAllCases}
-
{ts}Add new role{/ts}
+
{ts}Add new role{/ts}
+
+
+
{$form.role_type.label}
+
{$form.role_type.html}

+
+
{/if} - +
+
+
+
+ +
@@ -182,309 +174,75 @@
{ts}Case Role{/ts} {ts}Name{/ts}
+
+ {ts}Are you sure you want to delete this case role?{/ts} +
+ {literal} -{/literal} - - -
- {ts}Begin typing last name of contact.{/ts}
- - -
- -{literal} - {/literal} + + {if $hasAccessToAllCases}
- + {capture assign=relUrl}{crmURL p='civicrm/contact/view/rel' q="action=add&reset=1&cid=`$contactId`&caseID=`$caseID`"}{/capture} {if $clientRelationships}
- -
{ts}Add client relationship{/ts}
+ +
{ts}Add client relationship{/ts}
- +
@@ -509,266 +267,158 @@ cj(function(){ {else}
- {capture assign=crmURL}{crmURL p='civicrm/contact/view/rel' q="action=add&reset=1&cid=`$contactId`&caseID=`$caseID`"}{/capture} - {ts 1=$crmURL}There are no Relationships entered for this client. You can add one.{/ts} + {capture assign=link}class="action-item" href="{$relUrl}"{/capture} + {ts 1=$link}There are no Relationships entered for this client. You can add one.{/ts}
{/if} {literal} {/literal}
- - {if $globalRelationships} + {if !empty($globalGroupInfo.id)}
- -
{ts 1=$globalGroupInfo.title}Add members to %1{/ts}
+ +
{ts 1=$globalGroupInfo.title}Add members to %1{/ts} +
-
{ts}Client Relationship{/ts} {ts}Name{/ts}
+
+ +
+
{$globalGroupInfo.title} {ts}Phone{/ts} {ts}Email{/ts}
- {elseif $globalGroupInfo.id} -
-
  - {capture assign=crmURL}{crmURL p='civicrm/group/search' q="reset=1&context=amtg&amtgID=`$globalGroupInfo.id`"}{/capture} - {ts 1=$crmURL 2=$globalGroupInfo.title}The group %2 has no members. You can add one.{/ts} -
{/if} {literal} {/literal}
{/if} {* other relationship section ends *} - -
-{$form.role_type.label}
-{$form.role_type.html} -

- {ts}Begin typing last name of contact.{/ts}
- - -
- -{literal} - -{/literal} {include file="CRM/Case/Form/ActivityToCase.tpl"} {* pane to display / edit regular tags or tagsets for cases *} @@ -781,11 +431,11 @@ function addRole() {
{assign var="tagExits" value=0} {if $tags} -
{$tags}
+
  {$tags}
{assign var="tagExits" value=1} {/if} - {foreach from=$tagsetInfo_case item=displayTagset} + {foreach from=$tagsetInfo.case item=displayTagset} {if $displayTagset.entityTagsArray}
  {$displayTagset.parentName}: @@ -803,327 +453,30 @@ function addRole() {
{/if} -
+
+ {if $tagExits}{ts}Edit Tags{/ts}{else}{ts}Add Tags{/ts}{/if} +
-
+
{$form.case_tag.label}
{$form.case_tag.html}

-
{include file="CRM/common/Tag.tpl" tagsetType='case'}
+
{include file="CRM/common/Tagset.tpl" tagsetType='case'}

-{literal} - -{/literal} - {/if} {* end of tag block*} -{*include activity view js file*} -{include file="CRM/common/activityView.tpl"} - -
-
- {ts}Activities{/ts} -
-
-
-
-
- - - - - - - - - - - - - -
{ts}Date{/ts}{ts}Subject{/ts}{ts}Type{/ts}{ts}With{/ts}{ts}Reporter / Assignee{/ts}{ts}Status{/ts}  
- -
-
- -{literal} - -{/literal} +{include file="CRM/Case/Form/ActivityTab.tpl"}
{include file="CRM/common/formButtons.tpl" location="bottom"}
-{literal} - -{/literal} - + {include file="CRM/Case/Form/ActivityChangeStatusJs.tpl"} {/if} {* view related cases if end *}
+