- users form partial on the Administrators tab of the role update form, served by rolesAdmin.PartialData through scopeAdministrators (D-03) - deleted and deactivated holders marked, superusers only for superuser editors, first 100 rows with a count note, preview links for editors holding backend.manage_users - en/pl phrases, README and docs, TestRolesSmoke asserts the partial
19 lines
946 B
HTML
19 lines
946 B
HTML
{{- /* Read-only holders of the role on its update form: a table, the empty line, or nothing (roleHoldersView). */ -}}
|
|
{{- if .Data.Rows -}}
|
|
<div class="summer-table-wrap">
|
|
<table class="summer-table">
|
|
<thead><tr><th scope="col">{{ trans "backend::lang.user.login" }}</th><th scope="col">{{ trans "backend::lang.user.first_name" }}</th><th scope="col">{{ trans "backend::lang.user.last_name" }}</th><th scope="col">{{ trans "backend::lang.user.email" }}</th></tr></thead>
|
|
<tbody>
|
|
{{- range .Data.Rows -}}
|
|
<tr><td>{{ if .Link }}<a href="{{ .Link }}">{{ .Login }}</a>{{ else }}{{ .Login }}{{ end }}{{ range .States }}<div class="summer-table__sub">{{ trans . }}</div>{{ end }}</td><td>{{ .FirstName }}</td><td>{{ .LastName }}</td><td>{{ .Email }}</td></tr>
|
|
{{- end -}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{- if .Data.Note }}
|
|
<p>{{ .Data.Note }}</p>
|
|
{{- end -}}
|
|
{{- else if .Data.Empty -}}
|
|
<p>{{ trans "backend::lang.user.role.users_empty" }}</p>
|
|
{{- end -}}
|