Skip to content

Commit 25c5517

Browse files
committed
Add a warning log when clarifications are claimed.
1 parent f74e227 commit 25c5517

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

webapp/templates/jury/partials/clarification_form.html.twig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@
3333

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

0 commit comments

Comments
 (0)