about summary refs log tree commit diff
path: root/uploader/templates
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates')
-rw-r--r--uploader/templates/base.html3
-rw-r--r--uploader/templates/phenotypes/base.html12
-rw-r--r--uploader/templates/phenotypes/index.html26
3 files changed, 39 insertions, 2 deletions
diff --git a/uploader/templates/base.html b/uploader/templates/base.html
index b297669..019aa39 100644
--- a/uploader/templates/base.html
+++ b/uploader/templates/base.html
@@ -68,8 +68,7 @@
             sections, etc.
           -->
         <li {%if activemenu=="phenotypes"%}class="activemenu"{%endif%}>
-          <a href="#"
-             class="not-implemented"
+          <a href="{{url_for('species.populations.phenotypes.index')}}"
              title="Upload phenotype data.">Phenotype Data</a></li>
         <li {%if activemenu=="expression-data"%}class="activemenu"{%endif%}>
           <a href="{{url_for('species.populations.expression-data.index')}}"
diff --git a/uploader/templates/phenotypes/base.html b/uploader/templates/phenotypes/base.html
new file mode 100644
index 0000000..3bc5dea
--- /dev/null
+++ b/uploader/templates/phenotypes/base.html
@@ -0,0 +1,12 @@
+{%extends "populations/base.html"%}
+
+{%block lvl3_breadcrumbs%}
+<li {%if activelink=="phenotypes"%}
+    class="breadcrumb-item active"
+    {%else%}
+    class="breadcrumb-item"
+    {%endif%}>
+  <a href="{{url_for('species.populations.phenotypes.index')}}">Phenotypes</a>
+</li>
+{%block lvl4_breadcrumbs%}{%endblock%}
+{%endblock%}
diff --git a/uploader/templates/phenotypes/index.html b/uploader/templates/phenotypes/index.html
new file mode 100644
index 0000000..0c691e6
--- /dev/null
+++ b/uploader/templates/phenotypes/index.html
@@ -0,0 +1,26 @@
+{%extends "phenotypes/base.html"%}
+{%from "flash_messages.html" import flash_all_messages%}
+{%from "species/macro-select-species.html" import select_species_form%}
+
+{%block title%}Phenotypes{%endblock%}
+
+{%block pagetitle%}Phenotypes{%endblock%}
+
+
+{%block contents%}
+{{flash_all_messages()}}
+
+<div class="row">
+  <p>This section deals with phenotypes that
+    <span class="text-warning">
+      <span class="glyphicon glyphicon-exclamation-sign"></span>
+      … what are the characteristics of these phenotypes? …</span></p>
+  <p>Select the species to begin the process of viewing/uploading data about
+    your phenotypes</p>
+</div>
+
+<div class="row">
+  {{select_species_form(url_for("species.populations.phenotypes.index"),
+  species)}}
+</div>
+{%endblock%}