Fixes #7590 wrongful use of break tag (#7624)
[openemr.git] / templates / insurance_companies / general_edit.html
blobd3a12f70b13be68935bac5caf0708524a81f2f53
1 {**
2 * Insurance company edit
4 * @package OpenEMR
5 * @link https://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 *}
11 <form name="insurancecompany" method="post" action="{$FORM_ACTION}" class='form-horizontal' onsubmit="return top.restoreSession()">
12 <!-- 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
13 if it were called last, the settings from the form would be overwritten with the old information-->
14 <input type="hidden" name="form_id" value="{$insurancecompany->id|attr}">
15 {if $insurancecompany->get_inactive() eq 1}
16 <div class="form-row my-sm-2">
17 <label for="inactive" class="col-form-label col-sm-2">{xlt t='Reactivate'}</label>
18 <div class="col-sm-8">
19 <input type="checkbox" id="inactive" name="inactive" class="checkbox" value="0" />
20 </div>
21 </div>
22 {/if}
23 {if $insurancecompany->get_inactive() eq 0}
24 <div class="form-row my-sm-2">
25 <label for="inactive" class="col-form-label col-sm-2">{xlt t='Deactivate'}</label>
26 <div class="col-sm-8">
27 <input type="checkbox" id="inactive" name="inactive" class="checkbox" value="1" />
28 </div>
29 </div>
30 {/if}
31 <div class="form-row my-sm-2">
32 <label for="name" class="col-form-label col-sm-2">{xlt t='Name'}</label>
33 <div class="col-sm-8">
34 <input type="text" id="name" name="name" class="form-control" aria-describedby="nameHelpBox" value="{$insurancecompany->get_name()|attr}" onKeyDown="PreventIt(event)">
35 <span id="nameHelpBox" class="help-block">({xlt t='Required'})</span>
36 </div>
37 </div>
38 <div class="form-row my-sm-2">
39 <label for="attn" class="col-form-label col-sm-2">{xlt t='Attn'}</label>
40 <div class="col-sm-8">
41 <input type="text" id="attn" name="attn" class="form-control" value="{$insurancecompany->get_attn()|attr}" onKeyDown="PreventIt(event)">
42 </div>
43 </div>
44 <div class="form-row my-sm-2">
45 <label for="address_line1" class="col-form-label col-sm-2">{xlt t='Address'}</label>
46 <div class="col-sm-8">
47 <input type="text" id="address_line1" name="address_line1" class="form-control" value="{$insurancecompany->address->line1|attr}" onKeyDown="PreventIt(event)">
48 </div>
49 </div>
50 <div class="form-row my-sm-2">
51 <label for="address_line2" class="col-form-label col-sm-2">{xlt t='Address'}</label>
52 <div class="col-sm-8">
53 <input type="text" id="address_line2" name="address_line2" class="form-control" value="{$insurancecompany->address->line2|attr}" onKeyDown="PreventIt(event)">
54 </div>
55 </div>
56 <div class="form-row my-sm-2">
57 <label for="city" class="col-form-label col-sm-2">{xlt t='City'}</label>
58 <div class="col-sm-8">
59 <input type="text" id="city" name="city" class="form-control" value="{$insurancecompany->address->city|attr}" onKeyDown="PreventIt(event)">
60 </div>
61 </div>
62 <div class="form-row my-sm-2">
63 <label for="state" class="col-form-label col-sm-2">{xlt t='State'}</label>
64 <div class="col-sm-8">
65 <input type="text" maxlength="2" id="state" name="state" class="form-control" value="{$insurancecompany->address->state|attr}" onKeyDown="PreventIt(event)">
66 </div>
67 </div>
68 <div class="form-row my-sm-2">
69 <label for="zip" class="col-form-label col-sm-2">{xlt t='Zip Code'}</label>
70 <div class="col-sm-8">
71 <input type="text" id="zip" name="zip" class="form-control" value="{$insurancecompany->address->zip|attr}" onKeyDown="PreventIt(event)">
72 </div>
73 </div>
74 <div class="form-row my-sm-2">
75 <label for="phone" class="col-form-label col-sm-2">{xlt t='Phone'}</label>
76 <div class="col-sm-8">
77 <input type="text" id="phone" name="phone" class="form-control" value="{$insurancecompany->get_phone()|attr}" onKeyDown="PreventIt(event)">
78 </div>
79 </div>
80 <div class="form-row my-sm-2">
81 <label for="fax" class="col-form-label col-sm-2">{xlt t='Fax'}</label>
82 <div class="col-sm-8">
83 <input type="text" id="fax" name="fax" class="form-control" value="{$insurancecompany->get_fax()|attr}" onKeyDown="PreventIt(event)">
84 </div>
85 </div>
86 <div class="form-row my-sm-2">
87 <label for="cms_id" class="col-form-label col-sm-2">{xlt t='Payer ID'}</label>
88 <div class="col-sm-8">
89 <input type="text" id="cms_id" name="cms_id" class="form-control" value="{$insurancecompany->get_cms_id()|attr}" onKeyDown="PreventIt(event)">
90 </div>
91 </div>
92 {if $SUPPORT_ENCOUNTER_CLAIMS}
93 <div class="form-row my-sm-2">
94 <label for="alt_cms_id" class="col-form-label col-sm-2">{xlt t='Payer ID For Encounter Claims'}</label>
95 <div class="col-sm-8">
96 <input type="text" id="alt_cms_id" name="alt_cms_id" class="form-control" value="{$insurancecompany->get_alt_cms_id()|attr}" onKeyDown="PreventIt(event)">
97 </div>
98 </div>
99 {/if}
100 {if $SUPPORT_ELIGIBILITY_REQUESTS}
101 <div class="form-row my-sm-2">
102 <label for="eligibility_id" class="col-form-label col-sm-2">{xlt t='Payer Id For Eligibility'}</label>
103 <div class="col-sm-8">
104 <input type="text" id="eligibility_id" name="eligibility_id" class="form-control" value="{$insurancecompany->get_eligibility_id()|attr}" onKeyDown="PreventIt(event)">
105 </div>
106 </div>
107 {/if}
108 <div class="form-row my-sm-2">
109 <label for="ins_type_code" class="col-form-label col-sm-2">{xlt t='Payer Type'}</label>
110 <div class="col-sm-8">
111 <select id="ins_type_code" name="ins_type_code" class="form-control">
112 {html_options options=$insurancecompany->ins_type_code_array selected=$insurancecompany->get_ins_type_code()}
113 </select>
114 </div>
115 </div>
116 <div class="form-row my-sm-2">
117 <label for="x12_default_partner_id" class="col-form-label col-sm-2">{xlt t='Default X12 Partner'}</label>
118 <div class="col-sm-8">
119 <select id="x12_default_partner_id" name="x12_default_partner_id" class="form-control">
120 {html_options options=$x12_partners selected=$insurancecompany->get_x12_default_partner_id()}
121 </select>
122 </div>
123 </div>
124 <div class="form-row my-sm-2">
125 <label for="cqm_sop" class="col-form-label col-sm-2">{xlt t='CQM Source of Payment'}</label>
126 <div class="col-sm-8">
127 <select id="cqm_sop" name="cqm_sop" class="form-control">
128 {html_options options=$insurancecompany->cqm_sop_array selected=$insurancecompany->get_cqm_sop()}
129 </select>
130 </div>
131 </div>
132 {if $SUPPORT_ELIGIBILITY_REQUESTS}
133 <div class="form-row my-sm-2">
134 <label for="x12_default_eligibility_id" class="col-form-label col-sm-2">{xlt t='Default Eligibility X12 Partner'}</label>
135 <div class="col-sm-8">
136 <select id="x12_default_eligibility_id" name="x12_default_eligibility_id" class="form-control">
137 {html_options options=$x12_partners selected=$insurancecompany->get_x12_default_eligibility_id()}
138 </select>
139 </div>
140 </div>
141 {/if}
142 <div class="btn-group offset-sm-2">
143 <a href="javascript:submit_insurancecompany();" class="btn btn-secondary btn-save" onclick="top.restoreSession()">
144 {xlt t='Save'}
145 </a>
146 <a href="controller.php?practice_settings&insurance_company&action=list" class="btn btn-link btn-cancel" onclick="top.restoreSession()">
147 {xlt t='Cancel'}
148 </a>
149 </div>
150 <input type="hidden" name="id" value="{$insurancecompany->id|attr}" />
151 <input type="hidden" name="process" value="{$PROCESS|attr}" />
152 </form>
154 <script>
155 function submit_insurancecompany() {
156 if(document.insurancecompany.name.value.length>0) {
157 top.restoreSession();
158 document.insurancecompany.submit();
159 //Z&H Removed redirection
160 } else{
161 document.insurancecompany.name.style.backgroundColor="red";
162 document.insurancecompany.name.focus();
166 function jsWaitForDelay(delay) {
167 var startTime = new Date();
168 var endTime = null;
169 do {
170 endTime = new Date();
171 } while ((endTime - startTime) < delay);
173 </script>