summaryrefslogtreecommitdiff
path: root/UI/Contact/contact.html
blob: bf58c51efc46f703631391cbf5982ff05bfcf6eb (plain)
  1. <?lsmb INCLUDE 'ui-header.html'
  2. include_stylesheet = [
  3. stylesheet
  4. 'UI/Contact/contact.css'
  5. ] ?>
  6. <?lsmb PROCESS 'elements.html' ?>
  7. <body>
  8. <?lsmb IF name ?>
  9. <div class="pageheading"><?lsmb name?></font>
  10. <?lsmb END ?>
  11. <div class="navigation" id="nav_div">
  12. <?lsmb IF entity_id ?><?lsmb operation = "Edit" ?><?lsmb ELSE
  13. ?><?lsmb operation = "Add"
  14. ?><?lsmb END ?>
  15. <!-- CT: Keys for localization scripts:
  16. <?lsmb text("Add Customer") ?>
  17. <?lsmb text("Edit Customer") ?>
  18. <?lsmb text("Add Vendor") ?>
  19. <?lsmb text("Edit Vendor") ?>
  20. <?lsmb text("Add Employee") ?>
  21. <?lsmb text("Edit Employee") ?>
  22. -->
  23. <ul class="navigation">
  24. <?lsmb IF entity_class == 3 ?>
  25. <li><a href="#hr_div"><?lsmb text('HR') ?></a></li>
  26. <?lsmb ELSE ?>
  27. <li><a href="#company_div"><?lsmb text('Company') ?></a></li>
  28. <li><a href="#credit_div"><?lsmb text('Accounts') ?></a></li>
  29. <?lsmb END ?>
  30. <?lsmb IF entity_id ?>
  31. <li><a href="#location_div"><?lsmb text('Addresses') ?></a></li>
  32. <li><a href="#contact_div"><?lsmb text('Contact Info') ?></a></li>
  33. <li><a href="#bank_div"><?lsmb text('Bank Accounts') ?></a></li>
  34. <li><a href="#notes_div"><?lsmb text('Notes') ?></a></li>
  35. <!-- Commented out as not yet implemented -CT
  36. <li><a href="#history_div"><?lsmb text('History') ?></a></li>
  37. <li><a href="#user_div"><?lsmb text('User') ?></a></li>
  38. -->
  39. <?lsmb END ?>
  40. </ul>
  41. </div>
  42. <?lsmb IF entity_class == 3 ?>
  43. <div id="hr_div" class="container">
  44. <div class="listtop"><strong><?lsmb text("$operation Employee") ?></strong></div>
  45. <form name="hr" action="<?lsmb script ?>" method="post">
  46. <?lsmb PROCESS input element_data = {
  47. type = "hidden"
  48. name = "entity_id"
  49. value = entity_id
  50. } ?>
  51. <div class="input" id="person_name_div"><?lsmb text('Name:')?>&nbsp;
  52. <!-- TODO: Add Saluatation -->
  53. <?lsmb PROCESS input element_data = {
  54. label = text('First')
  55. name = "first_name"
  56. value = first_name
  57. type = "text"
  58. size = 20
  59. } ?>
  60. <?lsmb PROCESS input element_data = {
  61. label = text('Middle')
  62. name = "middle_name"
  63. value = middle_name
  64. type = "text"
  65. size = 20
  66. } ?>
  67. <?lsmb PROCESS input element_data = {
  68. label = text('Last')
  69. name = "last_name"
  70. value = last_name
  71. type = "text"
  72. size = 20
  73. } ?>
  74. </div>
  75. <div id="job_title_div">
  76. <!-- Note that the strange # ' constructs are only necessary to help VIM avoid
  77. problems with multi-word single-quoted constructs in PI tags. -CT -->
  78. <?lsmb PROCESS input element_data = {
  79. label = text('Job Title:')
  80. name = "role"
  81. value = role
  82. type = "text"
  83. size = 20
  84. } # ' ?>
  85. <?lsmb PROCESS input element_data = {
  86. label = text('Sales:')
  87. value = 1
  88. type = "checkbox"
  89. checked = sales
  90. name = "sales"
  91. } ?>
  92. <?lsmb PROCESS input element_data = {
  93. label = text('Employee Number')
  94. value = employee_number
  95. name = "employee_number"
  96. type = "text"
  97. size = 20
  98. } # ' ?>
  99. <label for="manager_select"><?lsmb text('Manager:') ?></label>
  100. <select id="manager_select" name="manager_id">
  101. <?lsmb FOREACH e = employee ?>
  102. <option value = e.entity_id <?lsmb (manager_id == e.entity_id) ? "SELECTED" : ""?><?lsmb e.name ?></option>
  103. <?lsmb END ?>
  104. </select>
  105. <div>
  106. <?lsmb PROCESS input element_data = {
  107. label = text('DOB:')
  108. name = "dob"
  109. value = dob
  110. type = "text"
  111. class = "date"
  112. size = 10
  113. } ?>
  114. <?lsmb PROCESS input element_data = {
  115. label = text('Start Date:')
  116. name = "start_date"
  117. value = start_date
  118. type = "text"
  119. class = "date"
  120. size = 10
  121. } # ' ?>
  122. <?lsmb PROCESS input element_data = {
  123. label = text('End Date:')
  124. name = "end_date"
  125. value = end_date
  126. class = "text"
  127. type = "text"
  128. size = 10
  129. } # ' ?>
  130. <div>
  131. <?lsmb PROCESS button element_data = {
  132. text = text('Save')
  133. class = "submit"
  134. type = "submit"
  135. value = "save_employee"
  136. } ?>
  137. </div>
  138. </form>
  139. <?lsmb ELSE ?>
  140. <div class="container" id="company_div">
  141. <?lsmb SWITCH entity_class
  142. ?><?lsmb CASE 1 ?><?lsmb entity_classname = "Vendor"
  143. ?><?lsmb CASE 2 ?><?lsmb entity_classname = "Customer"
  144. ?><?lsmb END ?>
  145. <div class="listtop"><strong><?lsmb text("$operation $entity_classname") ?></strong></div>
  146. <form name="customer" method="POST" action="<?lsmb script ?>">
  147. <?lsmb PROCESS input element_data = {
  148. type = "hidden"
  149. name = "entity_id"
  150. value = entity_id
  151. } ?>
  152. <?lsmb PROCESS input element_data = {
  153. type = "hidden"
  154. name = "id"
  155. value = id
  156. } ?>
  157. <?lsmb PROCESS input element_data = {
  158. type = "hidden"
  159. name = "account_class"
  160. value = account_class
  161. } ?>
  162. <?lsmb PROCESS input element_data = {
  163. label = text('Control Code:') #'
  164. type= "text"
  165. name = "control_code"
  166. value = control_code
  167. size = "20"
  168. } ?><br/>
  169. <?lsmb PROCESS input element_data = {
  170. label = text('Name:')
  171. type= "text"
  172. name = "name"
  173. value = name
  174. size = "20"
  175. } ?><br/>
  176. <table>
  177. <tr>
  178. <td>
  179. <?lsmb INCLUDE input element_data = {
  180. label = text('Tax Number/SSN:'),
  181. name = "tax_id",
  182. value = tax_id,
  183. type = "text",
  184. size = "19"
  185. } #' ?>
  186. </td>
  187. <td>
  188. <?lsmb INCLUDE input element_data = {
  189. label = text('SIC:'),
  190. name = "sic_code",
  191. value = sic_code,
  192. type = "text",
  193. size = "19",
  194. class = 'sic'
  195. } ?>
  196. </td>
  197. </tr>
  198. </table>
  199. <hr/>
  200. <?lsmb INCLUDE button element_data = {
  201. text = text('Save'),
  202. class="submit"
  203. type="submit"
  204. name="action"
  205. value="save"
  206. accesskey="S"
  207. title="Save [Alt-S]"
  208. } ?>
  209. </form>
  210. <?lsmb FOREACH n = notes ?>
  211. <div class="note">
  212. <div class="note_contents"><?lsmb n.note ?></div>
  213. </div>
  214. <?lsmb END ?>
  215. </div>
  216. <?lsmb IF entity_id ?>
  217. <div id="credit_div">
  218. <div class="listtop"><strong>Accounts</strong></div>
  219. <table width="100%">
  220. <tr class="listheading">
  221. <th class="account_class"><?lsmb text('Type') ?></th>
  222. <th class="number"><?lsmb text("Number") ?></th>
  223. <th class="credit_limit"><?lsmb text('Credit Limit') ?></th>
  224. <th class="start_date"><?lsmb text('Start Date') ?></th>
  225. <th class="end_date"><?lsmb text('End Date') ?></th>
  226. </tr>
  227. <?lsmb FOREACH cl_item = credit_list ?>
  228. <tr <?lsmb IF meta_number == cl_item.meta_number ?> class="active"<?lsmb END ?>>
  229. <td><?lsmb IF cl_item.entity_class == 1 ?><?lsmb text('Vendor') ?>
  230. <?lsmb ELSIF cl_item.entity_class == 2 ?><?lsmb text('Customer') ?>
  231. <?lsmb END ?>
  232. </td>
  233. <td><a href="<?lsmb script ?>?action=get&account_class=<?lsmb
  234. account_class ?>&entity_id=<?lsmb entity_id
  235. ?>&meta_number=<?lsmb cl_item.meta_number ?>"><?lsmb cl_item.meta_number ?></a></td>
  236. <td><?lsmb cl_item.credit_limit ?></td>
  237. <td><?lsmb cl_item.start_date ?></td>
  238. <td><?lsmb cl_item.end_date ?></td>
  239. </tr>
  240. <?lsmb END ?>
  241. </table>
  242. <form id="credit_form" name="credit_form" method="post"
  243. action="<?lsmb script ?>">
  244. <?lsmb PROCESS input element_data = {
  245. type = "hidden"
  246. name = "entity_id"
  247. value = entity_id
  248. } ?>
  249. <?lsmb PROCESS input element_data = {
  250. type = "hidden"
  251. name = "credit_id"
  252. value = credit_id
  253. } ?>
  254. <?lsmb PROCESS input element_data = {
  255. type = "hidden"
  256. name = "account_class"
  257. value = account_class
  258. } ?>
  259. <?lsmb PROCESS input element_data = {
  260. label = text("$entity_classname Number:"),
  261. type= "text",
  262. name = "meta_number",
  263. value = meta_number,
  264. size = "20"
  265. } # " ?><br/>
  266. <table>
  267. <tr id="date-row">
  268. <td>
  269. <?lsmb PROCESS input element_data = {
  270. label = text('Starting Date:'),
  271. name = "startdate",
  272. class = "date",
  273. value = startdate,
  274. type = "text",
  275. size = "12",
  276. maxlength = "10"
  277. } #' ?>
  278. </td>
  279. <td>
  280. <?lsmb PROCESS input element_data = {
  281. label = text('End Date:'),
  282. name = "enddate",
  283. class = "date",
  284. value = enddate,
  285. type = "text",
  286. size = "12",
  287. maxlength = "10"
  288. } #' ?>
  289. </td>
  290. </tr>
  291. <tr id="credit-row">
  292. <td>
  293. <?lsmb INCLUDE input element_data = {
  294. label = text('Credit Limit:'),
  295. name = "creditlimit",
  296. value = creditlimit,
  297. type = "text",
  298. size = "20"
  299. } #' ?>
  300. </td>
  301. <td>
  302. <?lsmb INCLUDE input element_data = {
  303. label = text('Terms:'),
  304. name = "terms",
  305. value = terms,
  306. type = "text",
  307. size = "5"
  308. } ?> <?lsmb text('days') ?>
  309. </td>
  310. </tr>
  311. <tr id="discount-gifi-row">
  312. <td>
  313. <?lsmb INCLUDE input element_data = {
  314. label = text('Discount:'),
  315. name = "discount",
  316. value = discount,
  317. type = "text",
  318. size = "3",
  319. maxlength = 3
  320. } ?>% /
  321. <?lsmb INCLUDE input element_data = {
  322. name = "discount_terms",
  323. value = discount_terms,
  324. type = "text",
  325. size = "3",
  326. maxlength = 3
  327. } ?> <?lsmb text('days') ?>
  328. </td>
  329. <td>
  330. <?lsmb INCLUDE input element_data = {
  331. label = text('Subcontract GIFI:'),
  332. name = "gifi_accno",
  333. value = gifi_accno,
  334. type = "text",
  335. size = "19"
  336. } #' ?>
  337. </td>
  338. </tr>
  339. <tr id="account-link-row">
  340. <td> <?lsmb INCLUDE select element_data = {
  341. name = "ar_ap_account_id"
  342. default_values = [ar_ap_account_id]
  343. options = ar_ap_acc_list
  344. label = text((account_class == 1) ? 'AP' : 'AR')
  345. text_attr = "text"
  346. value_attr = "id"
  347. } ?>
  348. </td>
  349. <td> <?lsmb INCLUDE select element_data = {
  350. name = "cash_account_id"
  351. default_values = [cash_account_id]
  352. options = cash_acc_list
  353. label = text('Payment')
  354. text_attr = "text"
  355. value_attr = "id"
  356. } ?>
  357. </td>
  358. </tr>
  359. <tr id="business-threshold-row">
  360. <td> <?lsmb INCLUDE select element_data = {
  361. name = "business_id"
  362. options = business_types
  363. default_values = [business_id]
  364. text_attr = "description"
  365. value_attr = "id"
  366. label = text('Business Type:') #'
  367. } ?>
  368. </td>
  369. <td> <?lsmb INCLUDE input element_data = {
  370. name = "threshold"
  371. value = threshold
  372. type = "text"
  373. size = "20"
  374. label = text('Threshold')
  375. class = "numeric"
  376. } ?>
  377. </tr>
  378. </table>
  379. <?lsmb IF credit_id;
  380. INCLUDE button element_data = {
  381. text = text('Save Changes'),
  382. class="submit"
  383. type="submit"
  384. name="action"
  385. value="save_credit"
  386. accesskey="C"
  387. title="Save Credit Account[Alt-C]"
  388. };
  389. END ?>
  390. <?lsmb INCLUDE button element_data = {
  391. text = text('Save New'),
  392. class="submit"
  393. type="submit"
  394. name="action"
  395. value="save_credit_new"
  396. title="Save Credit Account as New" #'
  397. } ?>
  398. <?lsmb INCLUDE button element_data = {
  399. class="submit"
  400. type="submit"
  401. name="action"
  402. value="add_transaction"
  403. accesskey="A"
  404. title="Transaction [Alt-A]"
  405. text = (entity_class == 1) ? text('AP Transaction') : text('AR Transaction')
  406. } ?>
  407. <?lsmb INCLUDE button element_data = {
  408. class="submit"
  409. type="submit"
  410. name="action"
  411. value="add_invoice"
  412. accesskey="I"
  413. title="Invoice [Alt-I]"
  414. text = (entity_class == 1) ? text('Vendor Invoice') : text('Customer Invoice')
  415. } ?>
  416. <?lsmb INCLUDE button element_data = {
  417. class="submit"
  418. type="submit"
  419. name="action"
  420. value="add_order"
  421. accesskey="O"
  422. title="Order [Alt-O]"
  423. text = (entity_class == 1) ? text('Purchase Order') : text('Sales Order')
  424. } ?>
  425. <?lsmb INCLUDE button element_data = {
  426. class="submit"
  427. type="submit"
  428. name="action"
  429. value="rfq"
  430. accesskey="Q"
  431. title="Quotation [Alt-Q]"
  432. text = (entity_class == 1) ? text('RFQ') : text('Quotation')
  433. } ?>
  434. <?lsmb INCLUDE button element_data = {
  435. class="submit"
  436. type="submit"
  437. name="action"
  438. value="pricelist"
  439. accesskey="P"
  440. title="Pricelist [Alt-P]"
  441. text = text('Pricelist')
  442. } ?>
  443. </form>
  444. </div>
  445. <?lsmb END ?>
  446. <?lsmb END ?>
  447. <?lsmb IF entity_id && credit_id ?>
  448. <div id="location_div" class="container">
  449. <div class="listtop"><?lsmb text('Locations') ?></div>
  450. <!-- This entire form should probably be optionaly automated with AJAX
  451. in order to prevent user confusion -CT -->
  452. <form id="location_form" action="<?lsmb script ?>">
  453. <?lsmb PROCESS input element_data = {
  454. type="hidden"
  455. name="entity_id"
  456. value=entity_id
  457. } ?>
  458. <?lsmb PROCESS input element_data = {
  459. type="hidden"
  460. name="credit_id"
  461. value=credit_id
  462. } ?>
  463. <?lsmb PROCESS input element_data = {
  464. type="hidden"
  465. name="location_id"
  466. value=location_id
  467. } ?>
  468. <table width="100%">
  469. <tr class="listheading">
  470. <th class="type"><?lsmb text('Type') ?></th>
  471. <th class="line_one"><?lsmb text('Address1') ?></th>
  472. <th class="city"><?lsmb text('City') ?></th>
  473. <th class="state"><?lsmb text('State/Province') ?></th>
  474. <th class="mail_code"><?lsmb text('ZIP/Post Code') ?></th>
  475. <th class="country"><?lsmb text('Country') ?></th>
  476. <th class="actions"><?lsmb text('Actions') ?></th>
  477. </tr>
  478. <?lsmb FOREACH loc = locations ?>
  479. <tr <?lsmb IF location_id == loc.id ?> class="active" <?lsmb END ?>>
  480. <td class="type"><?lsmb loc.class ?></td>
  481. <td class="line_one"><?lsmb loc.line_one ?></td>
  482. <td class="city"><?lsmb loc.city ?></td>
  483. <td class="state"><?lsmb loc.state ?></td>
  484. <td class="mail_code"><?lsmb loc.mail_code ?></td>
  485. <td class="country"><?lsmb loc.country ?></td>
  486. <td class="actions">
  487. <!-- TODO: Automate links with AJAX -->
  488. <a href="<?lsmb script ?>?action=edit&entity_id=<?lsmb entity_id
  489. ?>&location_id=<?lsmb loc.id ?>&credit_id=<?lsmb
  490. credit_id ?>">[edit]</a>
  491. <a href="<?lsmb script ?>?action=delete_location&entity_id=<?lsmb
  492. entity_id ?>&location_id=<?lsmb loc.id
  493. ?>&credit_id = <?lsmb credit_id ?>">[delete]</a>
  494. </td>
  495. </tr>
  496. <?lsmb END ?>
  497. </table>
  498. <div> <!-- TODO: Move to elements.html -CT -->
  499. <label for="loc_type"><?lsmb text('Type:') ?></label>
  500. <select id='loc_type' name="location_class">
  501. <?lsmb FOREACH lc = location_class_list ?>
  502. <option value="<?lsmb lc.id ?>"><?lsmb lc.class ?></option>
  503. <?lsmb END ?>
  504. </select>
  505. </div>
  506. <div>
  507. <?lsmb PROCESS input element_data = {
  508. label = text('Address:'),
  509. name = "line_one",
  510. value = line_one,
  511. type = "text",
  512. size = "20"
  513. } ?>
  514. </div>
  515. <div>
  516. <?lsmb PROCESS input element_data = {
  517. name = "line_two",
  518. value = line_two,
  519. type = "text",
  520. size = "20"
  521. } ?>
  522. </div>
  523. <div>
  524. <?lsmb PROCESS input element_data = {
  525. name = "line_three",
  526. value = line_three,
  527. type = "text",
  528. size = "20"
  529. } ?>
  530. </div>
  531. <div>
  532. <?lsmb PROCESS input element_data = {
  533. label = text('City:'),
  534. name = "city",
  535. value = city,
  536. type = "text",
  537. size = "20"
  538. } ?>
  539. </div>
  540. <div>
  541. <?lsmb PROCESS input element_data = {
  542. label = text('State/Province:'),
  543. name = "state",
  544. value = state,
  545. type = "text",
  546. size = "20"
  547. } ?>
  548. </div>
  549. <div>
  550. <?lsmb PROCESS input element_data = {
  551. label = text('Zip/Post Code:'),
  552. name = "mail_code",
  553. value = mail_code,
  554. type = "text",
  555. size = "20"
  556. } #' ?>
  557. </div>
  558. <div> <!-- TODO: Move to elements.html -CT -->
  559. <?lsmb INCLUDE select element_data = {
  560. text_attr = "name"
  561. value_attr = "id"
  562. default_values = [country]
  563. options = country_list
  564. name = "country_code"
  565. label = text('Country:')
  566. } ?>
  567. </div>
  568. <div><?lsmb PROCESS button element_data = {
  569. class = "submit"
  570. name = "action"
  571. value = "add_location"
  572. id = "loc_save_location"
  573. text = text('Save Location')
  574. } #' ?>
  575. </div>
  576. </form>
  577. </div>
  578. <div class="container" id="contact_div">
  579. <div class="listtop"><?lsmb text('Contact Information') ?></div>
  580. <table width="100%">
  581. <tr class="listheading">
  582. <th class="contact_class"><?lsmb text('Type:') ?></th>
  583. <th class="contact"><?lsmb text('Contact Info:') ?></th>
  584. <th class="contact_actions"><?lsmb text('Actions:') ?></th>
  585. </tr>
  586. <?lsmb FOREACH ct = contacts ?>
  587. <tr>
  588. <td class="contact_class"><?lsmb ct.class ?></td>
  589. <td class="contact"><?lsmb ct.contact ?></td>
  590. <td class="contact_actions">
  591. <a href="<?lsmb script ?>?entity_id=<?lsmb entity_id
  592. ?>&contact=<?lsmb ct.contact
  593. ?>&contact_class=<?lsmb ct.class_id
  594. ?>&description=<?lsmb ct.description
  595. ?>&action=edit&credit_id=<?lsmb
  596. credit_id ?>"
  597. >[<?lsmb text('Edit'); ?>]</a>&nbsp;&nbsp;
  598. <a href="<?lsmb script ?>?entity_id=<?lsmb entity_id
  599. ?>&contact_id=<?lsmb ct.id
  600. ?>&action=delete_contact&credit_id=<?lsmb
  601. credit_id ?>"
  602. >[<?lsmb text('Delete'); ?>]</a>
  603. </td>
  604. </tr>
  605. <?lsmb END ?>
  606. </table>
  607. <form action="<?lsmb script ?>">
  608. <?lsmb PROCESS input element_data = {
  609. type="hidden"
  610. name="entity_id"
  611. value=entity_id
  612. } ?>
  613. <?lsmb PROCESS input element_data = {
  614. type="hidden"
  615. name="credit_id"
  616. value=credit_id
  617. } ?>
  618. <?lsmb PROCESS input element_data = {
  619. type="hidden"
  620. name="old_contact_class"
  621. value=contact_class
  622. } ?>
  623. <?lsmb PROCESS input element_data = {
  624. type="hidden"
  625. name="old_contact"
  626. value=contact
  627. } ?>
  628. <?lsmb PROCESS input element_data = {
  629. type="hidden"
  630. name="contact_id"
  631. value=contact_id
  632. } ?>
  633. <div>
  634. <?lsmb PROCESS select element_data = {
  635. name = "contact_class"
  636. label = "Type"
  637. text_attr = "class"
  638. value_attr = "id"
  639. default_values = [contact_class]
  640. options = contact_class_list
  641. } ?>
  642. </div>
  643. <div>
  644. <?lsmb PROCESS input element_data = {
  645. label = text('Description:'),
  646. name = "description"
  647. value = description
  648. type = "text"
  649. size = "20"
  650. } #' ?>
  651. </div>
  652. <div>
  653. <?lsmb PROCESS input element_data = {
  654. label = text('Contact Info:'),
  655. name = "contact"
  656. value = contact
  657. type = "text"
  658. size = "20"
  659. } #' ?>
  660. </div>
  661. <div><?lsmb PROCESS button element_data = {
  662. name = "action",
  663. value = "save_contact",
  664. text = text('Save Contact'),
  665. class = "submit"
  666. } #' ?>
  667. </div>
  668. </form>
  669. </div>
  670. <div class="container" id="bank_div">
  671. <div class="listtop"><?lsmb text('Bank Accounts') ?></div>
  672. <table width="100%">
  673. <tr class="listheading">
  674. <th class="bic"><?lsmb text('BIC/SWIFT Code') ?></th>
  675. <th class="iban"><?lsmb text('Account Number') ?></th>
  676. <th class="actions"><?lsmb text('Actions') ?></th>
  677. </tr>
  678. <?lsmb FOREACH ba = bank_account ?>
  679. <tr>
  680. <td class="bic"><?lsmb ba.bic ?></td>
  681. <td class="iban"><?lsmb ba.iban ?></td>
  682. <td class="actions">
  683. <a href="<?lsmb script ?>?action=edit_bank_acct&entity_id=<?lsmb
  684. entity_id ?>&bank_account_id=<?lsmb ba.id ?>"
  685. >[Edit]</a>
  686. <a href="<?lsmb script ?>?action=delete_bank_acct&entity_id=<?lsmb
  687. entity_id ?>&bank_account_id=<?lsmb ba.id ?>"
  688. >[Delete]</a>
  689. </td>
  690. </tr>
  691. <?lsmb END ?>
  692. </table>
  693. <form name="bank_acct" action="<?lsmb script ?>">
  694. <?lsmb PROCESS input element_data = {
  695. type="hidden"
  696. name="entity_id"
  697. value=entity_id
  698. } ?>
  699. <?lsmb PROCESS input element_data = {
  700. type="hidden"
  701. name="credit_id"
  702. value=credit_id
  703. } ?>
  704. <?lsmb PROCESS input element_data = {
  705. type="hidden"
  706. name="bank_account_id"
  707. value=bank_account_id
  708. } ?>
  709. <div><label for="bic">
  710. <?lsmb INCLUDE input element_data = {
  711. type="text"
  712. label = text('BIC/SWIFT Code:')
  713. name="bic"
  714. value=bic
  715. size=20
  716. } #' ?>
  717. </div>
  718. <div><label for="iban">
  719. <?lsmb PROCESS input element_data = {
  720. type="text"
  721. label = text('Bank Account:')
  722. name="iban"
  723. value=iban
  724. size=20
  725. } #' ?>
  726. </div>
  727. <div><?lsmb PROCESS button element_data = {
  728. name="action"
  729. value="save_bank_account"
  730. class="submit"
  731. text = text('Save')
  732. } ?>
  733. </div>
  734. </form>
  735. </div>
  736. <div id="notes_div">
  737. <div class="listtop"><?lsmb text('Notes') ?></div>
  738. <?lsmb FOREACH n = notes ?>
  739. <div class="note">
  740. <div class="timestamp"><?lsmb text('Entered at: [_1]', n.created) ?></div>
  741. <div class="author"><?lsmb text("Author: [_1]", n.created_by) ?></div>
  742. <div class="note_contents"><?lsmb n.note ?></div>
  743. </div>
  744. <?lsmb END ?>
  745. <form action="<?lsmb script ?>" method="post">
  746. <?lsmb PROCESS input element_data = {
  747. type="hidden"
  748. name="entity_id"
  749. value=entity_id
  750. } ?>
  751. <?lsmb PROCESS input element_data = {
  752. type="hidden"
  753. name="credit_id"
  754. value=credit_id
  755. } ?>
  756. <?lsmb IF credit_id -?>
  757. <div class="input"><?lsmb PROCESS select element_data = {
  758. name = "note_class"
  759. default_values = [note_class]
  760. options = note_class_options
  761. label = text("Note Class") #"
  762. text_attr = "label"
  763. value_attr = "value"
  764. } ?>
  765. </div>
  766. <?lsmb END # IF credit_id -?>
  767. <div class="input"><?lsmb PROCESS textarea element_data = {
  768. label = text('Notes:<br />')
  769. name = 'note'
  770. } ?></div>
  771. <div class="input">
  772. <?lsmb PROCESS button element_data = {
  773. text = text('Save')
  774. class = 'submit'
  775. name = 'action'
  776. value = 'save_notes'
  777. } ?>
  778. </form>
  779. </div>
  780. <?lsmb END ?>
  781. </body>
  782. </html>