Commit 7a0084b8 by Félicie

remove-button

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