/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
- <%inherit file="/base.mako"/>
- <%namespace file="/message.mako" import="render_msg" />
- <%namespace file="/library/common/common.mako" import="render_upload_form" />
- <% import os, os.path %>
- <%
- if replace_dataset not in [ None, 'None' ]:
- replace_id = trans.security.encode_id( replace_dataset.id )
- else:
- replace_id = 'None'
- %>
- <%def name="javascripts()">
- ${parent.javascripts()}
- ${h.js("jquery.autocomplete", "autocomplete_tagging" )}
- </%def>
- <%def name="stylesheets()">
- ${parent.stylesheets()}
- ${h.css( "autocomplete_tagging" )}
- </%def>
- <b>Upload files to a data library</b>
- <br/><br/>
- <ul class="manage-table-actions">
- <li>
- <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>
- </li>
- </ul>
- %if message:
- ${render_msg( message, status )}
- %endif
- ${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 )}