[2] | 1 | <%inherit file="/export_base.mako"/> |
---|
| 2 | |
---|
| 3 | <%namespace file="/display_common.mako" import="*" /> |
---|
| 4 | |
---|
| 5 | <%def name="init()"> |
---|
| 6 | <% |
---|
| 7 | parent.init() |
---|
| 8 | self.active_view="workflow" |
---|
| 9 | %> |
---|
| 10 | </%def> |
---|
| 11 | |
---|
| 12 | <%def name="stylesheets()"> |
---|
| 13 | ${parent.stylesheets()} |
---|
| 14 | <style> |
---|
| 15 | .toolForm { |
---|
| 16 | max-width: 350px; |
---|
| 17 | } |
---|
| 18 | </style> |
---|
| 19 | </%def> |
---|
| 20 | |
---|
| 21 | <%def name="render_export_to_myexp(item)"> |
---|
| 22 | ## |
---|
| 23 | ## Renders form for exporting workflow to myExperiment. |
---|
| 24 | ## |
---|
| 25 | <h3>Export to myExperiment <em>sandbox</em></h3> |
---|
| 26 | |
---|
| 27 | ##def export_to_myexp( self, trans, id, myexp_username, myexp_password ): |
---|
| 28 | <div class="toolForm"> |
---|
| 29 | <div class="toolFormTitle">Export</div> |
---|
| 30 | <form action="${h.url_for( action='export_to_myexp', id=trans.security.encode_id( item.id ) )}" |
---|
| 31 | method="POST"> |
---|
| 32 | <div class="form-row"> |
---|
| 33 | <label>myExperiment username:</label> |
---|
| 34 | <input type="text" name="myexp_username" value="" size="40"/> |
---|
| 35 | </div> |
---|
| 36 | <div class="form-row"> |
---|
| 37 | <label>myExperiment password:</label> |
---|
| 38 | <input type="password" name="myexp_password" value="" size="40"/> |
---|
| 39 | </div> |
---|
| 40 | <div class="form-row"> |
---|
| 41 | <input type="submit" value="Export"/> |
---|
| 42 | </div> |
---|
| 43 | </form> |
---|
| 44 | </div> |
---|
| 45 | </%def> |
---|
| 46 | |
---|
| 47 | <%def name="render_more(item)"> |
---|
| 48 | ## Add form to export to myExperiment. |
---|
| 49 | ${self.render_export_to_myexp(item)} |
---|
| 50 | </%def> |
---|
| 51 | |
---|
| 52 | <%def name="center_panel()"> |
---|
| 53 | ${parent.body()} |
---|
| 54 | </%def> |
---|