/templates/workflow/edit_attributes.mako

https://bitbucket.org/cistrome/cistrome-harvard/ · Mako · 66 lines · 61 code · 5 blank · 0 comment · 7 complexity · 3ee636cbe214ddd9b08805d10c43edaf MD5 · raw file

  1. <%inherit file="/base.mako"/>
  2. <%namespace file="/message.mako" import="render_msg" />
  3. <%def name="title()">${_('Edit Workflow Attributes')}</%def>
  4. <%def name="stylesheets()">
  5. ${h.css( "base", "autocomplete_tagging" )}
  6. </%def>
  7. <%def name="javascripts()">
  8. ${parent.javascripts()}
  9. ${h.js( "galaxy.base", "jquery.autocomplete", "autocomplete_tagging" )}
  10. </%def>
  11. %if msg:
  12. ${render_msg( msg, messagetype )}
  13. %endif
  14. <%def name="body()">
  15. <div class="toolForm">
  16. <div class="toolFormTitle">${_('Edit Workflow Attributes')}</div>
  17. <div class="toolFormBody">
  18. <form name="edit_attributes" action="${h.url_for( action='edit_attributes' )}" method="post">
  19. <input type="hidden" name="id" value="${trans.security.encode_id( stored.id )}"/>
  20. <div class="form-row">
  21. <label>
  22. Name:
  23. </label>
  24. <div style="float: left; width: 225px; margin-right: 10px;">
  25. <input type="text" name="name" value="${stored.name}" size="30"/>
  26. </div>
  27. <div style="clear: both"></div>
  28. </div>
  29. <%namespace file="/tagging_common.mako" import="render_individual_tagging_element" />
  30. <div class="form-row">
  31. <label>
  32. Tags:
  33. </label>
  34. <div style="float: left; width: 265px; margin-right: 10px; border-style: inset; border-width: 1px; margin-left: 2px">
  35. <style>
  36. .tag-area {
  37. border: none;
  38. }
  39. </style>
  40. ${render_individual_tagging_element(user=trans.get_user(), tagged_item=stored, elt_context="edit_attributes.mako", use_toggle_link=False, in_form=True, input_size="25")}
  41. </div>
  42. <div style="clear: both"></div>
  43. <div class="toolParamHelp">Apply tags to make it easy to search for and find items with the same tag.</div>
  44. </div>
  45. <div class="form-row">
  46. <label>
  47. Annotation / Notes:
  48. </label>
  49. <div style="float: left; width: 225px; margin-right: 10px;">
  50. <textarea name="annotation" cols="30" rows="2">${annotation}</textarea>
  51. </div>
  52. <div style="clear: both"></div>
  53. <div class="toolParamHelp">Add an annotation notes to a workflow; annotations are available when a workflow is viewed.</div>
  54. </div>
  55. <div class="form-row">
  56. <input type="submit" name="save" value="${_('Save')}"/>
  57. </div>
  58. </form>
  59. </div>
  60. </div>
  61. </%def>