Orgs: layout tweaks

This commit is contained in:
Sybren A. Stüvel 2017-08-23 16:26:44 +02:00
parent 08294e2f14
commit 2bf95223b7
2 changed files with 111 additions and 113 deletions

View File

@ -3,6 +3,7 @@
| {% block page_title %}Organizations{% endblock %}
| {% block body %}
#app-main
#col_main.organization-index
#col_main-content
.col_header.item-list-header
@ -18,7 +19,7 @@
.table-cell.item-priority
span.collapser(title="Collapse priority column") Members
.table-cell.item-priority
span.collapser(title="Collapse priority column") Unknown Members
span.collapser(title="Collapse priority column") Pending Members
.table-body
| {% for organization in organizations['_items'] %}
@ -34,7 +35,7 @@
href="{{ link_url }}",
class="organization-link")
span(class="organization-projects-{{ organization._id }}") {{ organization.members|hide_none|count }}
.table-cell.item-unknown-members
.table-cell.item-pending-members
a(data-organization-id="{{ organization._id }}",
href="{{ link_url }}",
class="organization-link")

View File

@ -1,4 +1,4 @@
.flamenco-box.organization
.organization
form#item_form(onsubmit="return editOrganization()")
| {% if can_edit %}
.input-group
@ -27,13 +27,13 @@
value="{{ organization.location | hide_none }}")
| {% if can_super_edit %}
.input-group
input.item-location.input-transparent(
input.item-location.input-transparent.text-danger(
name="seat_count",
type="text",
placeholder="Seat count",
value="{{ organization.seat_count | hide_none }}")
.input-group
input.item-location.input-transparent(
input.item-location.input-transparent.text-danger(
name="org_roles",
type="text",
placeholder="Organization roles",
@ -68,10 +68,9 @@
.table-cell(title='Unable to edit, determined by subscription')
| {{ organization.org_roles | hide_none | sort | join(', ') }}
.flamenco-box.manager
.members
h4 Organization members
| {% if can_edit %}
.row
.sharing-users-search
.form-group
input#user-select.form-control(
@ -79,7 +78,6 @@
type='text',
placeholder='Add member by name')
| {% endif %}
.row
ul.sharing-users-list
| {% for member in members %}
li.sharing-users-item(
@ -108,8 +106,7 @@
| {% endif %}
| {% endif %}
| {% endfor %}
.row
h5 Users without Blender Cloud account
h5 Pending members (i.e. without Blender Cloud account)
ul.sharing-users-list.unknown-members
| {% for email in organization.unknown_members %}
li.sharing-users-item.unknown-member(data-user-email='{{ email }}')