Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
frontend: Fix broken label tag and removed label expression.
aryanshridharce148ce77002
diff --git a/static/templates/admin_bot_form.hbs b/static/templates/admin_bot_form.hbsindex 752a4547fb1..71b0659be4c 100644--- a/static/templates/admin_bot_form.hbs+++ b/static/templates/admin_bot_form.hbs@@ -12,8 +12,7 @@{{> settings/dropdown_list_widgetwidget_name="edit_bot_owner"list_placeholder=(t 'Filter users')- reset_button_text=(t '[Remove owner]')- label="" }}+ reset_button_text=(t '[Remove owner]')}}</div><div class="input-group name_change_container"><label for="full_name">{{t "Full name" }}</label>diff --git a/static/templates/edit_bot.hbs b/static/templates/edit_bot.hbsindex 299e85ea5d8..be0a1da3910 100644--- a/static/templates/edit_bot.hbs+++ b/static/templates/edit_bot.hbs@@ -12,12 +12,11 @@</div><div class="edit-bot-form-box"><div class="edit-bot-owner">- <label for="bot_owner_select">{{t "Owner" }}</label>+ <label>{{t "Owner" }}</label>{{> settings/dropdown_list_widgetwidget_name="bot_owner"list_placeholder=(t 'Filter users')- reset_button_text=(t '[Remove owner]')- label="" }}+ reset_button_text=(t '[Remove owner]')}}</div><div class=""><label for="edit_bot_name">{{t "Full name" }}</label>diff --git a/static/templates/settings/dropdown_list_widget.hbs b/static/templates/settings/dropdown_list_widget.hbsindex 3e20da34f63..12096f8e1fb 100644--- a/static/templates/settings/dropdown_list_widget.hbs+++ b/static/templates/settings/dropdown_list_widget.hbs@@ -1,9 +1,10 @@<div class="input-group dropdown-list-widget" id="{{widget_name}}_widget">- <span class="{{widget_name}}_setting dropup actual-dropdown-menu prop-element" id="id_{{widget_name}}"- name="{{widget_name}}" aria-labelledby="{{widget_name}}_label">- <label for="{{widget_name}}" id="{{widget_name}}_label" class="inline-block">+ <span class="{{widget_name}}_setting dropup actual-dropdown-menu prop-element" id="id_{{widget_name}}" aria-labelledby="{{widget_name}}_label">+ {{#if label}}+ <label id="{{widget_name}}_label" class="inline-block">{{ label }}</label>+ {{/if}}<button class="button small rounded dropdown-toggle" data-toggle="dropdown"><span id="{{widget_name}}_name"></span><i class="fa fa-pencil"></i>