@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()), {}, {}, {

@i18n!(ctx.1, "Administration")

@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), (&uri!(instance::admin_email_blocklist: page=_).to_string(), i18n!(ctx.1, "Email blocklist"), false) ])
@(Input::new("name", i18n!(ctx.1, "Name")) .default(&form.name) .error(&errors) .set_prop("minlength", 1) .html(ctx.1)) @(Input::new("default_license", i18n!(ctx.1, "Default article license")) .default(&form.default_license) .error(&errors) .set_prop("minlength", 1) .html(ctx.1))
})