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