質問編集履歴

2

a

2021/05/13 10:03

投稿

tarotarotarotar
tarotarotarotar

スコア41

test CHANGED
File without changes
test CHANGED
@@ -2,13 +2,7 @@
2
2
 
3
3
  ```ruby
4
4
 
5
- content_tag(:div, class: "relative-role-list-item role-#{role}-#{relative.id} mb-1 ml-2", style: "display: #{display};") do
6
-
7
- concat content_tag(:div, role_name, class: 'role-name')
8
-
9
- concat content_tag(:div, '削除', class: 'button btn btn-outline-danger trigger-delete-modal', type: 'button', data: { toggle: 'modal', target: "#delete-modal", role: role, exists: false })
5
+ content_tag(:div, '削除', class: 'button btn btn-outline-danger trigger-delete-modal', type: 'button', data: { toggle: 'modal', target: "#delete-modal", role: role, exists: false })
10
-
11
- end
12
6
 
13
7
  ```
14
8
 

1

2021/05/13 10:03

投稿

tarotarotarotar
tarotarotarotar

スコア41

test CHANGED
File without changes
test CHANGED
@@ -30,12 +30,6 @@
30
30
 
31
31
  $('.set-role-btn').on('click', function(){
32
32
 
33
- $('.set-role-form').slideToggle();
34
-
35
- const role_arr = ['settlor', 'trustee', 'beneficiary', 'beneficiary_agent'];
36
-
37
- role_arr.forEach( function (role) {
38
-
39
33
  var existence = $('.relative-role-list').find(`[data-role=${role}]`).data('exists');
40
34
 
41
35
  if(existence){ //←ここで exists =trueならばセレクトボックスから選択できなくさせる