mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-23 03:51:00 +00:00
38701c8a40
The user 'UniqueActive' pointed these issues out on Crowdin. Thank you!
40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
@use plume_models::instance::Instance;
|
|
@use validator::ValidationErrors;
|
|
@use templates::base;
|
|
@use template_utils::*;
|
|
@use routes::instance::InstanceSettingsForm;
|
|
@use routes::*;
|
|
|
|
@(ctx: BaseContext, instance: Instance, form: InstanceSettingsForm, errors: ValidationErrors)
|
|
|
|
@:base(ctx, i18n!(ctx.1, "Administration of {0}"; instance.name.clone()), {}, {}, {
|
|
<h1>@i18n!(ctx.1, "Administration")</h1>
|
|
|
|
@tabs(&[
|
|
(&uri!(instance::admin).to_string(), i18n!(ctx.1, "Configuration"), true),
|
|
(&uri!(instance::admin_instances: page = _).to_string(), i18n!(ctx.1, "Instances"), false),
|
|
(&uri!(instance::admin_users: page = _).to_string(), i18n!(ctx.1, "Users"), false),
|
|
])
|
|
|
|
<form method="post" action="@uri!(instance::update_settings)">
|
|
@input!(ctx.1, name (text), "Name", form, errors.clone(), "props")
|
|
|
|
<label for="open_registrations">
|
|
@if instance.open_registrations {
|
|
<input type="checkbox" name="open_registrations" id="open_registrations" checked>
|
|
} else {
|
|
<input type="checkbox" name="open_registrations" id="open_registrations">
|
|
}
|
|
@i18n!(ctx.1, "Allow anyone to register here")
|
|
|
|
<label for="short_description">@i18n!(ctx.1, "Short description")<small>@i18n!(ctx.1, "Markdown syntax is supported")</small></label>
|
|
<textarea id="short_description" name="short_description">@Html(form.short_description)</textarea>
|
|
|
|
<label for="long_description">@i18n!(ctx.1, "Long description")<small>@i18n!(ctx.1, "Markdown syntax is supported")</small></label>
|
|
<textarea id="long_description" name="long_description">@Html(form.long_description)</textarea>
|
|
|
|
@input!(ctx.1, default_license (text), "Default article license", form, errors, "minlenght=\"1\"")
|
|
|
|
<input type="submit" value="@i18n!(ctx.1, "Save these settings")"/>
|
|
</form>
|
|
})
|