summaryrefslogtreecommitdiff
path: root/UI/Contact/contact.html
blob: f406bd3f937645eb49abce62afac10c44e7cf36e (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><?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 IF credit_id;
  376. INCLUDE button element_data = {
  377. text = text('Save Changes'),
  378. class="submit"
  379. type="submit"
  380. name="action"
  381. value="save_credit"
  382. accesskey="C"
  383. title="Save Credit Account[Alt-C]"
  384. };
  385. END ?>
  386. <?lsmb INCLUDE button element_data = {
  387. text = text('Save New'),
  388. class="submit"
  389. type="submit"
  390. name="action"
  391. value="save_credit_new"
  392. title="Save Credit Account as New" #'
  393. } ?>
  394. <?lsmb INCLUDE button element_data = {
  395. class="submit"
  396. type="submit"
  397. name="action"
  398. value="add_transaction"
  399. accesskey="A"
  400. title="Transaction [Alt-A]"
  401. text = (entity_class == 1) ? text('AP Transaction') : text('AR Transaction')
  402. } ?>
  403. <?lsmb INCLUDE button element_data = {
  404. class="submit"
  405. type="submit"
  406. name="action"
  407. value="add_invoice"
  408. accesskey="I"
  409. title="Invoice [Alt-I]"
  410. text = (entity_class == 1) ? text('Vendor Invoice') : text('Customer Invoice')
  411. } ?>
  412. <?lsmb INCLUDE button element_data = {
  413. class="submit"
  414. type="submit"
  415. name="action"
  416. value="add_order"
  417. accesskey="O"
  418. title="Order [Alt-O]"
  419. text = (entity_class == 1) ? text('Purchase Order') : text('Sales Order')
  420. } ?>
  421. <?lsmb INCLUDE button element_data = {
  422. class="submit"
  423. type="submit"
  424. name="action"
  425. value="rfq"
  426. accesskey="Q"
  427. title="Quotation [Alt-Q]"
  428. text = (entity_class == 1) ? text('RFQ') : text('Quotation')
  429. } ?>
  430. <?lsmb INCLUDE button element_data = {
  431. class="submit"
  432. type="submit"
  433. name="action"
  434. value="pricelist"
  435. accesskey="P"
  436. title="Pricelist [Alt-P]"
  437. text = text('Pricelist')
  438. } ?>
  439. </form>
  440. </div>
  441. <?lsmb END ?>
  442. <?lsmb END ?>
  443. <?lsmb IF entity_id && credit_id ?>
  444. <div id="location_div" class="container">
  445. <div class="listtop"><?lsmb text('Locations') ?></div>
  446. <!-- This entire form should probably be optionaly automated with AJAX
  447. in order to prevent user confusion -CT -->
  448. <form id="location_form" action="<?lsmb script ?>">
  449. <?lsmb PROCESS input element_data = {
  450. type="hidden"
  451. name="entity_id"
  452. value=entity_id
  453. } ?>
  454. <?lsmb PROCESS input element_data = {
  455. type="hidden"
  456. name="credit_id"
  457. value=credit_id
  458. } ?>
  459. <?lsmb PROCESS input element_data = {
  460. type="hidden"
  461. name="location_id"
  462. value=location_id
  463. } ?>
  464. <table width="100%">
  465. <tr class="listheading">
  466. <th class="type"><?lsmb text('Type') ?></th>
  467. <th class="line_one"><?lsmb text('Address1') ?></th>
  468. <th class="city"><?lsmb text('City') ?></th>
  469. <th class="state"><?lsmb text('State/Province') ?></th>
  470. <th class="mail_code"><?lsmb text('ZIP/Post Code') ?></th>
  471. <th class="country"><?lsmb text('Country') ?></th>
  472. <th class="actions"><?lsmb text('Actions') ?></th>
  473. </tr>
  474. <?lsmb FOREACH loc = locations ?>
  475. <tr <?lsmb IF location_id == loc.id ?> class="active" <?lsmb END ?>>
  476. <td class="type"><?lsmb loc.class ?></td>
  477. <td class="line_one"><?lsmb loc.line_one ?></td>
  478. <td class="city"><?lsmb loc.city ?></td>
  479. <td class="state"><?lsmb loc.state ?></td>
  480. <td class="mail_code"><?lsmb loc.mail_code ?></td>
  481. <td class="country"><?lsmb loc.country ?></td>
  482. <td class="actions">
  483. <!-- TODO: Automate links with AJAX -->
  484. <a href="<?lsmb script ?>?action=edit&entity_id=<?lsmb entity_id
  485. ?>&location_id=<?lsmb loc.id ?>&credit_id=<?lsmb
  486. credit_id ?>">[edit]</a>
  487. <a href="<?lsmb script ?>?action=delete_location&entity_id=<?lsmb
  488. entity_id ?>&location_id=<?lsmb loc.id
  489. ?>&credit_id = <?lsmb credit_id ?>">[delete]</a>
  490. </td>
  491. </tr>
  492. <?lsmb END ?>
  493. </table>
  494. <div> <!-- TODO: Move to elements.html -CT -->
  495. <label for="loc_type"><?lsmb text('Type:') ?></label>
  496. <select id='loc_type' name="location_class">
  497. <?lsmb FOREACH lc = location_class_list ?>
  498. <option value="<?lsmb lc.id ?>"><?lsmb lc.class ?></option>
  499. <?lsmb END ?>
  500. </select>
  501. </div>
  502. <div>
  503. <?lsmb PROCESS input element_data = {
  504. label = text('Address:'),
  505. name = "line_one",
  506. value = line_one,
  507. type = "text",
  508. size = "20"
  509. } ?>
  510. </div>
  511. <div>
  512. <?lsmb PROCESS input element_data = {
  513. name = "line_two",
  514. value = line_two,
  515. type = "text",
  516. size = "20"
  517. } ?>
  518. </div>
  519. <div>
  520. <?lsmb PROCESS input element_data = {
  521. name = "line_three",
  522. value = line_three,
  523. type = "text",
  524. size = "20"
  525. } ?>
  526. </div>
  527. <div>
  528. <?lsmb PROCESS input element_data = {
  529. label = text('City:'),
  530. name = "city",
  531. value = city,
  532. type = "text",
  533. size = "20"
  534. } ?>
  535. </div>
  536. <div>
  537. <?lsmb PROCESS input element_data = {
  538. label = text('State/Province:'),
  539. name = "state",
  540. value = state,
  541. type = "text",
  542. size = "20"
  543. } ?>
  544. </div>
  545. <div>
  546. <?lsmb PROCESS input element_data = {
  547. label = text('Zip/Post Code:'),
  548. name = "mail_code",
  549. value = mail_code,
  550. type = "text",
  551. size = "20"
  552. } #' ?>
  553. </div>
  554. <div> <!-- TODO: Move to elements.html -CT -->
  555. <?lsmb INCLUDE select element_data = {
  556. text_attr = "name"
  557. value_attr = "id"
  558. default_values = [country]
  559. options = country_list
  560. name = "country_code"
  561. label = text('Country:')
  562. } ?>
  563. </div>
  564. <div><?lsmb PROCESS button element_data = {
  565. class = "submit"
  566. name = "action"
  567. value = "add_location"
  568. id = "loc_save_location"
  569. text = text('Save Location')
  570. } #' ?>
  571. </div>
  572. </form>
  573. </div>
  574. <div class="container" id="contact_div">
  575. <div class="listtop"><?lsmb text('Contact Information') ?></div>
  576. <table width="100%">
  577. <tr class="listheading">
  578. <th class="contact_class"><?lsmb text('Type:') ?></th>
  579. <th class="contact"><?lsmb text('Contact Info:') ?></th>
  580. <th class="contact_actions"><?lsmb text('Actions:') ?></th>
  581. </tr>
  582. <?lsmb FOREACH ct = contacts ?>
  583. <tr>
  584. <td class="contact_class"><?lsmb ct.class ?></td>
  585. <td class="contact"><?lsmb ct.contact ?></td>
  586. <td class="contact_actions">
  587. <a href="<?lsmb script ?>?entity_id=<?lsmb entity_id
  588. ?>&contact_id=<?lsmb ct.id
  589. ?>&action=edit&credit_id=<?lsmb
  590. credit_id ?>"
  591. >[<?lsmb text('Edit'); ?>]</a>&nbsp;&nbsp;
  592. <a href="<?lsmb script ?>?entity_id=<?lsmb entity_id
  593. ?>&contact_id=<?lsmb ct.id
  594. ?>&action=delete_contact&credit_id=<?lsmb
  595. credit_id ?>"
  596. >[<?lsmb text('Delete'); ?>]</a>
  597. </td>
  598. </tr>
  599. <?lsmb END ?>
  600. </table>
  601. <form action="<?lsmb script ?>">
  602. <?lsmb PROCESS input element_data = {
  603. type="hidden"
  604. name="entity_id"
  605. value=entity_id
  606. } ?>
  607. <?lsmb PROCESS input element_data = {
  608. type="hidden"
  609. name="credit_id"
  610. value=credit_id
  611. } ?>
  612. <?lsmb PROCESS input element_data = {
  613. type="hidden"
  614. name="contact_id"
  615. value=contact_id
  616. } ?>
  617. <div><label for="contact_type"><?lsmb text('Type:') ?></label>
  618. <select name="contact_class" id="contact_type">
  619. <?lsmb FOREACH cc = contact_class_list ?>
  620. <option value="<?lsmb cc.id ?>"><?lsmb cc.class ?></option>
  621. <?lsmb END ?>
  622. </select>
  623. <!-- TODO: Move the above select list to elements.html -CT -->
  624. </div>
  625. <div>
  626. <?lsmb PROCESS input element_data = {
  627. label = text('Description:'),
  628. name = "description"
  629. value = description
  630. type = "text"
  631. size = "20"
  632. } #' ?>
  633. </div>
  634. <div>
  635. <?lsmb PROCESS input element_data = {
  636. label = text('Contact Info:'),
  637. name = "contact"
  638. value = contact
  639. type = "text"
  640. size = "20"
  641. } #' ?>
  642. </div>
  643. <div><?lsmb PROCESS button element_data = {
  644. name = "action",
  645. value = "save_contact",
  646. text = text('Save Contact'),
  647. class = "submit"
  648. } #' ?>
  649. </div>
  650. </form>
  651. </div>
  652. <div class="container" id="bank_div">
  653. <div class="listtop"><?lsmb text('Bank Accounts') ?></div>
  654. <table width="100%">
  655. <tr class="listheading">
  656. <th class="bic"><?lsmb text('BIC/SWIFT Code') ?></th>
  657. <th class="iban"><?lsmb text('Account Number') ?></th>
  658. <th class="actions"><?lsmb text('Actions') ?></th>
  659. </tr>
  660. <?lsmb FOREACH ba = bank_account ?>
  661. <tr>
  662. <td class="bic"><?lsmb ba.bic ?></td>
  663. <td class="iban"><?lsmb ba.iban ?></td>
  664. <td class="actions">
  665. <a href="<?lsmb script ?>?action=edit_bank_acct&entity_id=<?lsmb
  666. entity_id ?>&bank_account_id=<?lsmb ba.id ?>"
  667. >[Edit]</a>
  668. <a href="<?lsmb script ?>?action=delete_bank_acct&entity_id=<?lsmb
  669. entity_id ?>&bank_account_id=<?lsmb ba.id ?>"
  670. >[Delete]</a>
  671. </td>
  672. </tr>
  673. <?lsmb END ?>
  674. </table>
  675. <form name="bank_acct" action="<?lsmb script ?>">
  676. <?lsmb PROCESS input element_data = {
  677. type="hidden"
  678. name="entity_id"
  679. value=entity_id
  680. } ?>
  681. <?lsmb PROCESS input element_data = {
  682. type="hidden"
  683. name="credit_id"
  684. value=credit_id
  685. } ?>
  686. <?lsmb PROCESS input element_data = {
  687. type="hidden"
  688. name="bank_account_id"
  689. value=bank_account_id
  690. } ?>
  691. <div><label for="bic">
  692. <?lsmb INCLUDE input element_data = {
  693. type="text"
  694. label = text('BIC/SWIFT Code:')
  695. name="bic"
  696. value=bic
  697. size=20
  698. } #' ?>
  699. </div>
  700. <div><label for="iban">
  701. <?lsmb PROCESS input element_data = {
  702. type="text"
  703. label = text('Bank Account:')
  704. name="iban"
  705. value=iban
  706. size=20
  707. } #' ?>
  708. </div>
  709. <div><?lsmb PROCESS button element_data = {
  710. name="action"
  711. value="save_bank_account"
  712. class="submit"
  713. text = text('Save')
  714. } ?>
  715. </div>
  716. </form>
  717. </div>
  718. <div id="notes_div">
  719. <div class="listtop"><?lsmb text('Notes') ?></div>
  720. <?lsmb FOREACH n = notes ?>
  721. <div class="note">
  722. <div class="timestamp"><?lsmb text('Entered at: [_1]', n.created) ?></div>
  723. <div class="author"><?lsmb text("Author: [_1]", n.created_by) ?></div>
  724. <div class="note_contents"><?lsmb n.note ?></div>
  725. </div>
  726. <?lsmb END ?>
  727. <form action="<?lsmb script ?>" method="post">
  728. <?lsmb PROCESS input element_data = {
  729. type="hidden"
  730. name="entity_id"
  731. value=entity_id
  732. } ?>
  733. <?lsmb PROCESS input element_data = {
  734. type="hidden"
  735. name="credit_id"
  736. value=credit_id
  737. } ?>
  738. <?lsmb IF credit_id -?>
  739. <div class="input"><?lsmb PROCESS select element_data = {
  740. name = "note_class"
  741. default_values = [note_class]
  742. options = note_class_options
  743. label = text("Note Class") #"
  744. text_attr = "label"
  745. value_attr = "value"
  746. } ?>
  747. </div>
  748. <?lsmb END # IF credit_id -?>
  749. <div class="input"><?lsmb PROCESS textarea element_data = {
  750. label = text('Notes:<br />')
  751. name = 'note'
  752. } ?></div>
  753. <div class="input">
  754. <?lsmb PROCESS button element_data = {
  755. text = text('Save')
  756. class = 'submit'
  757. name = 'action'
  758. value = 'save_notes'
  759. } ?>
  760. </form>
  761. </div>
  762. <?lsmb END ?>
  763. </body>
  764. </html>