mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Story#107192666 - validation for settings that DS data allowed and Allow key data cannot be both true
This commit is contained in:
parent
e01599fb1a
commit
e31087bf60
3 changed files with 26 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
- value = Setting.send(var)
|
||||
%tr
|
||||
%tr{class: (@errors && @errors.has_key?(var.to_s) && "danger")}
|
||||
%td= t(var)
|
||||
- if [TrueClass, FalseClass].include?(value.class)
|
||||
%td
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue