X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FCase%2FForm%2FCaseView.tpl;h=97be9a32556596ab5092b4c2b69bd76aff982e83;hb=3cc60a0626ba614a1f56f36e1d33769bd456ac54;hp=1b4c0a191a3f7d7b3ec75c7f19828738003e0745;hpb=380cdc11d40d3c4edd50477a0b12a1161b4b9116;p=civicrm-core.git diff --git a/templates/CRM/Case/Form/CaseView.tpl b/templates/CRM/Case/Form/CaseView.tpl index 1b4c0a191a..97be9a3255 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,10 +147,21 @@ {if $hasAccessToAllCases}
-
{ts}Add new role{/ts}
+
{ts}Add new role{/ts}
+
+
+
{$form.role_type.label}
+
{$form.role_type.html}

+
+
{/if} +
+
+
+
+ @@ -182,39 +174,18 @@
{ts}Case Role{/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,13 +269,13 @@ 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} +
+
+
+
@@ -589,18 +352,12 @@ cj(function(){
{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} {include file="CRM/Case/Form/ActivityToCase.tpl"} {* pane to display / edit regular tags or tagsets for cases *} @@ -781,7 +436,7 @@ function addRole() {
{assign var="tagExits" value=0} {if $tags} -
{$tags}
+
  {$tags}
{assign var="tagExits" value=1} {/if} @@ -803,12 +458,14 @@ function addRole() {
{/if} -
+
+ {if $tagExits}{ts}Edit Tags{/ts}{else}{ts}Add Tags{/ts}{/if} +
-
+
{$form.case_tag.label}
{$form.case_tag.html}

@@ -818,312 +475,13 @@ function addRole() {
-{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 *}
+