Skip to content

Commit

Permalink
Prettify prescription print.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Jul 15, 2014
1 parent 7b8319a commit bb09a06
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/view/drugs/prescription.rb
Expand Up @@ -123,10 +123,6 @@ class PrescriptionDrug < HtmlGrid::Composite
COMPONENT_CSS_MAP = {
[0,2] => 'wide',
}
COLSPAN_MAP = {
[0,2] => 5,
}

CSS_CLASS = 'composite'
def init
@drugs = @session.persistent_user_input(:drugs)
Expand Down Expand Up @@ -322,18 +318,13 @@ class PrescriptionComposite < HtmlGrid::Composite
class PrescriptionPrintInnerComposite < HtmlGrid::Composite
COMPONENTS = {
[0,1] => :name,
[0,7] => 'prescription_comment',
[0,9] => :comment_value,
[0,2] => 'prescription_comment',
[0,3] => :comment_value,
}
CSS_MAP = {
[0,1] => 'print bold',
[0,7] => 'print bold',
[0,9] => 'print',
}
COLSPAN_MAP = {
[0,1] => 5,
[0,7] => 5,
[0,9] => 5,
[0,2] => 'print bold',
[0,3] => 'print',
}
CSS_CLASS = 'compose'
DEFAULT_CLASS = HtmlGrid::Value
Expand Down

0 comments on commit bb09a06

Please sign in to comment.