Merge pull request #5982 from monishdeb/CRM-16609
[civicrm-core.git] / templates / CRM / Case / Form / Search / Common.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
6a488035
TO
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25*}
26{if $notConfigured} {* Case types not present. Component is not configured for use. *}
27{include file="CRM/Case/Page/ConfigureError.tpl"}
28{else}
29<tr>
30 <td><label>{ts}Case Start Date{/ts}</label></td>{include file="CRM/Core/DateRange.tpl" fieldName="case_from" from='_start_date_low' to='_start_date_high'}
31</tr>
32<tr>
33 <td><label>{ts}Case End Date{/ts}</label></td>{include file="CRM/Core/DateRange.tpl" fieldName="case_to" from='_end_date_low' to='_end_date_high'}
34</tr>
35
36<tr id='case_search_form'>
37 <td colspan="2" class="crm-case-common-form-block-case_type" width="25%">
38 <label>{ts}Case Type{/ts}</label><br />
39 <div class="listing-box">
40 {foreach from=$form.case_type_id item="case_type_id_val"}
41 <div class="{cycle values='odd-row,even-row'}">
42 {$case_type_id_val.html}
43 </div>
44 {/foreach}
45 </div><br />
46 </td>
47
48 <td class="crm-case-common-form-block-case_status_id" width="25%">
49 <label>{ts}Status{/ts}</label><br />
50 <div class="listing-box">
51 {foreach from=$form.case_status_id item="case_status_id_val"}
52 <div class="{cycle values='odd-row,even-row'}">
53 {$case_status_id_val.html}
54 </div>
55 {/foreach}
56 </div>
57 {if $accessAllCases}
58 <br />
59 {$form.case_owner.html}
60 {/if}
61 {if $form.case_deleted}
62 <br />
63 {$form.case_deleted.html}
64 {$form.case_deleted.label}
65 {/if}
66 </td>
67 {if $form.case_tags}
68 <td class="crm-case-common-form-block-case_tags">
69 <label>{ts}Case Tag(s){/ts}</label>
70 <div id="Tag" class="listing-box">
71 {foreach from=$form.case_tags item="tag_val"}
72 <div class="{cycle values='odd-row,even-row'}">
73 {$tag_val.html}
74 </div>
75 {/foreach}
76 </td>
77 {/if}
78</tr>
79
6d538af3 80<tr><td colspan="3">{include file="CRM/common/Tagset.tpl" tagsetType='case'}</td></tr>
6a488035
TO
81
82 {if $caseGroupTree}
83 <tr>
84 <td colspan="4">
85 {include file="CRM/Custom/Form/Search.tpl" groupTree=$caseGroupTree showHideLinks=false}
86 </td>
87 </tr>
88 {/if}
89
90{/if}
91