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