Orgs: layout tweaks
This commit is contained in:
@@ -3,56 +3,57 @@
|
|||||||
| {% block page_title %}Organizations{% endblock %}
|
| {% block page_title %}Organizations{% endblock %}
|
||||||
|
|
||||||
| {% block body %}
|
| {% block body %}
|
||||||
#col_main.organization-index
|
#app-main
|
||||||
#col_main-content
|
#col_main.organization-index
|
||||||
.col_header.item-list-header
|
#col_main-content
|
||||||
i.pi-cloud
|
.col_header.item-list-header
|
||||||
| Your organizations
|
i.pi-cloud
|
||||||
|
| Your organizations
|
||||||
|
|
||||||
.item-list.col-scrollable
|
.item-list.col-scrollable
|
||||||
.table
|
.table
|
||||||
.table-head
|
.table-head
|
||||||
.table-row
|
.table-row
|
||||||
.table-cell.item-name
|
.table-cell.item-name
|
||||||
span.collapser(title="Collapse name column") Name
|
span.collapser(title="Collapse name column") Name
|
||||||
.table-cell.item-priority
|
.table-cell.item-priority
|
||||||
span.collapser(title="Collapse priority column") Members
|
span.collapser(title="Collapse priority column") Members
|
||||||
.table-cell.item-priority
|
.table-cell.item-priority
|
||||||
span.collapser(title="Collapse priority column") Unknown Members
|
span.collapser(title="Collapse priority column") Pending Members
|
||||||
|
|
||||||
.table-body
|
.table-body
|
||||||
| {% for organization in organizations['_items'] %}
|
| {% for organization in organizations['_items'] %}
|
||||||
| {% set link_url = url_for('pillar.web.organizations.view_embed', organization_id=organization._id) %}
|
| {% set link_url = url_for('pillar.web.organizations.view_embed', organization_id=organization._id) %}
|
||||||
.table-row(id="organization-{{ organization._id }}")
|
.table-row(id="organization-{{ organization._id }}")
|
||||||
.table-cell.item-name
|
.table-cell.item-name
|
||||||
a(data-organization-id="{{ organization._id }}",
|
a(data-organization-id="{{ organization._id }}",
|
||||||
href="{{ link_url }}",
|
href="{{ link_url }}",
|
||||||
class="organization-link")
|
class="organization-link")
|
||||||
span(class="organization-name-{{ organization._id }}") {{ organization.name }}
|
span(class="organization-name-{{ organization._id }}") {{ organization.name }}
|
||||||
.table-cell.item-members
|
.table-cell.item-members
|
||||||
a(data-organization-id="{{ organization._id }}",
|
a(data-organization-id="{{ organization._id }}",
|
||||||
href="{{ link_url }}",
|
href="{{ link_url }}",
|
||||||
class="organization-link")
|
class="organization-link")
|
||||||
span(class="organization-projects-{{ organization._id }}") {{ organization.members|hide_none|count }}
|
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 }}",
|
a(data-organization-id="{{ organization._id }}",
|
||||||
href="{{ link_url }}",
|
href="{{ link_url }}",
|
||||||
class="organization-link")
|
class="organization-link")
|
||||||
span(class="organization-projects-{{ organization._id }}") {{ organization.unknown_members|hide_none|count }}
|
span(class="organization-projects-{{ organization._id }}") {{ organization.unknown_members|hide_none|count }}
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
|
|
||||||
#item-action-panel
|
#item-action-panel
|
||||||
| {% if can_create_organization %}
|
| {% if can_create_organization %}
|
||||||
button.btn(onclick='createNewOrganization(this)') Create new organization
|
button.btn(onclick='createNewOrganization(this)') Create new organization
|
||||||
#create_organization_result_panel
|
#create_organization_result_panel
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
#col_right
|
#col_right
|
||||||
.col_header
|
.col_header
|
||||||
span.header_text
|
span.header_text
|
||||||
#item-details.col-scrollable
|
#item-details.col-scrollable
|
||||||
.item-details-empty
|
.item-details-empty
|
||||||
| Select an organization
|
| Select an organization
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.flamenco-box.organization
|
.organization
|
||||||
form#item_form(onsubmit="return editOrganization()")
|
form#item_form(onsubmit="return editOrganization()")
|
||||||
| {% if can_edit %}
|
| {% if can_edit %}
|
||||||
.input-group
|
.input-group
|
||||||
@@ -27,13 +27,13 @@
|
|||||||
value="{{ organization.location | hide_none }}")
|
value="{{ organization.location | hide_none }}")
|
||||||
| {% if can_super_edit %}
|
| {% if can_super_edit %}
|
||||||
.input-group
|
.input-group
|
||||||
input.item-location.input-transparent(
|
input.item-location.input-transparent.text-danger(
|
||||||
name="seat_count",
|
name="seat_count",
|
||||||
type="text",
|
type="text",
|
||||||
placeholder="Seat count",
|
placeholder="Seat count",
|
||||||
value="{{ organization.seat_count | hide_none }}")
|
value="{{ organization.seat_count | hide_none }}")
|
||||||
.input-group
|
.input-group
|
||||||
input.item-location.input-transparent(
|
input.item-location.input-transparent.text-danger(
|
||||||
name="org_roles",
|
name="org_roles",
|
||||||
type="text",
|
type="text",
|
||||||
placeholder="Organization roles",
|
placeholder="Organization roles",
|
||||||
@@ -68,76 +68,73 @@
|
|||||||
.table-cell(title='Unable to edit, determined by subscription')
|
.table-cell(title='Unable to edit, determined by subscription')
|
||||||
| {{ organization.org_roles | hide_none | sort | join(', ') }}
|
| {{ organization.org_roles | hide_none | sort | join(', ') }}
|
||||||
|
|
||||||
.flamenco-box.manager
|
.members
|
||||||
h4 Organization members
|
h4 Organization members
|
||||||
| {% if can_edit %}
|
| {% if can_edit %}
|
||||||
.row
|
.sharing-users-search
|
||||||
.sharing-users-search
|
.form-group
|
||||||
.form-group
|
input#user-select.form-control(
|
||||||
input#user-select.form-control(
|
name='contacts',
|
||||||
name='contacts',
|
type='text',
|
||||||
type='text',
|
placeholder='Add member by name')
|
||||||
placeholder='Add member by name')
|
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
.row
|
ul.sharing-users-list
|
||||||
ul.sharing-users-list
|
| {% for member in members %}
|
||||||
| {% for member in members %}
|
li.sharing-users-item(
|
||||||
li.sharing-users-item(
|
data-user-id="{{ member['_id'] }}",
|
||||||
data-user-id="{{ member['_id'] }}",
|
class="{% if current_user.objectid == member['_id'] %}self{% endif %}")
|
||||||
class="{% if current_user.objectid == member['_id'] %}self{% endif %}")
|
.sharing-users-avatar
|
||||||
.sharing-users-avatar
|
img(src="{{ member['avatar'] }}")
|
||||||
img(src="{{ member['avatar'] }}")
|
.sharing-users-details
|
||||||
.sharing-users-details
|
span.sharing-users-name
|
||||||
span.sharing-users-name
|
| {{ member['full_name'] }}
|
||||||
| {{ member['full_name'] }}
|
| {% if current_user.objectid == member['_id'] %}
|
||||||
| {% if current_user.objectid == member['_id'] %}
|
small (You)
|
||||||
small (You)
|
|
||||||
| {% endif %}
|
|
||||||
| {% if organization['admin_uid'] == member['_id'] %}
|
|
||||||
small (admin)
|
|
||||||
| {% endif %}
|
|
||||||
span.sharing-users-extra {{ member['username'] }}
|
|
||||||
.sharing-users-action
|
|
||||||
| {% if can_edit %}
|
|
||||||
| {% if current_user.objectid == member['_id'] %}
|
|
||||||
button.user-remove(title="Leave as member of this organization")
|
|
||||||
i.pi-trash
|
|
||||||
| {% else %}
|
|
||||||
button.user-remove(title="Remove this user from this organization")
|
|
||||||
i.pi-trash
|
|
||||||
| {% endif %}
|
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
| {% endfor %}
|
| {% if organization['admin_uid'] == member['_id'] %}
|
||||||
.row
|
small (admin)
|
||||||
h5 Users 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 }}')
|
|
||||||
.sharing-users-avatar
|
|
||||||
img(src="{{ email | gravatar }}")
|
|
||||||
.sharing-users-details
|
|
||||||
span.sharing-users-email {{ email }}
|
|
||||||
.sharing-users-action
|
|
||||||
| {% if can_edit %}
|
|
||||||
button.user-remove(title="Remove this user from this organization")
|
|
||||||
i.pi-trash
|
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
| {% endfor %}
|
span.sharing-users-extra {{ member['username'] }}
|
||||||
|
.sharing-users-action
|
||||||
|
| {% if can_edit %}
|
||||||
|
| {% if current_user.objectid == member['_id'] %}
|
||||||
|
button.user-remove(title="Leave as member of this organization")
|
||||||
|
i.pi-trash
|
||||||
|
| {% else %}
|
||||||
|
button.user-remove(title="Remove this user from this organization")
|
||||||
|
i.pi-trash
|
||||||
|
| {% endif %}
|
||||||
|
| {% endif %}
|
||||||
|
| {% endfor %}
|
||||||
|
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 }}')
|
||||||
|
.sharing-users-avatar
|
||||||
|
img(src="{{ email | gravatar }}")
|
||||||
|
.sharing-users-details
|
||||||
|
span.sharing-users-email {{ email }}
|
||||||
|
.sharing-users-action
|
||||||
|
| {% if can_edit %}
|
||||||
|
button.user-remove(title="Remove this user from this organization")
|
||||||
|
i.pi-trash
|
||||||
|
| {% endif %}
|
||||||
|
| {% endfor %}
|
||||||
|
|
||||||
| {% if can_edit %}
|
| {% if can_edit %}
|
||||||
h5 Batch-add members by email address
|
h5 Batch-add members by email address
|
||||||
form#batch_add_form(onsubmit="return batchAddUsers()")
|
form#batch_add_form(onsubmit="return batchAddUsers()")
|
||||||
.input-group
|
.input-group
|
||||||
textarea.item-description.input-transparent(
|
textarea.item-description.input-transparent(
|
||||||
name="emails",
|
name="emails",
|
||||||
type="text",
|
type="text",
|
||||||
rows=1,
|
rows=1,
|
||||||
placeholder="Email addresses, separated by space/enter")
|
placeholder="Email addresses, separated by space/enter")
|
||||||
.input-group
|
.input-group
|
||||||
button.btn.btn-default.btn-block(type='submit')
|
button.btn.btn-default.btn-block(type='submit')
|
||||||
i.pi-check
|
i.pi-check
|
||||||
| Add members
|
| Add members
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
.action-result-panel
|
.action-result-panel
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user