Commit c805631f by François C.

Merge branch '3635-is-associated-people-search' into 'dev_cooperatic'

3635-is-associated-people-search

See merge request !195
parents ddcbb3a0 0fbac578
Pipeline #2359 passed with stage
in 1 minute 23 seconds
...@@ -826,7 +826,7 @@ class CagetteMember(models.Model): ...@@ -826,7 +826,7 @@ class CagetteMember(models.Model):
# member = CagetteMember(m['id'], m['email']) # member = CagetteMember(m['id'], m['email'])
# m['next_shifts'] = member.get_next_shift() # m['next_shifts'] = member.get_next_shift()
if not m['parent_name'] is False: if not m['parent_name'] is False:
m['name'] += ' (en binôme avec ' + m['parent_name'] + ')' m['name'] += ' (suppléant.e de son binôme ' + m['parent_name'] + ')'
del m['parent_name'] del m['parent_name']
members.append(m) members.append(m)
......
...@@ -293,7 +293,7 @@ $(document).ready(function() { ...@@ -293,7 +293,7 @@ $(document).ready(function() {
let search_str = $('#search_member_input').val(); let search_str = $('#search_member_input').val();
$.ajax({ $.ajax({
url: `/members/search/${search_str}?search_type=shift_template_data`, url: '/members/search/' + search_str,
dataType : 'json', dataType : 'json',
success: function(data) { success: function(data) {
$('#partner_data_area').hide(); $('#partner_data_area').hide();
......
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