WIP: use lists for application environment table

This commit is contained in:
dandds
2019-04-12 09:58:47 -04:00
committed by George Drummond
parent 3ce7d18f7a
commit 171898c753
4 changed files with 113 additions and 52 deletions

View File

@@ -0,0 +1,27 @@
{% from "components/icon.html" import Icon %}
{% macro ToggleList(item_name, item_type, length) %}
<li is="toggler">
<template slot-scope="props">
<span v-on:click="props.toggle">{{ item_name }}</span>
<template v-if="props.isVisible">
<span
v-on:click="props.toggle"
class='icon-link icon-link--large accordion-table__item__toggler' >
Hide {{ item_type }} ({{ length }}){{ Icon('caret_up') }}
</span>
</template>
<template v-else>
<span
v-on:click="props.toggle"
class='icon-link icon-link--large accordion-table__item__toggler'>
Show {{ item_type }} ({{ length }}){{ Icon('caret_down') }}
</span>
</template>
<div v-show="props.isVisible">
{{ caller() }}
</div>
</template>
</li>
{% endmacro %}