aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates')
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-base.html9
-rw-r--r--uploader/templates/publications/create-publication.html2
2 files changed, 9 insertions, 2 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-base.html b/uploader/templates/phenotypes/add-phenotypes-base.html
index b05a194..a7aaeb0 100644
--- a/uploader/templates/phenotypes/add-phenotypes-base.html
+++ b/uploader/templates/phenotypes/add-phenotypes-base.html
@@ -46,7 +46,14 @@
<legend>Publication Information</legend>
<input type="hidden" name="publication-id" id="txt-publication-id" />
<span class="form-text text-muted">
- Select a publication for your data</span>
+ Select a publication for your data. <br />
+ Can't find a publication you can use? Go ahead and
+ <a href="{{url_for(
+ 'publications.create_publication',
+ return_to='species.populations.phenotypes.add_phenotypes',
+ species_id=species.SpeciesId,
+ population_id=population.Id,
+ dataset_id=dataset.Id)}}">create a new publication</a>.</span>
<table id="tbl-select-publication" class="table compact stripe">
<thead>
<tr>
diff --git a/uploader/templates/publications/create-publication.html b/uploader/templates/publications/create-publication.html
index 1961b4e..3f828a9 100644
--- a/uploader/templates/publications/create-publication.html
+++ b/uploader/templates/publications/create-publication.html
@@ -12,7 +12,7 @@
<div class="row">
<form id="frm-create-publication"
method="POST"
- action="{{url_for('publications.create_publication')}}"
+ action="{{url_for('publications.create_publication', **request.args)}}"
class="form-horizontal">
<div class="row mb-3">