root/galaxy-central/templates/library/common/folder_info.mako @ 2

リビジョン 2, 2.6 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
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<%
10    from cgi import escape
11    folder_name = escape( str( folder.name ), quote=True )
12    folder_description = escape( str( folder.description ), quote=True )
13%>
14
15<br/><br/>
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<div class="toolForm">
27    <div class="toolFormTitle">Edit folder name and description</div>
28    <div class="toolFormBody">
29        %if ( trans.user_is_admin() and cntrller == 'library_admin' ) or trans.app.security_agent.can_modify_library_item( current_user_roles, folder ):
30            <form name="folder" action="${h.url_for( controller='library_common', action='folder_info', cntrller=cntrller, id=trans.security.encode_id( folder.id ), library_id=library_id, use_panels=use_panels, show_deleted=show_deleted )}" method="post" >
31                <div class="form-row">
32                    <label>Name:</label>
33                    <input type="text" name="name" value="${folder_name}" size="40"/>
34                    <div style="clear: both"></div>
35                </div>
36                <div class="form-row">
37                    <label>Description:</label>
38                    <input type="text" name="description" value="${folder_description}" size="40"/>
39                    <div style="clear: both"></div>
40                </div>
41                <div class="form-row">
42                    <input type="submit" name="rename_folder_button" value="Save"/>
43                </div>
44            </form>
45        %else:
46            <div class="form-row">
47                <label>Name:</label>
48                ${folder_name}
49                <div style="clear: both"></div>
50            </div>
51            <div class="form-row">
52                <label>Description:</label>
53                ${folder_description}
54                <div style="clear: both"></div>
55            </div>
56        %endif
57    </div>
58</div>
59%if widgets:
60    ${render_template_fields( cntrller=cntrller, item_type='folder', library_id=library_id, widgets=widgets, widget_fields_have_contents=widget_fields_have_contents, info_association=info_association, inherited=inherited, folder_id=trans.security.encode_id( folder.id ) )}
61%endif
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。