in case the validation button was moved in the dropdown
[myslice.git] / ui / templates / widget-topmenu.html
index c465a84..089bd3c 100644 (file)
     <ul class="nav navbar-nav">
        {% for d in topmenu_items %} 
        {% if d.dropdown %}
-       <li class="other">
+       {% if d.is_active %} <li class='active'> {% else %} <li class='other'> {% endif %}
          <a class="dropdown-toggle" data-toggle="dropdown" href="{{ d.href }}">{{ d.label }}<b class="caret"></b></a>
          <ul class="dropdown-menu">
            {% for dd in d.contents %}
-           {% if dd.is_active %}<li class='active'>{% else %}<li class='other'>{% endif %}
+           <li class='{% if dd.is_active %}active{% else %}other{% endif %}{% if dd.disabled %} disabled{%endif%}'
+           {% if dd.domid %} id='{{dd.domid}}'{% endif %}>
            <a href="{{ dd.href }}"> {{ dd.label }} </a> </li>
            {% endfor %}
          </ul>
         </li>
         {% else %} 
-       {% if d.is_active %} <li class='active'> {% else %} <li class='other'> {% endif %}
+       <li class='{% if d.is_active %}active{% else %}other{% endif %}{% if d.disabled %} disabled{%endif%}'
+       {% if d.domid %} id='{{d.domid}}'{% endif %}>
        <a href="{{ d.href }}"> {{ d.label }} </a> </li>
        {% endif %}
        {% endfor %}