Remove ToggleList
This commit is contained in:
parent
4b03845717
commit
cac7679fb2
@ -9,12 +9,6 @@
|
|||||||
</span>
|
</span>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro ToggleList(item_name, item_type, length) %}
|
|
||||||
<div>
|
|
||||||
{{ caller() }}
|
|
||||||
</div>
|
|
||||||
{% endmacro %}
|
|
||||||
|
|
||||||
{% macro ToggleSection(section_name) %}
|
{% macro ToggleSection(section_name) %}
|
||||||
<div v-show="selectedSection === '{{ section_name }}'">
|
<div v-show="selectedSection === '{{ section_name }}'">
|
||||||
{{ caller() }}
|
{{ caller() }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{% from "components/icon.html" import Icon %}
|
{% from "components/icon.html" import Icon %}
|
||||||
{% from "components/toggle_list.html" import ToggleList, ToggleButton, ToggleSection %}
|
{% from "components/toggle_list.html" import ToggleButton, ToggleSection %}
|
||||||
|
|
||||||
<div class="application-list-item">
|
<div class="application-list-item">
|
||||||
<header>
|
<header>
|
||||||
@ -60,27 +60,31 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% call ToggleList() %}
|
{% call ToggleSection(section_name="environments") %}
|
||||||
{% call ToggleSection(section_name="environments") %}
|
<ul>
|
||||||
<ul>
|
{% for member in members_list %}
|
||||||
{% for member in members_list %}
|
<li class="accordion-table__item__expanded">
|
||||||
<li class="accordion-table__item__expanded">
|
<div class="accordion-table__item__expanded_first">{{ member.name }}</div>
|
||||||
<div class="accordion-table__item__expanded_first">{{ member.name }}</div>
|
<div class="right">{{ member.role }}</div>
|
||||||
<div class="right">{{ member.role }}</div>
|
</li>
|
||||||
</li>
|
{% endfor %}
|
||||||
{% endfor %}
|
</ul>
|
||||||
</ul>
|
{% endcall %}
|
||||||
{% endcall %}
|
|
||||||
|
|
||||||
{% call ToggleSection(section_name="edit") %}
|
{% call ToggleSection(section_name="edit") %}
|
||||||
<ul>
|
<ul>
|
||||||
<li class="accordion-table__item__expanded">
|
<li class="accordion-table__item__expanded">
|
||||||
<div class="accordion-table__item__expanded_first">
|
<div>
|
||||||
<strong>Edit section</strong>
|
<form>
|
||||||
</div>
|
<div class="form-row">
|
||||||
</li>
|
<div class="form-col form-col--half">
|
||||||
</ul>
|
Row here
|
||||||
{% endcall %}
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</li>
|
</li>
|
||||||
</toggler>
|
</toggler>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% from "components/empty_state.html" import EmptyState %}
|
{% from "components/empty_state.html" import EmptyState %}
|
||||||
{% from "components/icon.html" import Icon %}
|
{% from "components/icon.html" import Icon %}
|
||||||
{% from "components/toggle_list.html" import ToggleList, ToggleButton, ToggleSection %}
|
{% from "components/toggle_list.html" import ToggleButton, ToggleSection %}
|
||||||
|
|
||||||
{% set secondary_breadcrumb = 'portfolios.applications.team_settings.title' | translate({ "application_name": application.name }) %}
|
{% set secondary_breadcrumb = 'portfolios.applications.team_settings.title' | translate({ "application_name": application.name }) %}
|
||||||
|
|
||||||
@ -96,18 +96,16 @@
|
|||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% call ToggleList() %}
|
{% call ToggleSection(section_name="environments") %}
|
||||||
{% call ToggleSection(section_name="environments") %}
|
<ul>
|
||||||
<ul>
|
{% for environment in user_info["environments"] %}
|
||||||
{% for environment in user_info["environments"] %}
|
<li>
|
||||||
<li>
|
<div class="accordion-table__item-content">
|
||||||
<div class="accordion-table__item-content">
|
{{ environment.name }}
|
||||||
{{ environment.name }}
|
</div>
|
||||||
</div>
|
</li>
|
||||||
</li>
|
{% endfor %}
|
||||||
{% endfor %}
|
</ul>
|
||||||
</ul>
|
|
||||||
{% endcall %}
|
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</li>
|
</li>
|
||||||
</toggler>
|
</toggler>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user