[2] | 1 | <%inherit file="/base.mako"/> |
---|
| 2 | <%namespace file="/message.mako" import="render_msg" /> |
---|
| 3 | <%namespace file="/library/common/common.mako" import="render_template_fields" /> |
---|
| 4 | |
---|
| 5 | <%def name="javascripts()"> |
---|
| 6 | ${parent.javascripts()} |
---|
| 7 | </%def> |
---|
| 8 | |
---|
| 9 | %if library_dataset == library_dataset.library_dataset_dataset_association.library_dataset: |
---|
| 10 | <b><i>This is the latest version of this library dataset</i></b> |
---|
| 11 | %else: |
---|
| 12 | <font color="red"><b><i>This is an expired version of this library dataset</i></b></font> |
---|
| 13 | %endif |
---|
| 14 | <p/> |
---|
| 15 | |
---|
| 16 | <ul class="manage-table-actions"> |
---|
| 17 | <li> |
---|
| 18 | <a class="action-button" href="${h.url_for( controller='library_common', action='browse_library', cntrller=cntrller, id=library_id, use_panels=use_panels, show_deleted=show_deleted )}"><span>Browse this data library</span></a> |
---|
| 19 | </li> |
---|
| 20 | </ul> |
---|
| 21 | |
---|
| 22 | %if message: |
---|
| 23 | ${render_msg( message, status )} |
---|
| 24 | %endif |
---|
| 25 | |
---|
| 26 | %if ( trans.user_is_admin() and cntrller=='library_admin' ) or trans.app.security_agent.can_modify_library_item( current_user_roles, library_dataset ): |
---|
| 27 | <div class="toolForm"> |
---|
| 28 | <div class="toolFormTitle">Edit attributes of ${library_dataset.name}</div> |
---|
| 29 | <div class="toolFormBody"> |
---|
| 30 | <form name="edit_attributes" action="${h.url_for( controller='library_common', action='library_dataset_info', id=trans.security.encode_id( library_dataset.id ), library_id=library_id, show_deleted=show_deleted )}" method="post"> |
---|
| 31 | <div class="form-row"> |
---|
| 32 | <label>Name:</label> |
---|
| 33 | <div style="float: left; width: 250px; margin-right: 10px;"> |
---|
| 34 | <input type="text" name="name" value="${library_dataset.name}" size="40"/> |
---|
| 35 | </div> |
---|
| 36 | <div style="clear: both"></div> |
---|
| 37 | </div> |
---|
| 38 | <div class="form-row"> |
---|
| 39 | <label>Info:</label> |
---|
| 40 | <div style="float: left; width: 250px; margin-right: 10px;"> |
---|
| 41 | <input type="text" name="info" value="${library_dataset.info}" size="40"/> |
---|
| 42 | </div> |
---|
| 43 | <div style="clear: both"></div> |
---|
| 44 | </div> |
---|
| 45 | <div class="form-row"> |
---|
| 46 | <input type="submit" name="edit_attributes_button" value="Save"/> |
---|
| 47 | </div> |
---|
| 48 | </form> |
---|
| 49 | </div> |
---|
| 50 | </div> |
---|
| 51 | %else: |
---|
| 52 | <div class="toolForm"> |
---|
| 53 | <div class="toolFormTitle">View information about ${library_dataset.name}</div> |
---|
| 54 | <div class="toolFormBody"> |
---|
| 55 | <div class="form-row"> |
---|
| 56 | <b>Name:</b> ${library_dataset.name} |
---|
| 57 | <div style="clear: both"></div> |
---|
| 58 | <b>Info:</b> ${library_dataset.info} |
---|
| 59 | <div style="clear: both"></div> |
---|
| 60 | <b>Dataset Versions:</b> |
---|
| 61 | <div style="clear: both"></div> |
---|
| 62 | </div> |
---|
| 63 | <div style="clear: both"></div> |
---|
| 64 | </div> |
---|
| 65 | </div> |
---|
| 66 | %endif |
---|
| 67 | |
---|
| 68 | %if widgets: |
---|
| 69 | ${render_template_fields( cntrller, 'library_dataset', library_id, widgets, widget_fields_have_contents, info_association=None, inherited=False, editable=False )} |
---|
| 70 | %endif |
---|