Skip to content
Snippets Groups Projects
Commit 561b65bb authored by Marco De Donno's avatar Marco De Donno
Browse files

Add the action for the buttons on the update_donnor page (to go to the latent and tenprint pages)

parent 8a7e9a8c
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,18 @@ ...@@ -15,6 +15,18 @@
baseurl = "{{ baseurl }}"; baseurl = "{{ baseurl }}";
upload_id = "{{ upload_id }}"; upload_id = "{{ upload_id }}";
</script> </script>
<style type="text/css">
.icnml_next_buttons {
margin-top: 20px;
padding-left: 50px;
padding-right: 50px;
}
.icnml_next_button {
width: 100%;
margin-bottom: 5px;
}
</style>
</head> </head>
<body class="icnml_main_layout"> <body class="icnml_main_layout">
{% include "header.html" %} {% include "header.html" %}
...@@ -69,9 +81,13 @@ ...@@ -69,9 +81,13 @@
<div id="icnml_sub_error" class="icnml_box_error"></div> <div id="icnml_sub_error" class="icnml_box_error"></div>
<div class="icnml_button"> <div class="icnml_button icnml_next_buttons">
<a class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" id="next_button" role="button" aria-disabled="false"> <a class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only icnml_next_button" id="next_front_button" role="button" aria-disabled="false">
<span class="ui-button-text">Next</span> <span class="ui-button-text">Tenprint card(s) front</span>
</a>
<br>
<a class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only icnml_next_button" id="next_latent_button" role="button" aria-disabled="false">
<span class="ui-button-text">Latent(s)</span>
</a> </a>
</div> </div>
</div> </div>
...@@ -201,6 +217,16 @@ ...@@ -201,6 +217,16 @@
} ); } );
} ); } );
$( '#next_front_button' ).on( 'click', function()
{
window.location = "{{ url_for( 'update_submission_tenprint', id = upload_id ) }}";
} );
$( '#next_latent_button' ).on( 'click', function()
{
window.location = "{{ url_for( 'update_files_folder', id = upload_id ) }}";
} );
$( '#icnml_navigation_updatedonnor' ) $( '#icnml_navigation_updatedonnor' )
.addClass( 'activated' ); .addClass( 'activated' );
</script> </script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment