Class: Renalware::Letters::Lists::Form::BatchPrintableLetters
- Inherits:
-
AllLetters
- Object
- AllLetters
- Renalware::Letters::Lists::Form::BatchPrintableLetters
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
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
self.page_count_in_array ||= "[1,2]"
end
|
Instance Method Details
86
87
88
|
# File 'app/models/renalware/letters/lists/form.rb', line 86
def allow_blank_inputs
[]
end
|
82
83
84
|
# File 'app/models/renalware/letters/lists/form.rb', line 82
def disabled_inputs
[:enclosures_present, :state_eq]
end
|
#enclosures_present ⇒ Object
90
91
92
|
# File 'app/models/renalware/letters/lists/form.rb', line 90
def enclosures_present
false
end
|
#letter_state_options ⇒ Object
78
79
80
|
# File 'app/models/renalware/letters/lists/form.rb', line 78
def letter_state_options
super([:approved])
end
|
#state_eq ⇒ Object
94
95
96
|
# File 'app/models/renalware/letters/lists/form.rb', line 94
def state_eq
@state_eq || :approved
end
|