From 104192c857a5b040482a590eebe4e13f1156ca24 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:17:01 +0100 Subject: [PATCH] Add help text to model in Rails Admin --- config/initializers/rails_admin.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/initializers/rails_admin.rb b/config/initializers/rails_admin.rb index 7010741d2..741b289b2 100644 --- a/config/initializers/rails_admin.rb +++ b/config/initializers/rails_admin.rb @@ -32,6 +32,15 @@ RailsAdmin.config do |config| label "CSV Variable Definition" edit do exclude_fields :last_accessed + field :log_type do + help "Required. Specify the type of log associated with this variable: 'lettings' or 'sales'." + end + field :user_type do + help "Required. Specify the user access associated with this variable: 'support' or 'user'. Support users have access to all variables, including those set as 'user'." + end + field :year do + help "Required. Specify the year this definition should be available from. This definition will be used in future years unless superseded by a newer definition." + end end end