Commit 7a0084b8 by Félicie

remove-button

parent 468038c0
Pipeline #2117 passed with stage
in 1 minute 37 seconds
......@@ -77,3 +77,16 @@
#associate_area{
margin-bottom: 15px;
}
.remove_binome_icon {
margin-left: 5px;
}
.remove_binome_icon:hover {
color: #e62720;
}
.chosen_associate_group {
display: flex;
align-items: center;
}
\ No newline at end of file
......@@ -361,10 +361,11 @@ function modify_current_coop() {
$('#existing_member_choice').addClass('choice_active');
var member_button = '<div>' + current_coop.parent_name + '</div>';
$('.chosen_associate').html(member_button);
$('.chosen_associate_area').show();
associated_old_choice = 'existing_member_choice';
$(".remove_binome_icon").on("click", hide_chosen_associate)
} else {
$('#new_member_choice_action').show();
$('#existing_member_choice_action').hide();
......@@ -383,6 +384,11 @@ function modify_current_coop() {
}
ncoop_view.show();
}
function hide_chosen_associate() {
$(".chosen_associate_area").hide();
}
function modify_coop_by_btn_triggered() {
var clicked = $(this);
var coop_id = clicked.find('div').data('id');
......
......@@ -97,7 +97,7 @@
<div >
<p><i>Binôme choisi : </i></p>
</div>
<div>
<div class="chosen_associate_group">
<span class="chosen_associate"></span>
<i class="fas fa-times remove_binome_icon"></i>
</div>
......
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