diff --git a/web/src/templates.ts b/web/src/templates.ts index 68672051a5..5254508cb6 100644 --- a/web/src/templates.ts +++ b/web/src/templates.ts @@ -1,6 +1,6 @@ import Handlebars from "handlebars/runtime.js"; -import render_input from "../templates/components/input.hbs"; +import render_input_wrapper from "../templates/components/input_wrapper.hbs"; import * as common from "./common.ts"; import {default_html_elements, intl} from "./i18n.ts"; @@ -178,10 +178,10 @@ Handlebars.registerHelper("popover_hotkey_hints", (...args) => { // The below section is for registering global Handlebar partials. -// The "input" partial block located at web/templates/components/input.hbs +// The "input_wrapper" partial block located at web/templates/components/input_wrapper.hbs // is used to wrap any input element that needs to be styled as a Zulip input. // Usage example: -// {{#> input . input_type="filter-input" custom_classes="inbox-search-wrapper" icon="search" input_button_icon="close"}} +// {{#> input_wrapper . input_type="filter-input" custom_classes="inbox-search-wrapper" icon="search" input_button_icon="close"}} // -// {{/input}} -Handlebars.registerPartial("input", render_input); +// {{/input_wrapper}} +Handlebars.registerPartial("input_wrapper", render_input_wrapper); diff --git a/web/templates/components/input.hbs b/web/templates/components/input_wrapper.hbs similarity index 100% rename from web/templates/components/input.hbs rename to web/templates/components/input_wrapper.hbs diff --git a/web/templates/components/showroom/filter_input.hbs b/web/templates/components/showroom/filter_input.hbs index 1f97a4cc90..1b799d5fe3 100644 --- a/web/templates/components/showroom/filter_input.hbs +++ b/web/templates/components/showroom/filter_input.hbs @@ -1,3 +1,3 @@ -{{#> input input_type="filter-input" icon="search" input_button_icon="close"}} +{{#> input_wrapper input_type="filter-input" icon="search" input_button_icon="close"}} -{{/input}} +{{/input_wrapper}} diff --git a/web/templates/inbox_view/inbox_view.hbs b/web/templates/inbox_view/inbox_view.hbs index 9e8d949e73..66e57b65c9 100644 --- a/web/templates/inbox_view/inbox_view.hbs +++ b/web/templates/inbox_view/inbox_view.hbs @@ -6,9 +6,9 @@ {{else}}