yama/templates/body_multipart_alternative....

25 lines
778 B
HTML

<div class="partouter">
<div class="partheader">
multipart/alternative
</div>
<div class="partinner">
{% for type in types %}
<input id="sp{{prefix}}_{{loop.index}}" type="radio" name="g{{prefix}}">
<label for="sp{{prefix}}_{{loop.index}}">{{type}}</label>
<style>
#p{{prefix}}_{{loop.index}} {
display: none;
}
input#sp{{prefix}}_{{loop.index}}:checked ~ #p{{prefix}}_{{loop.index}} {
display: block;
}
</style>
{% endfor %}
{% for part in parts %}
<div id="p{{prefix}}_{{loop.index}}">
{{part}}
</div>
{% endfor %}
</div>
</div>