modal_collabo_profile.html 3.25 KB
Newer Older
1 2
<div class="modal fade profile_modal w_50" id="userNameCardInCollaboration" tabindex="-1" role="dialog"
  aria-labelledby="userNameCardInCollaboration" aria-hidden="true">
藤川諒 committed
3 4 5 6 7 8
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content">
      <div class="modal-header border-0">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
9
        <div class="profile_desc_ d-flex flex-row">
10
          <img src="{{profileUrl}}" onError="this.src='./img/noImage.png'" />
藤川諒 committed
11
          <div class="profile_name d-flex justify-content-center align-items-center"><span>{{name}}</span></div>
12
        </div>
藤川諒 committed
13 14
      </div>
      <div class="modal-body">
15
        {{#groupPathList}}
16
        <li onclick="return false;"><b>{{groupPath}}</b></li>
17
        {{/groupPathList}}
藤川諒 committed
18 19
      </div>
      <div class="modal-footer border-0 justify-content-center">
20
        {{#isFavorite}}
21
        <button type="button" class="border-0 bg_navy"
22
          onclick="CollaborationUI.removeFavoriteUserInCollaboration({{shopMemberId}})" id="favoriteButton">
藤川諒 committed
23 24 25 26 27 28 29
          <div class="d-flex flex-column">
            <div class="img_wrap">
              <img src="icon/icon_profile_favorite.png" alt="お気に入り">
            </div>
            <span>お気に入り解除</span>
          </div>
        </button>
30 31
        {{/isFavorite}}
        {{^isFavorite}}
32
        <button type="button" class="border-0 bg_navy"
33
          onclick="CollaborationUI.insertFavoriteUserInCollaboration({{shopMemberId}})" id="favoriteButton">
34 35 36 37 38 39 40 41
          <div class="d-flex flex-column">
            <div class="img_wrap">
              <img src="icon/icon_profile_favorite_white.png" alt="お気に入り">
            </div>
            <span>お気に入り登録</span>
          </div>
        </button>
        {{/isFavorite}}
42
        {{#isHost}}
43 44
        <button type="button" class="ch_host_btn border-0 bg_green text_white"
          onclick="hostChangeRequest('{{loginId}}');">
45 46 47 48 49 50 51 52 53
          <div class="d-flex flex-column">
            <div class="img_wrap">
              <img src="icon/icon_change_host.png" alt="ホスト変更">
            </div>
            <span>ホスト変更</span>
          </div>
        </button>
        {{/isHost}}
        {{^isHost}}
54
        {{#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 62 63
          <div class="d-flex flex-column">
            <div class="img_wrap">
              <img src="icon/icon_change_host.png" alt="ホスト変更">
            </div>
            <span>ホスト変更</span>
          </div>
        </button>
64 65
        {{/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>
68 69 70 71 72 73 74 75
          <div class="d-flex flex-column">
            <div class="img_wrap">
              <img src="icon/icon_change_host.png" alt="ホスト変更">
            </div>
            <span>ホスト変更</span>
          </div>
        </button>
        {{/whosHost}}
76
        {{/isHost}}
藤川諒 committed
77 78 79
      </div>
    </div>
  </div>
Kim Peace committed
80
</div>