diff options
Diffstat (limited to 'uploader/templates/sui-index.html')
| -rw-r--r-- | uploader/templates/sui-index.html | 46 |
1 files changed, 29 insertions, 17 deletions
diff --git a/uploader/templates/sui-index.html b/uploader/templates/sui-index.html index e6873e2..888823f 100644 --- a/uploader/templates/sui-index.html +++ b/uploader/templates/sui-index.html @@ -1,5 +1,6 @@ {%extends "sui-base.html"%} {%from "flash_messages.html" import flash_all_messages%} +{%from "macro-forms.html" import add_http_feature_flags%} {%from "macro-step-indicator.html" import step_indicator%} {%block title%}Home{%endblock%} @@ -10,25 +11,41 @@ {%block contents%} +{%macro add_form_buttons()%} +<div class="row form-buttons"> + <div class="col"> + <input type="submit" + class="btn btn-primary" + value="use selected species" /> + </div> + <div class="col"> + <a href="{{url_for('species.create_species', return_to='base.index')}}" + class="btn btn-outline-primary" + title="Create a new species.">Create a new Species</a> + </div> +</div> +{%endmacro%} + <div class="row">{{flash_all_messages()}}</div> {%if user_logged_in()%} <div class="row"> <div class="row"> - <h2>{{step_indicator("1")}} Select the Species</h2> + <h2 class="heading">Species</h2> - <p>The data in Genenetwork is related to one species or another. To get - started, please select the species you want to work with.</p> + <p>Select the species you want to work with.</p> </div> </div> <div class="row"> <form method="GET" action="{{url_for('base.index')}}" class="form-horizontal"> - <input type="hidden" name="streamlined_ui", value="{{streamlined_ui}}" /> + {{add_http_feature_flags()}} + + {{add_form_buttons()}} {%if species | length != 0%} - <div style="margin-top:3em;"> + <div style="margin-top:1em;"> <table id="tbl-select-species" class="table compact stripe" data-species-list='{{species | tojson}}'> <thead> @@ -57,18 +74,7 @@ {%endif%} - <div class="row form-buttons"> - <div class="col"> - <input type="submit" - class="btn btn-primary" - value="continue with selected" /> - </div> - <div class="col"><strong>OR</strong></div> - <div class="col"> - <a href="{{url_for('species.create_species', return_to='base.index')}}" - title="Create a new species.">Create a new Species</a> - </div> - </div> + {{add_form_buttons()}} </form> </div> @@ -93,6 +99,12 @@ {%block sidebarcontents%} <div class="row"> + <p>The data in Genenetwork is related to one species or another. Use the form + provided to select from existing species, or click on the + "Create a New Species" button if you cannot find the species you want to + work with.</p> +</div> +<div class="row"> <form id="frm-quick-navigation"> <legend>Quick Navigation</legend> <div class="form-group"> |
