@use plume_models::instance::Instance; @use validator::ValidationErrors; @use crate::templates::{base, instance::admin_header}; @use crate::template_utils::*; @use crate::routes::instance::InstanceSettingsForm; @use crate::routes::*; @(ctx: BaseContext, instance: Instance, form: InstanceSettingsForm, errors: ValidationErrors) @:base(ctx, i18n!(ctx.1, "Administration of {0}"; instance.name.clone()), {}, {}, { @:admin_header(ctx, "Administration", 1)
@(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))
})