<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <%def name="javascripts()"> ${parent.javascripts()} <%def name="render_select( name, options )"> <% from galaxy.web.form_builder import SelectField operation_selectfield = SelectField( 'operation' ) for op in ( '=', '+', '-' ): selected = op == operation operation_selectfield.add_option( op, op, selected ) default_selectfield = SelectField( 'default' ) selected = 'no' == default default_selectfield.add_option( 'No', 'no', selected ) for typ in trans.app.model.DefaultQuotaAssociation.types.__dict__.values(): selected = typ == default default_selectfield.add_option( 'Yes, ' + typ, typ, selected ) %> %if message: ${render_msg( message, status )} %endif
Create quota
Examples: "10000MB", "99 gb", "0.2T", "unlimited"
${operation_selectfield.get_html()}
${default_selectfield.get_html()}
Warning: Any user or group associations selected below will be ignored if this quota is used as a default.
${render_select( "in_users", in_users )}
${render_select( "out_users", out_users )}
${render_select( "in_groups", in_groups )}
${render_select( "out_groups", out_groups )}