Skip to content

Commit 7097848

Browse files
committed
Towards prenotification
1 parent 1dd70a4 commit 7097848

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

app/controllers/registers_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def prenotify
210210

211211
# POST /registers/r:abc/prenotify
212212
def prenotify_commit
213+
render(:prenotify)
213214
end
214215

215216
# GET /registers/r:abc/notify

app/views/registers/prenotify.html.erb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
<td><%= genome.accession %></td>
3232
<td><%= select_tag(
3333
"genome[#{genome.id}][database]",
34-
options_for_select(Genome.db_names.to_a.map(&:reverse), 'pending'),
34+
options_for_select(
35+
Genome.db_names.to_a.map(&:reverse), genome.database),
3536
class: 'form-control'
3637
) %></td>
3738
<td><%= text_field_tag(
@@ -43,8 +44,12 @@
4344
</table>
4445

4546
<br/>
46-
<%= f.button(:submit, 'Submit list for validation') %>
47+
<%= f.button(:submit, 'Proceed to notification') %>
4748
<%= link_to('Cancel', @register, class: 'btn btn-secondary') %>
4849
<br/><br/>
4950
<% end %>
5051

52+
<pre>
53+
<%= params.inspect %>
54+
</pre>
55+

0 commit comments

Comments
 (0)