editbasic.html.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <div id="mainContent" class="main-content">
  3. <div class='center-block'>
  4. <div class="main-header">
  5. <h2><?php echo $lang->measurement->editBasic;?></h2>
  6. </div>
  7. <form class='main-form form-ajax' method='post' enctype='multipart/form-data' id='dataform'>
  8. <table class="table table-form">
  9. <tbody>
  10. <tr>
  11. <th><?php echo $lang->measurement->name;?></th>
  12. <td><?php echo html::input('name', $measurement->name, 'class="form-control"');?></td>
  13. <td></td>
  14. </tr>
  15. <tr>
  16. <th><?php echo $lang->measurement->code;?></th>
  17. <td><?php echo html::input('code', $measurement->code, 'class="form-control"');?></td>
  18. <td></td>
  19. </tr>
  20. <tr>
  21. <th><?php echo $lang->measurement->scope;?></th>
  22. <td><?php echo html::select('scope', $lang->measurement->scopeList, $measurement->scope, 'class="form-control"');?></td>
  23. <td></td>
  24. </tr>
  25. <tr>
  26. <th><?php echo $lang->measurement->object;?></th>
  27. <td><?php echo html::select('object', $lang->measurement->objectList, $measurement->object, 'class="form-control"');?></td>
  28. <td></td>
  29. </tr>
  30. <tr>
  31. <th><?php echo $lang->measurement->purpose;?></th>
  32. <td><?php echo html::select('purpose', $lang->measurement->purposeList, $measurement->purpose, 'class="form-control"');?></td>
  33. <td></td>
  34. </tr>
  35. <tr>
  36. <th><?php echo $lang->measurement->unit;?></th>
  37. <td><?php echo html::input('unit', $measurement->unit, 'class="form-control"');?></td>
  38. <td></td>
  39. </tr>
  40. <tr>
  41. <th><?php echo $lang->measurement->definition;?></th>
  42. <td><?php echo html::textarea('definition', $measurement->definition, 'class="form-control"');?></td>
  43. <td></td>
  44. </tr>
  45. <?php include './editcollectconf.html.php';?>
  46. </tbody>
  47. <tfoot>
  48. <tr class='form-actions text-center'>
  49. <td colspan='3'><?php echo html::submitButton();echo html::backButton();?></td>
  50. </tr>
  51. </tfoot>
  52. </table>
  53. <?php echo html::hidden('measurementID',$measurement->id);?>
  54. </form>
  55. </div>
  56. </div>
  57. <script>
  58. $('#subNavbar ul li[data-id="settips"]').removeClass('active');
  59. $('#subNavbar ul li[data-id="template"]').removeClass('active');
  60. </script>
  61. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>