Commit 385a7122 by Félicie

Merge branch '2573-texts-for-attached-people' into 'dev_cooperatic'

2573-texts-for-attached-people

See merge request !150
parents c71e8d67 b9c54ef6
Pipeline #2019 passed with stage
in 1 minute 29 seconds
...@@ -340,3 +340,13 @@ body { ...@@ -340,3 +340,13 @@ body {
.no_content_title { .no_content_title {
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
/* - block_actions_for_attached_people is true or false */
.attached-blocked {
display: none;
}
.attached-unblocked {
display: none;
}
...@@ -17,6 +17,8 @@ function init_faq() { ...@@ -17,6 +17,8 @@ function init_faq() {
$("#helper_unsubscribe_form_link_btn").prop("href", helper_unsubscribe_form_link); $("#helper_unsubscribe_form_link_btn").prop("href", helper_unsubscribe_form_link);
$("#request_form_link_btn2").prop("href", request_form_link); $("#request_form_link_btn2").prop("href", request_form_link);
$("#request_form_link_btn").prop("href", request_form_link); $("#request_form_link_btn").prop("href", request_form_link);
display_messages_for_attached_people();
} }
$(document).on('click', "#shift_exchange_btn", () => { $(document).on('click', "#shift_exchange_btn", () => {
...@@ -37,3 +39,11 @@ $(document).on('click', '.accordion', function() { ...@@ -37,3 +39,11 @@ $(document).on('click', '.accordion', function() {
panel.style.display = "block"; panel.style.display = "block";
} }
}); });
function display_messages_for_attached_people() {
if (block_actions_for_attached_people === "False") {
$(".attached-unblocked").show();
} else {
$(".attached-blocked").show();
}
}
...@@ -350,4 +350,4 @@ $(document).ready(function() { ...@@ -350,4 +350,4 @@ $(document).ready(function() {
return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr);
}; };
})(jQuery, 'smartresize'); })(jQuery, 'smartresize');
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment