[hg] galaxy 3222: Check / uncheck all in create workflow from hi...
details: http://www.bx.psu.edu/hg/galaxy/rev/60afd81f678b changeset: 3222:60afd81f678b user: James Taylor <james@jamestaylor.org> date: Mon Jan 11 12:07:58 2010 -0500 description: Check / uncheck all in create workflow from history, also made template extend base since I was already mcuking with it diffstat: templates/workflow/build_from_current_history.mako | 69 ++++++++++++--------- 1 files changed, 39 insertions(+), 30 deletions(-) diffs (93 lines): diff -r 6127f0928166 -r 60afd81f678b templates/workflow/build_from_current_history.mako --- a/templates/workflow/build_from_current_history.mako Fri Jan 08 16:22:44 2010 -0500 +++ b/templates/workflow/build_from_current_history.mako Mon Jan 11 12:07:58 2010 -0500 @@ -1,31 +1,40 @@ +<%inherit file="/base.mako"/> + <% _=n_ %> -<!-- --> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<html> +<%def name="title()">Extract workflow from history</%def> -<head> -<title>Galaxy</title> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<link href="${h.url_for('/static/style/history.css')}" rel="stylesheet" type="text/css" /> -<link href="${h.url_for('/static/style/base.css')}" rel="stylesheet" type="text/css" /> +<%def name="stylesheets()"> + ${h.css( 'history', 'base' )} + <style type="text/css"> + div.toolForm{ + margin-top: 10px; + margin-bottom: 10px; + } + div.historyItem { + margin-right: 0; + } + th { + border-bottom: solid black 1px; + } + </style> +</%def> -<style type="text/css"> -div.toolForm{ - margin-top: 10px; - margin-bottom: 10px; -} -div.historyItem { - margin-right: 0; -} -th { - border-bottom: solid black 1px; -} -</style> - -</head> - -<body> +<%def name="javascripts()"> + ${parent.javascripts()} + <script type="text/javascript"> + $(function() { + $("#checkall").click( function() { + $("input[type=checkbox]").attr( 'checked', true ); + return false; + }).show(); + $("#uncheckall").click( function() { + $("input[type=checkbox]").attr( 'checked', false ); + return false; + }).show(); + }); + </script> +</%def> <%def name="history_item( data, creator_disabled=False )"> %if data.state in [ "no state", "", None ]: @@ -71,7 +80,11 @@ <label>${_('Workflow name')}</label> <input name="workflow_name" type="text" value="Workflow constructed from history '${history.name}'" size="60"/> </div> -<p><input type="submit" value="${_('Create Workflow')}" /></p> +<p> + <input type="submit" value="${_('Create Workflow')}" /> + <button id="checkall" style="display: none;">Check all</button> + <button id="uncheckall" style="display: none;">Uncheck all</button> +</p> <table border="0" cellspacing="0"> @@ -127,8 +140,4 @@ </table> -</form> - -</body> - -</html> \ No newline at end of file +</form> \ No newline at end of file
participants (1)
-
Greg Von Kuster