Skip to content

Commit

Permalink
UI: show content tab as selected when landing on petition edit page
Browse files Browse the repository at this point in the history
The tab was shown as selected only when clicked, but since this is
the default tab it should be shown as selected by default.
  • Loading branch information
fallen committed Oct 13, 2023
1 parent d21df50 commit 8225555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytition/petition/templates/petition/edit_petition.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
</div>
{% endif %}
<div class="list-group list-group-horizontal mb-5" id="list-tab" role="tablist">
<a href="#content_form" class="list-group-item list-group-item-info list-group-item-action"
data-toggle="list" aria-controls="content_form" role="tab"><span class="oi oi-clipboard"></span> {% trans "Content" %}</a>
<a href="#content_form" class="list-group-item list-group-item-info list-group-item-action active"
data-toggle="list" aria-controls="content_form" role="tab"><span class="oi oi-clipboard" aria-current="true"></span> {% trans "Content" %}</a>
<a href="#style_form" class="list-group-item list-group-item-info list-group-item-action"
data-toggle="list" aria-controls="style_form" role="tab"><span class="oi oi-brush"></span> {% trans "Style & Look" %}</a>
<a href="#social_network_form" class="list-group-item list-group-item-info list-group-item-action"
Expand Down

0 comments on commit 8225555

Please sign in to comment.