Remove ToggleList

This commit is contained in:
George Drummond 2019-04-22 10:02:00 -04:00
parent 4b03845717
commit cac7679fb2
No known key found for this signature in database
GPG Key ID: 296DD6077123BF17
3 changed files with 36 additions and 40 deletions

View File

@ -9,12 +9,6 @@
</span>
{% endmacro %}
{% macro ToggleList(item_name, item_type, length) %}
<div>
{{ caller() }}
</div>
{% endmacro %}
{% macro ToggleSection(section_name) %}
<div v-show="selectedSection === '{{ section_name }}'">
{{ caller() }}

View File

@ -1,5 +1,5 @@
{% 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">
<header>
@ -60,27 +60,31 @@
</span>
</div>
{% call ToggleList() %}
{% call ToggleSection(section_name="environments") %}
<ul>
{% for member in members_list %}
<li class="accordion-table__item__expanded">
<div class="accordion-table__item__expanded_first">{{ member.name }}</div>
<div class="right">{{ member.role }}</div>
</li>
{% endfor %}
</ul>
{% endcall %}
{% call ToggleSection(section_name="environments") %}
<ul>
{% for member in members_list %}
<li class="accordion-table__item__expanded">
<div class="accordion-table__item__expanded_first">{{ member.name }}</div>
<div class="right">{{ member.role }}</div>
</li>
{% endfor %}
</ul>
{% endcall %}
{% call ToggleSection(section_name="edit") %}
<ul>
<li class="accordion-table__item__expanded">
<div class="accordion-table__item__expanded_first">
<strong>Edit section</strong>
</div>
</li>
</ul>
{% endcall %}
{% call ToggleSection(section_name="edit") %}
<ul>
<li class="accordion-table__item__expanded">
<div>
<form>
<div class="form-row">
<div class="form-col form-col--half">
Row here
</div>
</div>
</form>
</div>
</li>
</ul>
{% endcall %}
</li>
</toggler>

View File

@ -2,7 +2,7 @@
{% from "components/empty_state.html" import EmptyState %}
{% 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 }) %}
@ -96,18 +96,16 @@
}}
</span>
</div>
{% call ToggleList() %}
{% call ToggleSection(section_name="environments") %}
<ul>
{% for environment in user_info["environments"] %}
<li>
<div class="accordion-table__item-content">
{{ environment.name }}
</div>
</li>
{% endfor %}
</ul>
{% endcall %}
{% call ToggleSection(section_name="environments") %}
<ul>
{% for environment in user_info["environments"] %}
<li>
<div class="accordion-table__item-content">
{{ environment.name }}
</div>
</li>
{% endfor %}
</ul>
{% endcall %}
</li>
</toggler>