Web Interfaces of PROSUME

set_price.ctp 4.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. $this->layout = false;
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <?= $this->element('Eprosume/header') ?>
  7. <body class="hold-transition skin-green sidebar-mini">
  8. <div class="wrapper">
  9. <?= $this->element('Eprosume/mainHeader') ?>
  10. <!-- Left side column. contains the logo and sidebar -->
  11. <?= $this->element('Eprosume/leftSideColumn') ?>
  12. <!-- Content Wrapper. Contains page content -->
  13. <div class="content-wrapper">
  14. <!-- Content Header (Page header) -->
  15. <section class="content-header">
  16. <h1>
  17. Set buy and sell price
  18. <small></small>
  19. </h1>
  20. <ol class="breadcrumb">
  21. <li><a href="/"><i class="fa fa-dashboard"></i> <?= $app_name ?></a></li>
  22. <li class="active">Set Price</li>
  23. </ol>
  24. </section>
  25. <!-- Main content -->
  26. <section class="content">
  27. <div class="row">
  28. <div class="col-xs-12">
  29. <div class="box">
  30. <!-- /.box-header -->
  31. <div class="box-body">
  32. <div class="row">
  33. <div class="col-md-12 col-sm-12 col-xs-12">
  34. <div class="panel panel-default">
  35. <div class="panel-body">
  36. <div class="row">
  37. <div class="col-lg-4 col-sm-4">
  38. <div class="input-group">
  39. <span class="input-group-addon">Meter</span>
  40. <select id="prosumerSelect" class="form-control" autocomplete="off" required>
  41. <option value="0"></option>
  42. <?php
  43. foreach($prices as $k=>$v) {
  44. echo sprintf('<option value="%s">%s</option>', $k, $k);
  45. }
  46. ?>
  47. </select>
  48. </div>
  49. </div>
  50. <div class="col-lg-4 col-sm-4">
  51. <div class="input-group">
  52. <span class="input-group-addon">Buy Price</span>
  53. <input id="buyPriceInput" type="number" min="0.01" step="0.01" value="0.01" data-value="0.01" class="form-control text-right" autocomplete="off">
  54. <span class="input-group-addon">PRS</span>
  55. </div>
  56. </div>
  57. <div class="col-lg-4 col-sm-4">
  58. <div class="input-group">
  59. <span class="input-group-addon">Sell Price</span>
  60. <input id="sellPriceInput" type="number" min="0.01" step="0.01" value="0.01" data-value="0.01" class="form-control text-right" autocomplete="off">
  61. <span class="input-group-addon">PRS</span>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <p class="pull-right">
  70. <span id="setPriceErrors" class="eprosume_error hidden"></span>
  71. <span id="setPriceOutcome" class="hidden"></span>
  72. <button id="submitButton" class="btn btn-success" title="">Save</button>
  73. </p>
  74. </div>
  75. <!-- /.box-body -->
  76. </div>
  77. <!-- /.box -->
  78. </div>
  79. <!-- /.col -->
  80. </div>
  81. <!-- /.row -->
  82. </section>
  83. <!-- /.content -->
  84. </div>
  85. <!-- /.content-wrapper -->
  86. <?= $this->element('Eprosume/footer') ?>
  87. </div>
  88. <!-- ./wrapper -->
  89. <?= $this->element('Eprosume/scripts') ?>
  90. <?= $this->element('Eprosume/Views/set_price') ?>
  91. </body>
  92. </html>