diff --git a/templates/base.html.to b/templates/base.html.to index 8ee8ceff..3f0d5995 100644 --- a/templates/base.html.to +++ b/templates/base.html.to @@ -14,6 +14,9 @@ + + {% block template_vars %}{% end %} + {% include 'navigation/topbar.html.to' %}
diff --git a/templates/project_edit.html.to b/templates/project_edit.html.to index 0ed30402..13d9b995 100644 --- a/templates/project_edit.html.to +++ b/templates/project_edit.html.to @@ -1,5 +1,10 @@ {% extends "base_workspace.html.to" %} -{% set project_id = "789" %} + +{% block template_vars %} + {% set is_new_project = False %} + {% set project_name = "Code.mil" %} + {% set project_id = "789" %} +{% end %} {% block workspace_content %} @@ -12,7 +17,14 @@
-

Add a new project

+

+ {% if is_new_project %} + Add a new project + {% else %} + {{ project_name }} + Edit project + {% end %} +