@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), ])
@input!(ctx.1, name (text), "Name", form, errors.clone(), "props") @input!(ctx.1, default_license (text), "Default article license", form, errors, "minlenght=\"1\"")
})