root/galaxy-central/templates/library/common/select_template.mako

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

import galaxy-central

行番号 
1<%inherit file="/base.mako"/>
2<%namespace file="/message.mako" import="render_msg" />
3
4<%
5    from galaxy.web.form_builder import CheckboxField
6    inheritable_check_box = CheckboxField( 'inheritable' )
7%>
8
9<br/><br/>
10<ul class="manage-table-actions">
11    <li>
12        <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>
13    </li>
14</ul>
15
16%if message:
17    ${render_msg( message, status )}
18%endif
19
20<div class="toolForm">
21    <div class="toolFormTitle">Select a template for the ${item_desc} '${item_name}'</div>
22    <div class="toolFormBody">
23        <form id="select_template" name="select_template" action="${h.url_for( controller='library_common', action='add_template', cntrller=cntrller, item_type=item_type, library_id=library_id, folder_id=folder_id, ldda_id=ldda_id, use_panels=use_panels, show_deleted=show_deleted )}" method="post" >
24            <div class="form-row">
25                <input type="hidden" name="refresh" value="true" size="40"/>
26                <label>Template:</label>
27                ${template_select_list.get_html()}
28            </div>
29            % if item_type in [ 'library', 'folder' ]:
30                <div class="form-row">
31                    <label>Inherit template to contained folders and datasets?</label>
32                    %if inheritable_checked:
33                        <% inheritable_check_box.checked = True %>
34                    %endif
35                    ${inheritable_check_box.get_html()}
36                    <div class="toolParamHelp" style="clear: both;">
37                        Check if you want this template to be used by other folders and datasets contained within this ${item_desc}
38                    </div>
39                </div>
40            %endif
41            <div class="form-row">
42                <input type="submit" name="add_template_button" value="Add template to ${item_desc}"/>
43            </div>
44        </form>
45    </div>
46</div>
47<p/>
48%if template_select_list.get_selected( return_label=True, return_value=True ) != ('Select one', 'none'):
49    <div class="toolForm">
50        <div class="toolFormTitle">Layout of selected template</div>
51        <div class="toolFormBody">
52            <div class="form-row">
53                %for i, field in enumerate( widgets ):
54                    <div class="form-row">
55                        <label>${field[ 'label' ]}</label>
56                        ${field[ 'widget' ].get_html( disabled=True )}
57                        <div class="toolParamHelp" style="clear: both;">
58                            ${field[ 'helptext' ]}
59                        </div>
60                        <div style="clear: both"></div>
61                    </div>
62                %endfor
63            </div>
64        </div>
65    </div>
66%endif
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。