Class: Renalware::Letters::Lists::Form::BatchPrintableLetters

Inherits:
AllLetters
  • Object
show all
Defined in:
app/models/renalware/letters/lists/form.rb

Instance Method Summary collapse

Methods inherited from AllLetters

#author_options, #letterhead_options, #page_count_options, #typist_options

Constructor Details

#initialize(params) ⇒ BatchPrintableLetters

Returns a new instance of BatchPrintableLetters.



71
72
73
74
75
76
# File 'app/models/renalware/letters/lists/form.rb', line 71

def initialize(params)
  super
  # These are the default values that must match the filters when the page is first
  # loaded, so the right results are displayed
  self.page_count_in_array ||= "[1,2]"
end

Instance Method Details

#allow_blank_inputsObject



86
87
88
# File 'app/models/renalware/letters/lists/form.rb', line 86

def allow_blank_inputs
  []
end

#disabled_inputsObject



82
83
84
# File 'app/models/renalware/letters/lists/form.rb', line 82

def disabled_inputs
  [:enclosures_present, :state_eq]
end

#enclosures_presentObject



90
91
92
# File 'app/models/renalware/letters/lists/form.rb', line 90

def enclosures_present
  false
end

#letter_state_optionsObject



78
79
80
# File 'app/models/renalware/letters/lists/form.rb', line 78

def letter_state_options
  super([:approved])
end

#state_eqObject



94
95
96
# File 'app/models/renalware/letters/lists/form.rb', line 94

def state_eq
  @state_eq || :approved
end