modal_collabo_profile.html 3.69 KB
Newer Older
1
<div class="modal fade profile_modal w_50" id="userNameCardInCollaboration" tabindex="-1" role="dialog"
2
  aria-labelledby="userNameCardInCollaboration" aria-hidden="true">
藤川諒 committed
3
  <div class="modal-dialog modal-dialog-centered" role="document">
4 5
    <div class="modal-content-wrap d-flex align-items-center m-auto">
      <div class="modal-content">
藤川諒 committed
6
        <div class="modal-header border-0">
7 8 9
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true" style="font-size:40px;">&times;</span>
          </button>
藤川諒 committed
10
          <div class="profile_desc_ d-flex flex-row">
11
            <img src="{{profileUrl}}" onError="this.src='./img/noImage.png'" />
藤川諒 committed
12 13
            <div class="profile_name d-flex justify-content-center align-items-center"><span>{{name}}</span></div>
          </div>
14
        </div>
藤川諒 committed
15 16 17 18 19 20 21
        <div class="modal-body">
          {{#groupPathList}}
          <li onclick="return false;"><b>{{groupPath}}</b></li>
          {{/groupPathList}}
        </div>
        <div class="modal-footer border-0 justify-content-center">
          {{#isFavorite}}
22 23
          <button type="button" class="border-0 bg_navy"
            onclick="CollaborationUI.removeFavoriteUserInCollaboration({{shopMemberId}})" id="favoriteButton">
藤川諒 committed
24
            <div class="d-flex flex-column">
Kim Peace committed
25 26
              <span class="star active shopmember_{{shopMemberId}}"
                onclick="CHAT_UI.favoriteUserChange('{{shopMemberId}}',this)"></span>
藤川諒 committed
27
              <span>お気に入り解除</span>
藤川諒 committed
28
            </div>
藤川諒 committed
29 30 31
          </button>
          {{/isFavorite}}
          {{^isFavorite}}
32 33
          <button type="button" class="border-0 bg_navy"
            onclick="CollaborationUI.insertFavoriteUserInCollaboration({{shopMemberId}})" id="favoriteButton">
藤川諒 committed
34
            <div class="d-flex flex-column">
Kim Peace committed
35 36
              <span class="star disable shopmember_{{shopMemberId}}"
                onclick="Namecard.favoriteUserChange('{{shopMemberId}}',this)"></span>
藤川諒 committed
37
              <span>お気に入り登録</span>
38
            </div>
藤川諒 committed
39 40 41
          </button>
          {{/isFavorite}}
          {{#isHost}}
Kim Peace committed
42 43 44
          <button type="button" class="ch_host_btn border-0 bg_green text_white" data-toggle="modal"
            data-target="#changeHostModal" value="#profileModal2" data-collaborationId='{{collaborationId}}'>
            <!-- onclick="FermiWebSocketBridge.requestHostChange('{{collaborationId}}');"> -->
藤川諒 committed
45 46 47 48 49
            <div class="d-flex flex-column">
              <div class="img_wrap">
                <img src="icon/icon_change_host.svg" alt="ホスト変更">
              </div>
              <span>ホスト変更</span>
50
            </div>
藤川諒 committed
51 52 53 54
          </button>
          {{/isHost}}
          {{^isHost}}
          {{#whosHost}}
55 56
          <button type="button" class="ch_host_btn border-0 bg_blue text_white" data-toggle="modal"
            data-target="#hostRequestModal" value="#profileModal2">
藤川諒 committed
57 58 59 60 61
            <div class="d-flex flex-column">
              <div class="img_wrap">
                <img src="icon/icon_change_host.svg" alt="ホスト変更">
              </div>
              <span>ホスト変更</span>
藤川諒 committed
62
            </div>
藤川諒 committed
63 64 65
          </button>
          {{/whosHost}}
          {{^whosHost}}
66 67
          <button type="button" class="ch_host_btn border-0 bg_grey text_white" data-toggle="modal"
            data-target="#hostRequestModal" value="#profileModal2"  disabled>
藤川諒 committed
68 69 70 71 72
            <div class="d-flex flex-column">
              <div class="img_wrap">
                <img src="icon/icon_change_host.svg" alt="ホスト変更">
              </div>
              <span>ホスト変更</span>
73
            </div>
藤川諒 committed
74 75 76 77
          </button>
          {{/whosHost}}
          {{/isHost}}
        </div>
藤川諒 committed
78 79 80
      </div>
    </div>
  </div>
Kim Peace committed
81
</div>