Няма описание

editexperiment.html 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {% extends "bootstrapheader.html" %}
  2. {% block body %}
  3. <body>
  4. <div class="container">
  5. {% for m in msg %}
  6. <div class="alert alert-{{m["type"]}}">
  7. <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  8. {{m["msg"]}}
  9. </div>
  10. {% endfor %}
  11. <h3>Edit Experiment</h3>
  12. <form class="form-horizontal" role="form" action="/editExperiment" method="post">
  13. <div class="form-group">
  14. <label class="control-label col-sm-2" for="name">Name:</label>
  15. <div class="col-sm-10">
  16. <input type="text" name="name" class="form-control" id="name" placeholder="Enter Experiment Name" {% if name %} value="{{name}}" {% endif %} required>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label class="control-label col-sm-2" for="name">Description:</label>
  21. <div class="col-sm-10">
  22. <textarea class="form-control" rows="5" id="description" name="description" placeholder="Experiment Description" required>{% if description %}{{description}} {% endif %} </textarea>
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <div class="col-sm-offset-2 col-sm-10">
  27. <button type="submit" name="save" class="btn btn-primary">Save</button>
  28. </div>
  29. </div>
  30. </form>
  31. </div>
  32. <hr>
  33. <div class="container">
  34. <h3>Peaks</h3>
  35. {% if exp_peaks %}
  36. <form class="form-horizontal" role="form" action="/editExperiment" method="post">
  37. <div class="form-group">
  38. <label class="control-label col-sm-2" for="name">Peaks:</label>
  39. <div class="col-sm-10">
  40. <table class="table table-striped">
  41. {% for p in exp_peaks %}
  42. <tr><td>{{p['peak']}}</td><td class="text-right">
  43. {% if not samples %}
  44. <button type="submit" class="btn btn-danger btn-xs" name="remove_peak" value="{{p['ep_id']}}">
  45. <span class="glyphicon glyphicon-remove"></span> Remove
  46. </button>
  47. {% else %}
  48. Can't delete peak after first sample.
  49. {% endif %}
  50. </td</tr>
  51. {% endfor %}
  52. </table>
  53. </div>
  54. </div>
  55. </form>
  56. {% endif %}
  57. {% if not samples %}
  58. <form class="form-horizontal" role="form" action="/editExperiment" method="post">
  59. <div class="form-group">
  60. <label class="control-label col-sm-2" for="inpeaks">Peaks: </label>
  61. <div class="col-sm-10">
  62. <input type="text" class="form-control" id="inpeaks" name="inpeaks" placeholder="Add Peaks" value = "1257.4,1419.5,1581.5,1743.6,1809.7,1905.6" required>
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <div class="col-sm-offset-2 col-sm-10">
  67. <button type="submit" class="btn btn-primary">Add Peaks</button>
  68. </div>
  69. </div>
  70. </form>
  71. </div>
  72. <hr>
  73. {% endif %}
  74. <div class="container">
  75. <h3>Collaborators:</h3>
  76. {% if collaborators %}
  77. <form class="form-horizontal" role="form" action="/editExperiment" method="post">
  78. <div class="form-group">
  79. <label class="control-label col-sm-2" for="collaborator">Collaborators:</label>
  80. <div class="col-sm-10">
  81. <table class="table table-striped">
  82. {% for c in collaborators %}
  83. <tr><td>{{c["name"]}}</td><td>{{c["last"]}}</td><td>{{c["email"]}}</td><td class="text-right">
  84. <button type="submit" class="btn btn-danger btn-xs" name="remove_col" value="{{c["ueid"]}}">
  85. <span class="glyphicon glyphicon-remove"></span> Remove
  86. </button>
  87. </td</tr>
  88. {% endfor %}
  89. </table>
  90. </div>
  91. </div>
  92. </form>
  93. {% endif %}
  94. <form class="form-horizontal" role="form" action="/editExperiment" method="post">
  95. <div class="form-group">
  96. <label class="control-label col-sm-2" for="collaborators">Collaborator Email: </label>
  97. <div class="col-sm-10">
  98. <input type="text" class="form-control" id="collaborators" name="collaborators" placeholder="Collaborator email" required>
  99. </div>
  100. </div>
  101. <div class="form-group">
  102. <div class="col-sm-offset-2 col-sm-10">
  103. <button type="submit" class="btn btn-primary">Add Collaborator</button>
  104. </div>
  105. </div>
  106. </form>
  107. </div>
  108. </body>
  109. {% endblock %}