mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
139 lines
4.7 KiB
Cheetah
139 lines
4.7 KiB
Cheetah
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
#from galaxy.util.expressions import ExpressionContext
|
|
|
|
<html>
|
|
<head>
|
|
<title>Galaxy</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
<link href="$h.url_for('/static/style/base.css')" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
|
|
#if $getVar( 'error_message', None )
|
|
<div class="errormessagesmall">$error_message</div>
|
|
<p></p>
|
|
#end if
|
|
|
|
#def datatype( $dataset, $datatypes )
|
|
<select name="datatype">
|
|
#$datatypes.sort()
|
|
#for $ext in $datatypes:
|
|
#if $dataset.ext == $ext
|
|
<option value="$ext" selected="yes">$ext</option>
|
|
#else
|
|
<option value="$ext">$ext</option>
|
|
#end if
|
|
#end for
|
|
</select>
|
|
#end def
|
|
|
|
<div class="toolForm">
|
|
<div class="toolFormTitle">Edit Attributes</div>
|
|
<div class="toolFormBody">
|
|
<form name="edit_attributes" action="$h.url_for( action='edit' )" method="post">
|
|
<input type="hidden" name="id" value="$data.id">
|
|
<div class="form-row">
|
|
<label>
|
|
Name:
|
|
</label>
|
|
<div style="float: left; width: 250px; margin-right: 10px;">
|
|
<input type="text" name="name" value="$data.name" size="40">
|
|
</div>
|
|
<div style="clear: both"></div>
|
|
</div>
|
|
<div class="form-row">
|
|
<label>
|
|
Info:
|
|
</label>
|
|
<div style="float: left; width: 250px; margin-right: 10px;">
|
|
<input type="text" name="info" value="$data.info" size="40">
|
|
</div>
|
|
<div style="clear: both"></div>
|
|
</div>
|
|
#for $element in $metadata
|
|
<div class="form-row">
|
|
<label>
|
|
${element.spec.desc}:
|
|
</label>
|
|
<div style="float: left; width: 250px; margin-right: 10px;">
|
|
$element.get_html()
|
|
</div>
|
|
<div style="clear: both"></div>
|
|
</div>
|
|
#end for
|
|
<div class="form-row">
|
|
<input type="submit" name="save" value="Save">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<p />
|
|
|
|
#set $converters = $data.get_converter_types()
|
|
#if len( $converters ) > 0:
|
|
<div class="toolForm">
|
|
<div class="toolFormTitle">Convert to new format</div>
|
|
<div class="toolFormBody">
|
|
<form name="convert_data" action="$h.url_for( action='edit' )" method="post">
|
|
<input type="hidden" name="id" value="$data.id">
|
|
<div class="form-row">
|
|
<label>
|
|
Convert to:
|
|
</label>
|
|
<div style="float: left; width: 250px; margin-right: 10px;">
|
|
<select name="target_type">
|
|
#for $key, $value in $converters.items():
|
|
<option value="$key">$value.name[8:]</option>
|
|
#end for
|
|
</select>
|
|
</div>
|
|
|
|
<div class="toolParamHelp" style="clear: both;">
|
|
This will create a new dataset with the contents of this
|
|
dataset converted to a new format.
|
|
</div>
|
|
<div style="clear: both"></div>
|
|
</div>
|
|
<div class="form-row">
|
|
<input type="submit" name="convert_data" value="Convert">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<p />
|
|
#end if
|
|
|
|
|
|
<div class="toolForm">
|
|
<div class="toolFormTitle">Change data type</div>
|
|
<div class="toolFormBody">
|
|
<form name="change_datatype" action="$h.url_for( action='edit' )" method="post">
|
|
<input type="hidden" name="id" value="$data.id">
|
|
<div class="form-row">
|
|
<label>
|
|
New Type:
|
|
</label>
|
|
<div style="float: left; width: 250px; margin-right: 10px;">
|
|
$datatype( $data, $datatypes )
|
|
</div>
|
|
|
|
<div class="toolParamHelp" style="clear: both;">
|
|
This will change the datatype of the existing dataset
|
|
but <i>not</i> modify its contents. Use this if Galaxy
|
|
has incorrectly guessed the type of your dataset.
|
|
</div>
|
|
<div style="clear: both"></div>
|
|
</div>
|
|
<div class="form-row">
|
|
<input type="submit" name="change" value="Save">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|