summaryrefslogtreecommitdiff
path: root/UI/Contact/contact.html
blob: 7c22bfe13f07fb3f5adc48773d78847f1b8faaf1 (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_contents"><?lsmb n.note ?></div>
  212. <?lsmb END ?>
  213. </div>
  214. <?lsmb IF entity_id ?>
  215. <div id="credit_div">
  216. <div class="listtop"><strong>Accounts</strong></div>
  217. <table width="100%">
  218. <tr class="listheading">
  219. <th class="account_class"><?lsmb text('Type') ?></th>
  220. <th class="number"><?lsmb text("Number") ?></th>
  221. <th class="credit_limit"><?lsmb text('Credit Limit') ?></th>
  222. <th class="start_date"><?lsmb text('Start Date') ?></th>
  223. <th class="end_date"><?lsmb text('End Date') ?></th>
  224. </tr>
  225. <?lsmb FOREACH cl_item = credit_list ?>
  226. <tr <?lsmb IF meta_number == cl_item.meta_number ?> class="active"<?lsmb END ?>>
  227. <td><?lsmb IF cl_item.entity_class == 1 ?><?lsmb text('Vendor') ?>
  228. <?lsmb ELSIF cl_item.entity_class == 2 ?><?lsmb text('Customer') ?>
  229. <?lsmb END ?>
  230. </td>
  231. <td><a href="<?lsmb script ?>?action=get&account_class=<?lsmb
  232. account_class ?>&entity_id=<?lsmb entity_id
  233. ?>&meta_number=<?lsmb cl_item.meta_number ?>"><?lsmb cl_item.meta_number ?></a></td>
  234. <td><?lsmb cl_item.credit_limit ?></td>
  235. <td><?lsmb cl_item.start_date ?></td>
  236. <td><?lsmb cl_item.end_date ?></td>
  237. </tr>
  238. <?lsmb END ?>
  239. </table>
  240. <form id="credit_form" name="credit_form" method="post"
  241. action="<?lsmb script ?>">
  242. <?lsmb PROCESS input element_data = {
  243. type = "hidden"
  244. name = "entity_id"
  245. value = entity_id
  246. } ?>
  247. <?lsmb PROCESS input element_data = {
  248. type = "hidden"
  249. name = "credit_id"
  250. value = credit_id
  251. } ?>
  252. <?lsmb PROCESS input element_data = {
  253. type = "hidden"
  254. name = "account_class"
  255. value = account_class
  256. } ?>
  257. <?lsmb PROCESS input element_data = {
  258. label = text("$entity_classname Number:"),
  259. type= "text",
  260. name = "meta_number",
  261. value = meta_number,
  262. size = "20"
  263. } # " ?><br/>
  264. <table>
  265. <tr id="date-row">
  266. <td>
  267. <?lsmb PROCESS input element_data = {
  268. label = text('Starting Date:'),
  269. name = "startdate",
  270. class = "date",
  271. value = startdate,
  272. type = "text",
  273. size = "12",
  274. maxlength = "10"
  275. } #' ?>
  276. </td>
  277. <td>
  278. <?lsmb PROCESS input element_data = {
  279. label = text('End Date:'),
  280. name = "enddate",
  281. class = "date",
  282. value = enddate,
  283. type = "text",
  284. size = "12",
  285. maxlength = "10"
  286. } #' ?>
  287. </td>
  288. </tr>
  289. <tr id="credit-row">
  290. <td>
  291. <?lsmb INCLUDE input element_data = {
  292. label = text('Credit Limit:'),
  293. name = "creditlimit",
  294. value = creditlimit,
  295. type = "text",
  296. size = "20"
  297. } #' ?>
  298. </td>
  299. <td>
  300. <?lsmb INCLUDE input element_data = {
  301. label = text('Terms:'),
  302. name = "terms",
  303. value = terms,
  304. type = "text",
  305. size = "5"
  306. } ?> <?lsmb text('days') ?>
  307. </td>
  308. </tr>
  309. <tr id="discount-gifi-row">
  310. <td>
  311. <?lsmb INCLUDE input element_data = {
  312. label = text('Discount:'),
  313. name = "discount",
  314. value = discount,
  315. type = "text",
  316. size = "3",
  317. maxlength = 3
  318. } ?>% /
  319. <?lsmb INCLUDE input element_data = {
  320. name = "discount_terms",
  321. value = discount_terms,
  322. type = "text",
  323. size = "3",
  324. maxlength = 3
  325. } ?> <?lsmb text('days') ?>
  326. </td>
  327. <td>
  328. <?lsmb INCLUDE input element_data = {
  329. label = text('Subcontract GIFI:'),
  330. name = "gifi_accno",
  331. value = gifi_accno,
  332. type = "text",
  333. size = "19"
  334. } #' ?>
  335. </td>
  336. </tr>
  337. <tr id="account-link-row">
  338. <td> <?lsmb INCLUDE select element_data = {
  339. name = "ar_ap_account_id"
  340. default_values = [ar_ap_account_id]
  341. options = ar_ap_acc_list
  342. label = text((account_class == 1) ? 'AP' : 'AR')
  343. text_attr = "text"
  344. value_attr = "id"
  345. } ?>
  346. </td>
  347. <td> <?lsmb INCLUDE select element_data = {
  348. name = "cash_account_id"
  349. default_values = [cash_account_id]
  350. options = cash_acc_list
  351. label = text('Payment')
  352. text_attr = "text"
  353. value_attr = "id"
  354. } ?>
  355. </td>
  356. </tr>
  357. <tr id="business-threshold-row">
  358. <td> <?lsmb INCLUDE select element_data = {
  359. name = "business_id"
  360. options = business_types
  361. default_values = [business_id]
  362. text_attr = "description"
  363. value_attr = "id"
  364. label = text('Business Type:') #'
  365. } ?>
  366. </td>
  367. <td> <?lsmb INCLUDE input element_data = {
  368. name = "threshold"
  369. value = threshold
  370. type = "text"
  371. size = "20"
  372. label = text('Threshold')
  373. class = "numeric"
  374. } ?>
  375. </tr>
  376. </table>
  377. <?lsmb IF credit_id;
  378. INCLUDE button element_data = {
  379. text = text('Save Changes'),
  380. class="submit"
  381. type="submit"
  382. name="action"
  383. value="save_credit"
  384. accesskey="C"
  385. title="Save Credit Account[Alt-C]"
  386. };
  387. END ?>
  388. <?lsmb INCLUDE button element_data = {
  389. text = text('Save New'),
  390. class="submit"
  391. type="submit"
  392. name="action"
  393. value="save_credit_new"
  394. title="Save Credit Account as New" #'
  395. } ?>
  396. <?lsmb INCLUDE button element_data = {
  397. class="submit"
  398. type="submit"
  399. name="action"
  400. value="add_transaction"
  401. accesskey="A"
  402. title="Transaction [Alt-A]"
  403. text = (entity_class == 1) ? text('AP Transaction') : text('AR Transaction')
  404. } ?>
  405. <?lsmb INCLUDE button element_data = {
  406. class="submit"
  407. type="submit"
  408. name="action"
  409. value="add_invoice"
  410. accesskey="I"
  411. title="Invoice [Alt-I]"
  412. text = (entity_class == 1) ? text('Vendor Invoice') : text('Customer Invoice')
  413. } ?>
  414. <?lsmb INCLUDE button element_data = {
  415. class="submit"
  416. type="submit"
  417. name="action"
  418. value="add_order"
  419. accesskey="O"
  420. title="Order [Alt-O]"
  421. text = (entity_class == 1) ? text('Purchase Order') : text('Sales Order')
  422. } ?>
  423. <?lsmb INCLUDE button element_data = {
  424. class="submit"
  425. type="submit"
  426. name="action"
  427. value="rfq"
  428. accesskey="Q"
  429. title="Quotation [Alt-Q]"
  430. text = (entity_class == 1) ? text('RFQ') : text('Quotation')
  431. } ?>
  432. <?lsmb INCLUDE button element_data = {
  433. class="submit"
  434. type="submit"
  435. name="action"
  436. value="pricelist"
  437. accesskey="P"
  438. title="Pricelist [Alt-P]"
  439. text = text('Pricelist')
  440. } ?>
  441. </form>
  442. </div>
  443. <?lsmb END ?>
  444. <?lsmb END ?>
  445. <?lsmb IF entity_id && credit_id ?>
  446. <div id="location_div" class="container">
  447. <div class="listtop"><?lsmb text('Locations') ?></div>
  448. <!-- This entire form should probably be optionaly automated with AJAX
  449. in order to prevent user confusion -CT -->
  450. <form id="location_form" action="<?lsmb script ?>">
  451. <?lsmb PROCESS input element_data = {
  452. type="hidden"
  453. name="entity_id"
  454. value=entity_id
  455. } ?>
  456. <?lsmb PROCESS input element_data = {
  457. type="hidden"
  458. name="credit_id"
  459. value=credit_id
  460. } ?>
  461. <?lsmb PROCESS input element_data = {
  462. type="hidden"
  463. name="location_id"
  464. value=location_id
  465. } ?>
  466. <table width="100%">
  467. <tr class="listheading">
  468. <th class="type"><?lsmb text('Type') ?></th>
  469. <th class="line_one"><?lsmb text('Address1') ?></th>
  470. <th class="city"><?lsmb text('City') ?></th>
  471. <th class="state"><?lsmb text('State/Province') ?></th>
  472. <th class="mail_code"><?lsmb text('ZIP/Post Code') ?></th>
  473. <th class="country"><?lsmb text('Country') ?></th>
  474. <th class="actions"><?lsmb text('Actions') ?></th>
  475. </tr>
  476. <?lsmb FOREACH loc = locations ?>
  477. <tr <?lsmb IF location_id == loc.id ?> class="active" <?lsmb END ?>>
  478. <td class="type"><?lsmb loc.class ?></td>
  479. <td class="line_one"><?lsmb loc.line_one ?></td>
  480. <td class="city"><?lsmb loc.city ?></td>
  481. <td class="state"><?lsmb loc.state ?></td>
  482. <td class="mail_code"><?lsmb loc.mail_code ?></td>
  483. <td class="country"><?lsmb loc.country ?></td>
  484. <td class="actions">
  485. <!-- TODO: Automate links with AJAX -->
  486. <a href="<?lsmb script ?>?action=edit&entity_id=<?lsmb entity_id
  487. ?>&location_id=<?lsmb loc.id ?>&credit_id=<?lsmb
  488. credit_id ?>">[edit]</a>
  489. <a href="<?lsmb script ?>?action=delete_location&entity_id=<?lsmb
  490. entity_id ?>&location_id=<?lsmb loc.id
  491. ?>&credit_id = <?lsmb credit_id ?>">[delete]</a>
  492. </td>
  493. </tr>
  494. <?lsmb END ?>
  495. </table>
  496. <div> <!-- TODO: Move to elements.html -CT -->
  497. <label for="loc_type"><?lsmb text('Type:') ?></label>
  498. <select id='loc_type' name="location_class">
  499. <?lsmb FOREACH lc = location_class_list ?>
  500. <option value="<?lsmb lc.id ?>"><?lsmb lc.class ?></option>
  501. <?lsmb END ?>
  502. </select>
  503. </div>
  504. <div>
  505. <?lsmb PROCESS input element_data = {
  506. label = text('Address:'),
  507. name = "line_one",
  508. value = line_one,
  509. type = "text",
  510. size = "20"
  511. } ?>
  512. </div>
  513. <div>
  514. <?lsmb PROCESS input element_data = {
  515. name = "line_two",
  516. value = line_two,
  517. type = "text",
  518. size = "20"
  519. } ?>
  520. </div>
  521. <div>
  522. <?lsmb PROCESS input element_data = {
  523. name = "line_three",
  524. value = line_three,
  525. type = "text",
  526. size = "20"
  527. } ?>
  528. </div>
  529. <div>
  530. <?lsmb PROCESS input element_data = {
  531. label = text('City:'),
  532. name = "city",
  533. value = city,
  534. type = "text",
  535. size = "20"
  536. } ?>
  537. </div>
  538. <div>
  539. <?lsmb PROCESS input element_data = {
  540. label = text('State/Province:'),
  541. name = "state",
  542. value = state,
  543. type = "text",
  544. size = "20"
  545. } ?>
  546. </div>
  547. <div>
  548. <?lsmb PROCESS input element_data = {
  549. label = text('Zip/Post Code:'),
  550. name = "mail_code",
  551. value = mail_code,
  552. type = "text",
  553. size = "20"
  554. } #' ?>
  555. </div>
  556. <div> <!-- TODO: Move to elements.html -CT -->
  557. <?lsmb INCLUDE select element_data = {
  558. text_attr = "name"
  559. value_attr = "id"
  560. default_values = [country]
  561. options = country_list
  562. name = "country_code"
  563. label = text('Country:')
  564. } ?>
  565. </div>
  566. <div><?lsmb PROCESS button element_data = {
  567. class = "submit"
  568. name = "action"
  569. value = "add_location"
  570. id = "loc_save_location"
  571. text = text('Save Location')
  572. } #' ?>
  573. </div>
  574. </form>
  575. </div>
  576. <div class="container" id="contact_div">
  577. <div class="listtop"><?lsmb text('Contact Information') ?></div>
  578. <table width="100%">
  579. <tr class="listheading">
  580. <th class="contact_class"><?lsmb text('Type:') ?></th>
  581. <th class="contact"><?lsmb text('Contact Info:') ?></th>
  582. <th class="contact_actions"><?lsmb text('Actions:') ?></th>
  583. </tr>
  584. <?lsmb FOREACH ct = contacts ?>
  585. <tr>
  586. <td class="contact_class"><?lsmb ct.class ?></td>
  587. <td class="contact"><?lsmb ct.contact ?></td>
  588. <td class="contact_actions">
  589. <a href="<?lsmb script ?>?entity_id=<?lsmb entity_id
  590. ?>&contact=<?lsmb ct.contact
  591. ?>&contact_class=<?lsmb ct.class_id
  592. ?>&description=<?lsmb ct.description
  593. ?>&action=edit&credit_id=<?lsmb
  594. credit_id ?>"
  595. >[<?lsmb text('Edit'); ?>]</a>&nbsp;&nbsp;
  596. <a href="<?lsmb script ?>?entity_id=<?lsmb entity_id
  597. ?>&contact_id=<?lsmb ct.id
  598. ?>&action=delete_contact&credit_id=<?lsmb
  599. credit_id ?>"
  600. >[<?lsmb text('Delete'); ?>]</a>
  601. </td>
  602. </tr>
  603. <?lsmb END ?>
  604. </table>
  605. <form action="<?lsmb script ?>">
  606. <?lsmb PROCESS input element_data = {
  607. type="hidden"
  608. name="entity_id"
  609. value=entity_id
  610. } ?>
  611. <?lsmb PROCESS input element_data = {
  612. type="hidden"
  613. name="credit_id"
  614. value=credit_id
  615. } ?>
  616. <?lsmb PROCESS input element_data = {
  617. type="hidden"
  618. name="old_contact_class"
  619. value=contact_class
  620. } ?>
  621. <?lsmb PROCESS input element_data = {
  622. type="hidden"
  623. name="old_contact"
  624. value=contact
  625. } ?>
  626. <?lsmb PROCESS input element_data = {
  627. type="hidden"
  628. name="contact_id"
  629. value=contact_id
  630. } ?>
  631. <div>
  632. <?lsmb PROCESS select element_data = {
  633. name = "contact_class"
  634. label = "Type"
  635. text_attr = "class"
  636. value_attr = "id"
  637. default_values = [contact_class]
  638. options = contact_class_list
  639. } ?>
  640. </div>
  641. <div>
  642. <?lsmb PROCESS input element_data = {
  643. label = text('Description:'),
  644. name = "description"
  645. value = description
  646. type = "text"
  647. size = "20"
  648. } #' ?>
  649. </div>
  650. <div>
  651. <?lsmb PROCESS input element_data = {
  652. label = text('Contact Info:'),
  653. name = "contact"
  654. value = contact
  655. type = "text"
  656. size = "20"
  657. } #' ?>
  658. </div>
  659. <div><?lsmb PROCESS button element_data = {
  660. name = "action",
  661. value = "save_contact",
  662. text = text('Save Contact'),
  663. class = "submit"
  664. } #' ?>
  665. </div>
  666. </form>
  667. </div>
  668. <div class="container" id="bank_div">
  669. <div class="listtop"><?lsmb text('Bank Accounts') ?></div>
  670. <table width="100%">
  671. <tr class="listheading">
  672. <th class="bic"><?lsmb text('BIC/SWIFT Code') ?></th>
  673. <th class="iban"><?lsmb text('Account Number') ?></th>
  674. <th class="actions"><?lsmb text('Actions') ?></th>
  675. </tr>
  676. <?lsmb FOREACH ba = bank_account ?>
  677. <tr>
  678. <td class="bic"><?lsmb ba.bic ?></td>
  679. <td class="iban"><?lsmb ba.iban ?></td>
  680. <td class="actions">
  681. <a href="<?lsmb script ?>?action=edit_bank_acct&entity_id=<?lsmb
  682. entity_id ?>&bank_account_id=<?lsmb ba.id ?>"
  683. >[Edit]</a>
  684. <a href="<?lsmb script ?>?action=delete_bank_acct&entity_id=<?lsmb
  685. entity_id ?>&bank_account_id=<?lsmb ba.id ?>"
  686. >[Delete]</a>
  687. </td>
  688. </tr>
  689. <?lsmb END ?>
  690. </table>
  691. <form name="bank_acct" action="<?lsmb script ?>">
  692. <?lsmb PROCESS input element_data = {
  693. type="hidden"
  694. name="entity_id"
  695. value=entity_id
  696. } ?>
  697. <?lsmb PROCESS input element_data = {
  698. type="hidden"
  699. name="credit_id"
  700. value=credit_id
  701. } ?>
  702. <?lsmb PROCESS input element_data = {
  703. type="hidden"
  704. name="bank_account_id"
  705. value=bank_account_id
  706. } ?>
  707. <div><label for="bic">
  708. <?lsmb INCLUDE input element_data = {
  709. type="text"
  710. label = text('BIC/SWIFT Code:')
  711. name="bic"
  712. value=bic
  713. size=20
  714. } #' ?>
  715. </div>
  716. <div><label for="iban">
  717. <?lsmb PROCESS input element_data = {
  718. type="text"
  719. label = text('Bank Account:')
  720. name="iban"
  721. value=iban
  722. size=20
  723. } #' ?>
  724. </div>
  725. <div><?lsmb PROCESS button element_data = {
  726. name="action"
  727. value="save_bank_account"
  728. class="submit"
  729. text = text('Save')
  730. } ?>
  731. </div>
  732. </form>
  733. </div>
  734. <div id="notes_div">
  735. <div class="listtop"><?lsmb text('Notes') ?></div>
  736. <?lsmb FOREACH n = notes ?>
  737. <div class="note">
  738. <div class="timestamp"><?lsmb text('Entered at: [_1]', n.created) ?></div>
  739. <div class="author"><?lsmb text("Author: [_1]", n.created_by) ?></div>
  740. <div class="note_contents"><?lsmb n.note ?></div>
  741. </div>
  742. <?lsmb END ?>
  743. <form action="<?lsmb script ?>" method="post">
  744. <?lsmb PROCESS input element_data = {
  745. type="hidden"
  746. name="entity_id"
  747. value=entity_id
  748. } ?>
  749. <?lsmb PROCESS input element_data = {
  750. type="hidden"
  751. name="credit_id"
  752. value=credit_id
  753. } ?>
  754. <?lsmb IF credit_id -?>
  755. <div class="input"><?lsmb PROCESS select element_data = {
  756. name = "note_class"
  757. default_values = [note_class]
  758. options = note_class_options
  759. label = text("Note Class") #"
  760. text_attr = "label"
  761. value_attr = "value"
  762. } ?>
  763. </div>
  764. <?lsmb END # IF credit_id -?>
  765. <div class="input"><?lsmb PROCESS textarea element_data = {
  766. label = text('Notes:<br />')
  767. name = 'note'
  768. } ?></div>
  769. <div class="input">
  770. <?lsmb PROCESS button element_data = {
  771. text = text('Save')
  772. class = 'submit'
  773. name = 'action'
  774. value = 'save_notes'
  775. } ?>
  776. </form>
  777. </div>
  778. <?lsmb END ?>
  779. </body>
  780. </html>