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 4a1a2e6 commit a67abf6
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 a67abf6

Please sign in to comment.