{% choice "brand" label="Select a brand", value='MPG', choices='MPG, MPGS, MP, RM, EXP', export_to_template_context="True" %}
{% if widget.brand == "MPG" %}
<!-- logo -->
<nav id="nav">
<a href="{{ widget.mpg_link }}" target="_blank">
<img id="logo-normal" src="{{ widget.mpg_logo.src }}" width="{{ widget.mpg_logo.width }}" height="{{ widget.mpg_logo.height }}" alt="{{ widget.mpg_logo.alt }}" title="{{ widget_data.brand.value }}">
</a>
</nav>
<div id="nav-spacer"></div>
{% elif widget.brand == "MPGS" %}
<!-- logo -->
<nav id="nav">
<a href="{{ widget.mpgs_link }}" target="_blank">
<img id="logo-normal" src="{{ widget.mpgs_logo.src }}" width="{{ widget.mpgs_logo.width }}" height="{{ widget.mpgs_logo.height }}" alt="{{ widget.mpgs_logo.alt }}" title="{{ widget_data.department.value }}">
</a>
</nav>
<div id="nav-spacer"></div>
{% elif widget.brand == "MP" %}
<!-- logo -->
<nav id="nav">
<a href="{{ widget.mp_link }}" target="_blank">
<img id="logo-normal" src="{{ widget.mp_logo.src }}" width="{{ widget.mp_logo.width }}" height="{{ widget.mp_logo.height }}" alt="{{ widget.mp_logo.alt }}" title="{{ widget_data.brand.value }}">
</a>
</nav>
<div id="nav-spacer"></div>
{% elif widget.brand == "RM" %}
<!-- logo -->
<nav id="nav">
<a href="{{ widget.rm_link }}" target="_blank">
<img id="logo-normal" src="{{ widget.rm_logo.src }}" width="{{ widget.rm_logo.width }}" height="{{ widget.rm_logo.height }}" alt="{{ widget.rm_logo.alt }}" title="{{ widget_data.brand.value }}">
</a>
</nav>
<div id="nav-spacer"></div>
{% else %}
<!-- logo -->
<nav id="nav">
<a href="{{ widget.rm_link }}" target="_blank">
<img id="logo-normal" src="{{ widget.rm_logo.src }}" width="{{ widget.rm_logo.width }}" height="{{ widget.rm_logo.height }}" alt="{{ widget.rm_logo.alt }}" title="{{ widget_data.brand.value }}">
</a>
</nav>
<div id="nav-spacer"></div>
{% endif %}
Im trying to create a header for multiple brands within an organization. The user would select the brand from a dropdown in the UI, rendering the correct header and logo. Currently the module always renders the markup in the final else statement and does not respect the user selection in the UI
