Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. <template>
  2. <require from="./relation-row"></require>
  3. <table>
  4. <thead>
  5. <tr>
  6. <th>
  7. Underlying Pair
  8. </th>
  9. <th>
  10. Correlated Pair
  11. </th>
  12. <th>
  13. Fit Type
  14. </th>
  15. <th>
  16. # Months
  17. </th>
  18. <th>
  19. Actual/Predicted
  20. </th>
  21. <th></th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <tr repeat.for="config of relationConfigs" as-element="compose" view-model='./relation-row' config.bind="config">
  26. <tr repeat.for="customer of customers">
  27. <td>
  28. <select value.bind="newConfig.underlyingCurrencyPair">
  29. <option repeat.for="currencyPair of currencyPairs" value.bind="currencyPair">${currencyPair}</option>
  30. </select>
  31. </td>
  32. <td>
  33. <select value.bind="newConfig.relatededCurrencyPair">
  34. <option repeat.for="currencyPair of currencyPairs" value.bind="currencyPair">${currencyPair}</option>
  35. </select>
  36. </td>
  37. <td>
  38. <select value.bind="newConfig.fitType">
  39. <option repeat.for="fitType of fitTypes" value.bind="fitType">${fitType}<option>
  40. </select>
  41. </td>
  42. <td>
  43. <input type="number" value.bind="newConfig.numMonths">
  44. </td>
  45. <td></td>
  46. <td>
  47. <button type="button" class="btn btn-success" click.trigger="addConfig()">Add</button>
  48. </td>
  49. </tr>
  50. </tbody>
  51. </table>
  52. </template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement