/templates/library/common/upload.mako

https://bitbucket.org/cistrome/cistrome-harvard/ · Mako · 36 lines · 29 code · 7 blank · 0 comment · 5 complexity · 76a9b9508ef893bcbc380f570e6e5ee0 MD5 · raw file

  1. <%inherit file="/base.mako"/>
  2. <%namespace file="/message.mako" import="render_msg" />
  3. <%namespace file="/library/common/common.mako" import="render_upload_form" />
  4. <% import os, os.path %>
  5. <%
  6. if replace_dataset not in [ None, 'None' ]:
  7. replace_id = trans.security.encode_id( replace_dataset.id )
  8. else:
  9. replace_id = 'None'
  10. %>
  11. <%def name="javascripts()">
  12. ${parent.javascripts()}
  13. ${h.js("jquery.autocomplete", "autocomplete_tagging" )}
  14. </%def>
  15. <%def name="stylesheets()">
  16. ${parent.stylesheets()}
  17. ${h.css( "autocomplete_tagging" )}
  18. </%def>
  19. <b>Upload files to a data library</b>
  20. <br/><br/>
  21. <ul class="manage-table-actions">
  22. <li>
  23. <a class="action-button" href="${h.url_for( controller='library_common', action='browse_library', cntrller=cntrller, id=library_id, show_deleted=show_deleted )}"><span>Browse this data library</span></a>
  24. </li>
  25. </ul>
  26. %if message:
  27. ${render_msg( message, status )}
  28. %endif
  29. ${render_upload_form( cntrller, upload_option, action, library_id, folder_id, replace_dataset, file_formats, dbkeys, space_to_tab, link_data_only, widgets, roles_select_list, history, show_deleted )}