Skip to content

Commit

Permalink
Add a warning log when clarifications are claimed.
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Oct 23, 2024
1 parent f74e227 commit 25c5517
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions webapp/templates/jury/partials/clarification_form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@

</div>
{{ form_end(form) }}
<script>
$(function () {
var $body = $('body');
$body.on('submit', 'form[name=jury_clarification]', function () {
var jurymemberIsMe = {{ origclar.jurymember_is_me is defined ? (origclar.jurymember_is_me ? 1 : 0) : null }};
if (jurymemberIsMe === 0) {
var jurymember = {{ origclar.from_jurymember is defined ? origclar.from_jurymember | json_encode(constant('JSON_HEX_TAG')) | raw : null }};
var message = "You are now replying to a claification claimed by " + jurymember + "." + "Are you sure you want to send this message?";
return confirm(message);
}
});
});
</script>

0 comments on commit 25c5517

Please sign in to comment.