WIP projects templates

This commit is contained in:
richard-dds 2018-08-21 13:46:54 -04:00
parent 18cd1b4473
commit 7c21e64c51
4 changed files with 21 additions and 14 deletions

View File

@ -9,8 +9,8 @@
subnav=[
{
"label": "Add New Project",
"href":"/",
"active": g.matchesPath('workspaces/projects/new'),
"href": url_for('workspaces.new_project', workspace_id=workspace.id),
"active": g.matchesPath('\/workspaces\/[A-Za-z0-9-]*\/projects'),
"icon": "plus"
}
]

View File

@ -0,0 +1,8 @@
{% from "components/icon.html" import Icon %}
{% extends "base_workspace.html" %}
{% block workspace_content %}
<h1>Add a new project</h1>
{% endblock %}

View File

@ -1,9 +1,20 @@
{% from "components/icon.html" import Icon %}
{% from "components/alert.html" import Alert %}
{% extends "base_workspace.html" %}
{% block workspace_content %}
{% if True %}
{{ Alert('Workspace created!',
message="\
<p>You are now ready to create projects and environments within the JEDI Cloud.</p>
",
actions='',
level='success'
) }}
{% endif %}
{% for project in workspace.projects %}
<div class='block-list project-list-item'>
<header class='block-list__header'>

View File

@ -1,12 +0,0 @@
{% extends "base.html.to" %}
{% block content %}
<div class="usa-width-one-whole empty-state">
<p>There are currently no JEDI workspaces</p>
<a href="" class="usa-button">New Workspace</a>
</div>
{% end %}