mirror of
https://github.com/discourse/discourse.git
synced 2025-01-17 02:52:47 +08:00
53 lines
1.4 KiB
Handlebars
53 lines
1.4 KiB
Handlebars
|
<DPageSubheader @titleLabel={{i18n "admin.embedding.posts_and_topics"}} />
|
||
|
|
||
|
<Form @onSubmit={{this.save}} @data={{this.formData}} as |form|>
|
||
|
<form.Field
|
||
|
@name="embed_by_username"
|
||
|
@title={{i18n "admin.embedding.embed_by_username"}}
|
||
|
@validation="required"
|
||
|
as |field|
|
||
|
>
|
||
|
<field.Custom>
|
||
|
<UserChooser
|
||
|
@value={{field.value}}
|
||
|
@onChange={{field.set}}
|
||
|
@options={{hash maximum=1 excludeCurrentUser=false}}
|
||
|
class="admin-embedding-posts-and-topics-form__embed_by_username"
|
||
|
/>
|
||
|
</field.Custom>
|
||
|
</form.Field>
|
||
|
<form.Field
|
||
|
@name="embed_post_limit"
|
||
|
@title={{i18n "admin.embedding.embed_post_limit"}}
|
||
|
@format="large"
|
||
|
as |field|
|
||
|
>
|
||
|
<field.Input />
|
||
|
</form.Field>
|
||
|
<form.Field
|
||
|
@name="embed_title_scrubber"
|
||
|
@title={{i18n "admin.embedding.embed_title_scrubber"}}
|
||
|
@format="large"
|
||
|
as |field|
|
||
|
>
|
||
|
<field.Input placeholder="- site.com$" />
|
||
|
</form.Field>
|
||
|
<form.CheckboxGroup as |checkboxGroup|>
|
||
|
<checkboxGroup.Field
|
||
|
@name="embed_truncate"
|
||
|
@title={{i18n "admin.embedding.embed_truncate"}}
|
||
|
as |field|
|
||
|
>
|
||
|
<field.Checkbox />
|
||
|
</checkboxGroup.Field>
|
||
|
|
||
|
<checkboxGroup.Field
|
||
|
@name="embed_unlisted"
|
||
|
@title={{i18n "admin.embedding.embed_unlisted"}}
|
||
|
as |field|
|
||
|
>
|
||
|
<field.Checkbox />
|
||
|
</checkboxGroup.Field>
|
||
|
</form.CheckboxGroup>
|
||
|
<form.Submit @label="admin.embedding.save" />
|
||
|
</Form>
|