unitEditor.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!-- unitEditor -->
  2. <div>
  3. <div class="form-group">
  4. <table class="table">
  5. <tr>
  6. <td colspan="2">
  7. <input type="text"
  8. style="text-align: center;"
  9. class="form-control"
  10. data-ng-model="$ctrl.unit.name">
  11. </td>
  12. </tr>
  13. <tr>
  14. <td>
  15. <label for="symbol">Symbol:</label>
  16. <input id="symbol"
  17. class="form-control"
  18. type="text"
  19. data-ng-model="$ctrl.unit.symbol" />
  20. </td>
  21. <td>
  22. <label for="conversion">Conversion:</label>
  23. <input id="conversion"
  24. class="form-control"
  25. type="number"
  26. data-ng-model="$ctrl.unit.conversion" />
  27. </td>
  28. </tr>
  29. <tr>
  30. <td colspan="2">
  31. <label for="type">Type:</label>
  32. <select id="type" class="form-control" data-ng-model="$ctrl.unit.type">
  33. <option data-ng-repeat="type in unitTypes">{{type}}</option>
  34. </select>
  35. </td>
  36. </tr>
  37. </table>
  38. </div>
  39. </div>