diff --git a/atst/routes/workspaces.py b/atst/routes/workspaces.py index 005ae65a..af59939b 100644 --- a/atst/routes/workspaces.py +++ b/atst/routes/workspaces.py @@ -181,10 +181,7 @@ def create_project(workspace_id): def edit_project(workspace_id, project_id): workspace = Workspaces.get_for_update_projects(g.current_user, workspace_id) project = Projects.get(g.current_user, workspace, project_id) - form = ProjectForm( - name=project.name, - description=project.description, - ) + form = ProjectForm(name=project.name, description=project.description) return render_template( "workspaces/projects/edit.html", workspace=workspace, project=project, form=form diff --git a/templates/fragments/edit_project_form.html b/templates/fragments/edit_project_form.html index 50e387e3..577c4908 100644 --- a/templates/fragments/edit_project_form.html +++ b/templates/fragments/edit_project_form.html @@ -4,22 +4,22 @@ {% set title_text = 'Edit {} project'.format(project.name) if project else 'Add a new project' %} {{ form.csrf_token }} -
-
-

{{ title_text }}

-
- -
-

- AT-AT allows you to organize your workspace into multiple projects, each of which may have environments. -

- {{ TextInput(form.name) }} - {{ TextInput(form.description, paragraph=True) }} -
+
+
+

{{ title_text }}

-
{# this extra div prevents this bug: https://www.pivotaltracker.com/story/show/160768940 #} -
- {{ Alert(message=None, level="error", vue_template=True) }} -
+
+

+ AT-AT allows you to organize your workspace into multiple projects, each of which may have environments. +

+ {{ TextInput(form.name) }} + {{ TextInput(form.description, paragraph=True) }}
+
+ +
{# this extra div prevents this bug: https://www.pivotaltracker.com/story/show/160768940 #} +
+ {{ Alert(message=None, level="error", vue_template=True) }} +
+