Add member placeholder info

This commit is contained in:
Luis Cielak 2018-07-30 17:26:07 -04:00 committed by dandds
parent f8cee60baa
commit 92e65e7595
3 changed files with 51 additions and 70 deletions

View File

@ -16,40 +16,39 @@
level="info" level="info"
) %} ) %}
<div class='panel member-card'>
<div class='member-card__header'> <div class='panel'>
<h1 class='member-card__heading'>{{ member_name }}</h1> <div class='panel__heading'>
<dl><dt>Workspace Role</dt> <dd><span class='label label--info'>{{member_workspace_role}}</span></dd></dl> <h1 class='h2'>
</div> {% if is_new_member %}
<div class='member-card__details'> Add new member
<dl> {% else %}
<div> {{ member_name }}
<dt>DOD ID:</dt> {% end %}
<dd>{{ member_id }}</dd> </h1>
</div> <div>Workspace Role</span> <span class="label">{{member_workspace_role}}</div>
<div>
<dt>Email:</dt>
<dd>{{ member_email }}</dd>
</div>
</dl>
<a href='#' class='icon-link'>edit account details</a>
</div> </div>
</div> </div>
<form class='search-bar'>
<div class='usa-input search-input'> <div class='panel panel__actions'>
<label for='project-search'>Search by project name</label> <div class='row'>
<input type='search' id='project-search' name='project-search' placeholder="Search by project name"/> <div class='col col--grow'>
<form class="usa-search usa-search-small">
<label class="usa-sr-only" for="search-field-small">Search small</label>
<input id="search-field-small" type="search" name="search" placeholder="Search by project name">
<button type="submit"> <button type="submit">
<span class="hide">Search</span> <span class="usa-sr-only">Search</span>
</button> </button>
</div>
</form> </form>
</div>
</div>
</div>
<div class='block-list project-list-item'> <div class='block-list project-list-item'>
<header class='block-list__header'> <header class='block-list__header'>
<h2 class='block-list__title'>{% module Icon('arrow-down') %} Code.mil</h2> <h2 class='block-list__title'>Code.mil</h2>
<span><a href="#" class="icon-link icon-link--danger">revoke all access</a></span> <a class="block-list__header__link icon-link icon-link--danger">revoke all access</a>
</header> </header>
<ul> <ul>
<li class='block-list__item project-list-item__environment'> <li class='block-list__item project-list-item__environment'>
@ -57,15 +56,7 @@
Development Development
</span> </span>
<div class='project-list-item__environment__actions'> <div class='project-list-item__environment__actions'>
<span class="label">no access </span><a href="#" class="icon-link">set role</a> <span>no access</span><a href="#" class="icon-link">set role</a>
</div>
</li>
<li class='block-list__item project-list-item__environment'>
<span class='project-list-item__environment'>
Sandbox
</span>
<div class='project-list-item__environment__actions'>
<span class="label">no access</span><a href="#" class="icon-link">set role</a>
</div> </div>
</li> </li>
<li class='block-list__item project-list-item__environment'> <li class='block-list__item project-list-item__environment'>
@ -73,17 +64,11 @@
Production Production
</span> </span>
<div class='project-list-item__environment__actions'> <div class='project-list-item__environment__actions'>
<span class="label label--success">Billing</span><a href="#" class="icon-link">set role</a> <span>Billing</span><a href="#" class="icon-link">set role</a>
</div> </div>
</li> </li>
</ul>
</div>
<div class='block-list project-list-item'> </ul>
<header class='block-list__header'>
<h2 class='block-list__title'>{% module Icon('arrow-right') %} Digital Dojo</h2>
<span class="label">no access</span>
</header>
</div> </div>
<div class='action-group'> <div class='action-group'>

View File

@ -1,44 +1,42 @@
{% from "components.html" import SidenavItem %}
<nav class='sidenav workspace-navigation'> <nav class='sidenav workspace-navigation'>
<ul> <ul>
{{ SidenavItem( {% module SidenavItem(
"Projects", "Projects",
href=url_for("workspaces.workspace_projects", workspace_id="123456"), href=reverse_url('workspace_projects', '123456'),
active=g.matchesPath('\/workspaces\/[A-Za-z0-9]*\/projects'), active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/projects'),
subnav=[ subnav=[
{ {
"label": "Add New Project", "label": "Add New Project",
"href":"/", "href":"/",
"active": g.matchesPath('workspaces/projects/new'), "active": matchesPath('workspaces/projects/new'),
"icon": "plus" "icon": "plus"
} }
] ]
)}} )%}
{{ SidenavItem( {% module SidenavItem(
"Members", "Members",
href="/workspaces/{}/members".format('123456'), href=reverse_url('workspace_members', '123456'),
active=g.matchesPath('\/workspaces\/[A-Za-z0-9]*\/members'), active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/members'),
subnav=[ subnav=[
{ {
"label": "Add New Member", "label": "Add New Member",
"href": "", "href": "",
"active": g.matchesPath('/workspaces/members/new'), "active": matchesPath('/workspaces/members/new'),
"icon": "plus" "icon": "plus"
}, },
{ {
"label": "Editing Member", "label": "Editing Member",
"href": "", "href": "",
"active": g.matchesPath('/workspaces/123456/members/789/edit') "active": matchesPath('/workspaces/123456/members/789/edit')
} }
] ]
)}} )%}
{{ SidenavItem( {% module SidenavItem(
"Funding & Reports", "Funding & Reports",
href=url_for("workspaces.workspace_projects", workspace_id="123456"), href=reverse_url('workspace_projects', '123456'),
active=g.matchesPath('\/workspaces\/[A-Za-z0-9]*\/reports') active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/reports')
)}} )%}
</ul> </ul>
</nav> </nav>

View File

@ -1,17 +1,15 @@
{% from "components.html" import EmptyState %} {% extends "base_workspace.html.to" %}
{% extends "base_workspace.html" %}
{% block workspace_content %} {% block workspace_content %}
{% if not members %} {% if not members %}
{{ EmptyState( {% module EmptyState(
'There are currently no members in this Workspace.', 'There are currently no members in this Workspace.',
actionLabel='Invite a new Member', actionLabel='Invite a new Member',
actionHref='/members/new', actionHref='/members/new',
icon='avatar' icon='avatar'
)}} )%}
{% else %} {% else %}
@ -61,17 +59,17 @@
{% for m in members %} {% for m in members %}
<tr> <tr>
<td><a href="/workspaces/123456/members/789/edit" class="icon-link icon-link--large">{{ m['first_name'] }} {{ m['last_name'] }}</a></td> <td><a href="/workspaces/123456/members/789/edit" class="icon-link icon-link--large">{{ m['first_name'] }} {{ m['last_name'] }}</a></td>
<td class='table-cell--shrink'>{% if m['num_projects'] == '0' %} <span class="label label--info">No Project Access</span> {% endif %}</td> <td class='table-cell--shrink'>{% if m['num_projects'] == '0' %} <span class="label label--info">No Project Access</span> {% end %}</td>
<td>{{ m['status'] }}</a></td> <td>{{ m['status'] }}</a></td>
<td>{{ m['workspace_role'] }}</a></td> <td>{{ m['workspace_role'] }}</a></td>
</tr> </tr>
{% endfor %} {% end %}
</tbody> </tbody>
</table> </table>
</div> </div>
{% endif %} {% end %}
{% endblock %} {% end %}