demographics_dashboard_part_2 (#1903)
[openemr.git] / templates / insurance_companies / general_edit.html
blob603fccd97f1b1ba6a95701c881957b6899debe32
1 {**
2 * Insurance company edit
4 * @package OpenEMR
5 * @link http://www.open-emr.org
6 * @author Brady Miller <brady.g.miller@gmail.com>
7 * @copyright Copyright (c) 2017 Brady Miller <brady.g.miller@gmail.com>
8 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
9 *}
10 <form name="insurancecompany" method="post" action="{$FORM_ACTION}" class='form-horizontal' onsubmit="return top.restoreSession()">
11 <!-- it is important that the hidden form_id field be listed first, when it is called it populates any old information attached with the id, this allows for partial edits
12 if it were called last, the settings from the form would be overwritten with the old information-->
13 <input type="hidden" name="form_id" value="{$insurancecompany->id|escape:'html'}">
14 {if $insurancecompany->get_inactive() eq 1 }
15 <div class="form-group">
16 <label for="inactive" class="control-label col-sm-2">{xl t='Reactivate'|escape:'html'}</label>
17 <div class="col-sm-8">
18 <input type="checkbox" id="inactive" name="inactive" class="checkbox" value="0" />
19 </div>
20 </div>
21 {/if}
22 {if $insurancecompany->get_inactive() eq 0 }
23 <div class="form-group">
24 <label for="inactive" class="control-label col-sm-2">{xl t='Deactivate'|escape:'html'}</label>
25 <div class="col-sm-8">
26 <input type="checkbox" id="inactive" name="inactive" class="checkbox" value="1" />
27 </div>
28 </div>
29 {/if}
30 <div class="form-group">
31 <label for="name" class="control-label col-sm-2">{xl t='Name'|escape:'html'}</label>
32 <div class="col-sm-8">
33 <input type="text" id="name" name="name" class="form-control" aria-describedby="nameHelpBox" value="{$insurancecompany->get_name()|escape:'html'}" onKeyDown="PreventIt(event)">
34 <span id="nameHelpBox" class="help-block">({xl t='Required'|escape:'html'})</span>
35 </div>
36 </div>
37 <div class="form-group">
38 <label for="attn" class="control-label col-sm-2">{xl t='Attn'|escape:'html'}</label>
39 <div class="col-sm-8">
40 <input type="text" id="attn" name="attn" class="form-control" value="{$insurancecompany->get_attn()|escape:'html'}" onKeyDown="PreventIt(event)">
41 </div>
42 </div>
43 <div class="form-group">
44 <label for="address_line1" class="control-label col-sm-2">{xl t='Address'|escape:'html'}</label>
45 <div class="col-sm-8">
46 <input type="text" id="address_line1" name="address_line1" class="form-control" value="{$insurancecompany->address->line1|escape:'html'}" onKeyDown="PreventIt(event)">
47 </div>
48 </div>
49 <div class="form-group">
50 <label for="address_line2" class="control-label col-sm-2">{xl t='Address'|escape:'html'}</label>
51 <div class="col-sm-8">
52 <input type="text" id="address_line2" name="address_line2" class="form-control" value="{$insurancecompany->address->line2|escape:'html'}" onKeyDown="PreventIt(event)">
53 </div>
54 </div>
55 <div class="form-group">
56 <label for="city" class="control-label col-sm-2">{xl t='City'|escape:'html'}</label>
57 <div class="col-sm-8">
58 <input type="text" id="city" name="city" class="form-control" value="{$insurancecompany->address->city|escape:'html'}" onKeyDown="PreventIt(event)">
59 </div>
60 </div>
61 <div class="form-group">
62 <label for="state" class="control-label col-sm-2">{xl t='State'|escape:'html'}</label>
63 <div class="col-sm-8">
64 <input type="text" maxlength="2" id="state" name="state" class="form-control" value="{$insurancecompany->address->state|escape:'html'}" onKeyDown="PreventIt(event)">
65 </div>
66 </div>
67 <div class="form-group">
68 <label for="zip" class="control-label col-sm-2">{xl t='Zip Code'|escape:'html'}</label>
69 <div class="col-sm-8">
70 <input type="text" id="zip" name="zip" class="form-control" value="{$insurancecompany->address->zip|escape:'html'}" onKeyDown="PreventIt(event)">
71 </div>
72 </div>
73 <div class="form-group">
74 <label for="phone" class="control-label col-sm-2">{xl t='Phone'|escape:'html'}</label>
75 <div class="col-sm-8">
76 <input type="text" id="phone" name="phone" class="form-control" value="{$insurancecompany->get_phone()|escape:'html'}" onKeyDown="PreventIt(event)">
77 </div>
78 </div>
79 <div class="form-group">
80 <label for="cms_id" class="control-label col-sm-2">{xl t='CMS ID'|escape:'html'}</label>
81 <div class="col-sm-8">
82 <input type="text" id="cms_id" name="cms_id" class="form-control" value="{$insurancecompany->get_cms_id()|escape:'html'}" onKeyDown="PreventIt(event)">
83 </div>
84 </div>
85 {if $SUPPORT_ENCOUNTER_CLAIMS}
86 <div class="form-group">
87 <label for="alt_cms_id" class="control-label col-sm-2">{xl t='CMS ID For Encounter Claims'}</label>
88 <div class="col-sm-8">
89 <input type="text" id="alt_cms_id" name="alt_cms_id" class="form-control" value="{$insurancecompany->get_alt_cms_id()|escape:'html'}" onKeyDown="PreventIt(event)">
90 </div>
91 </div>
92 {/if}
93 <div class="form-group">
94 <label for="ins_type_code" class="control-label col-sm-2">{xl t='Payer Type'|escape:'html'}</label>
95 <div class="col-sm-8">
96 <select id="ins_type_code" name="ins_type_code" class="form-control">
97 {html_options options=$insurancecompany->ins_type_code_array selected=$insurancecompany->get_ins_type_code()}
98 </select>
99 </div>
100 </div>
101 <div class="form-group">
102 <label for="x12_default_partner_id" class="control-label col-sm-2">{xl t='Default X12 Partner'|escape:'html'}</label>
103 <div class="col-sm-8">
104 <select id="x12_default_partner_id" name="x12_default_partner_id" class="form-control">
105 {html_options options=$x12_partners selected=$insurancecompany->get_x12_default_partner_id()}
106 </select>
107 </div>
108 </div>
109 <div class="btn-group col-sm-offset-2">
110 <a href="javascript:submit_insurancecompany();" class="btn btn-default btn-save" onclick="top.restoreSession()">
111 {xl t='Save'|escape:'html'}
112 </a>
113 <a href="controller.php?practice_settings&insurance_company&action=list" class="btn btn-link btn-cancel" onclick="top.restoreSession()">
114 {xl t='Cancel'|escape:'html'}
115 </a>
116 </div>
117 <input type="hidden" name="id" value="{$insurancecompany->id|escape:'html'}" />
118 <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" />
119 </form>
121 {literal}
122 <script language="javascript">
123 function submit_insurancecompany() {
124 if(document.insurancecompany.name.value.length>0) {
125 top.restoreSession();
126 document.insurancecompany.submit();
127 //Z&H Removed redirection
128 } else{
129 document.insurancecompany.name.style.backgroundColor="red";
130 document.insurancecompany.name.focus();
134 function jsWaitForDelay(delay) {
135 var startTime = new Date();
136 var endTime = null;
137 do {
138 endTime = new Date();
139 } while ((endTime - startTime) < delay);
141 </script>
142 {/literal}