Skip to content

Commit

Permalink
Addons: form for tooltips (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos authored Dec 5, 2024
1 parent 6b356ce commit 97706f2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion readthedocsext/theme/templates/projects/addons_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@
</div>

{% if form.enabled.value == True %}
<div class="ui top attached stackable wrapping menu"
<div class="ui top attached stackable centered fluid wrapping menu"
data-bind="semanticui: {tabs: {history: true, autoTabActivation: false}}">
<a class="active item" data-tab="flyout">{% trans "Flyout menu" %}</a>
<a class="item" data-tab="search">{% trans "Search" %}</a>
<a class="item" data-tab="notifications">{% trans "Notifications" %}</a>
<a class="item" data-tab="analytics">{% trans "Analytics" %}</a>
<a class="item" data-tab="docdiff">{% trans "Visual diff" %}</a>
<a class="item" data-tab="link-previews">{% trans "Link previews" %}</a>
<a class="item" data-tab="hotkeys">{% trans "Hotkeys" %}</a>
<a class="item" data-tab="advanced">{% trans "Advanced" %}</a>
</div>
{% endif %}

Expand Down Expand Up @@ -95,12 +97,23 @@
</div>
{% endblock addons_docdiff %}

{% block addons_link_previews %}
<div class="ui tab" data-tab="link-previews">
{{ form.linkpreviews_enabled | as_crispy_field }}
</div>
{% endblock addons_link_previews %}

{% block addons_hotkeys %}
<div class="ui tab" data-tab="hotkeys">
{{ form.hotkeys_enabled | as_crispy_field }}
</div>
{% endblock addons_hotkeys %}

{% block addons_advanced %}
<div class="ui tab" data-tab="advanced">
{{ form.options_root_selector|as_crispy_field }}
</div>
{% endblock addons_advanced %}
</div>

<input class="ui primary button" type="submit" value="{% trans "Save" %}">
Expand Down

0 comments on commit 97706f2

Please sign in to comment.