|
@@ -0,0 +1,122 @@
|
|
|
|
|
+{% extends '../layout/admin.html' %}
|
|
|
|
|
+
|
|
|
|
|
+{% block html_title %}外部アカウント管理 · {% endblock %}
|
|
|
|
|
+
|
|
|
|
|
+{% block content_head %}
|
|
|
|
|
+<div class="header-wrap">
|
|
|
|
|
+ <header id="page-header">
|
|
|
|
|
+ <h1 class="title" id="">外部アカウント管理</h1>
|
|
|
|
|
+ </header>
|
|
|
|
|
+</div>
|
|
|
|
|
+{% endblock %}
|
|
|
|
|
+
|
|
|
|
|
+{% block content_main %}
|
|
|
|
|
+<div class="content-main">
|
|
|
|
|
+ {% set smessage = req.flash('successMessage') %}
|
|
|
|
|
+ {% if smessage.length %}
|
|
|
|
|
+ <div class="alert alert-success">
|
|
|
|
|
+ {{ smessage }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+
|
|
|
|
|
+ {% set emessage = req.flash('errorMessage') %}
|
|
|
|
|
+ {% if emessage.length %}
|
|
|
|
|
+ <div class="alert alert-danger">
|
|
|
|
|
+ {{ emessage }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-md-3">
|
|
|
|
|
+ {% include './widget/menu.html' with {current: 'external-account'} %}
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="col-md-9">
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <a class="btn btn-default" href="/admin/users">
|
|
|
|
|
+ <i class="fa fa-arrow-left" aria-hidden="true"></i>
|
|
|
|
|
+ ユーザー管理に戻る
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </p>
|
|
|
|
|
+
|
|
|
|
|
+ <h2>外部アカウント一覧</h2>
|
|
|
|
|
+
|
|
|
|
|
+ <table class="table table-hover table-striped table-bordered table-user-list">
|
|
|
|
|
+ <thead>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th width="120px">Authentication Provider</th>
|
|
|
|
|
+ <th><code>accountId</code></th>
|
|
|
|
|
+ <th>関連付けられているユーザーの <code>username</code></th>
|
|
|
|
|
+ <th>
|
|
|
|
|
+ パスワード設定
|
|
|
|
|
+ <a class="btn btn-sm btn-link"
|
|
|
|
|
+ data-toggle="popover" data-placement="bottom"
|
|
|
|
|
+ data-trigger="focus" tabindex="0" role="button" {# dismiss settings #}
|
|
|
|
|
+ data-animation="false" data-html="true"
|
|
|
|
|
+ data-content="<small>関連付けられているユーザーがパスワードを設定しているかどうかを表示します。<br>未設定のアカウントを削除するとログインできなくなるので注意してください。</small>">
|
|
|
|
|
+ <i class="fa fa-info-circle" aria-hidden="true"></i>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th width="100px">作成日</th>
|
|
|
|
|
+ <th width="90px">操作</th>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </thead>
|
|
|
|
|
+ <tbody>
|
|
|
|
|
+ {% for account in accounts %}
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>{{ account.providerType }}</td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <strong>{{ account.accountId }}</strong>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <strong>{{ account.user.username }}</strong>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ {% if account.user.password != null %}
|
|
|
|
|
+ <span class="label label-info">
|
|
|
|
|
+ 設定済み
|
|
|
|
|
+ </span>
|
|
|
|
|
+ {% else %}
|
|
|
|
|
+ <span class="label label-warning">
|
|
|
|
|
+ 未設定
|
|
|
|
|
+ </span>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>{{ account.createdAt|date('Y-m-d', account.createdAt.getTimezoneOffset()) }}</td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <div class="btn-group admin-user-menu">
|
|
|
|
|
+
|
|
|
|
|
+ <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
|
|
|
|
|
+ 編集
|
|
|
|
|
+ <span class="caret"></span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <ul class="dropdown-menu" role="menu">
|
|
|
|
|
+ <li class="dropdown-header">編集メニュー</li>
|
|
|
|
|
+ <li class="dropdown-button">
|
|
|
|
|
+ <form action="/admin/external-accounts/{{ account.accountId }}/remove" method="post">
|
|
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
|
|
+ <button type="submit" class="btn btn-block btn-danger">削除する</button>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>{# end of .dropdown-menu #}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </div>{# end of .btn-group #}
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ {% endfor %}
|
|
|
|
|
+ </tbody>
|
|
|
|
|
+ </table>
|
|
|
|
|
+
|
|
|
|
|
+ {% include '../widget/pager.html' with {path: "/admin/external-accounts", pager: pager} %}
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</div>
|
|
|
|
|
+{% endblock content_main %}
|
|
|
|
|
+
|
|
|
|
|
+{% block content_footer %}
|
|
|
|
|
+{% endblock content_footer %}
|
|
|
|
|
+
|
|
|
|
|
+
|