diff --git a/templates/fragments/applications/edit_environment_team_form.html b/templates/fragments/applications/edit_environment_team_form.html new file mode 100644 index 00000000..95505ed6 --- /dev/null +++ b/templates/fragments/applications/edit_environment_team_form.html @@ -0,0 +1,93 @@ +{% from "components/icon.html" import Icon %} +{% from "components/save_button.html" import SaveButton %} + + +{% for env_form in members_form.envs %} + {% if env_form.env_id.data == env['id'] %} + +
+ {{ members_form.csrf_token }} + {{ env_form.env_id() }} + +
+
+

Unassigned (No Access)

+

+
    +
    + Currently no members are in this role +
    +
  • + + + + {{ Icon('edit', classes="icon--medium") }} + +
    +
    +
    +
      +
    • + + +
    • +
    +
    +
    +
    + +
  • +
+
+
+ {{ + SaveButton( + text=("portfolios.applications.update_button_text" | translate) + ) + }} +
+
+
+
+ + {{ "common.cancel" | translate }} + +
+
+ {% endif %} +{% endfor %} diff --git a/templates/fragments/applications/edit_environments.html b/templates/fragments/applications/edit_environments.html index fe25d41b..7852ae7d 100644 --- a/templates/fragments/applications/edit_environments.html +++ b/templates/fragments/applications/edit_environments.html @@ -6,47 +6,6 @@ {% from "components/text_input.html" import TextInput %} {% from "components/toggle_list.html" import ToggleButton, ToggleSection %} -{% macro RolePanel(role_form) %} - {% set role = role_form.role.data %} - {% if role == 'no_access' %} - {% set role = 'Unassigned (No Access)' %} - {% set unassigned = True %} - {% endif %} - -
-

{{ role }}

- -
-{% endmacro %}
@@ -120,74 +79,7 @@
{% call ToggleSection(section_name="members", classes="environment-roles") %} - {% for env_form in members_form.envs %} - {% if env_form.env_id.data == env['id'] %} - -
- {{ members_form.csrf_token }} - {{ env_form.env_id() }} - -
-
-

Unassigned (No Access)

-

-
    -
    Currently no members are in this role
    -
  • - - - - {{ Icon('edit', classes="icon--medium") }} - -
    -
    -
    -
      -
    • - - -
    • -
    -
    -
    -
    - -
  • -
-
-
- {{ - SaveButton( - text=("portfolios.applications.update_button_text" | translate) - ) - }} -
-
-
-
- - {{ "common.cancel" | translate }} - -
-
- {% endif %} - {% endfor %} + {% include 'fragments/applications/edit_environment_team_form.html' %} {% endcall %} {% call ToggleSection(section_name="edit") %}