Skip to content

Commit

Permalink
Beautify layout of prescription
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Aug 26, 2014
1 parent 09f3af8 commit 1b12498
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions src/view/drugs/prescription.rb
Expand Up @@ -120,7 +120,7 @@ class PrescriptionDrug < HtmlGrid::Composite
}
CSS_MAP = {
[0,0] => 'subheading',
[0,1] => 'list',
[0,1] => '',
[0,2] => 'top',
}
COMPONENT_CSS_MAP = {
Expand Down Expand Up @@ -186,6 +186,9 @@ class PrescriptionDrugSearchForm < HtmlGrid::Composite # see View::Drugs::Center
COMPONENTS = {
[0,0] => :searchbar,
}
CSS_MAP = {
[0,1] => 'tr',
}
SYMBOL_MAP = {
:searchbar => View::PrescriptionDrugSearchBar,
}
Expand Down Expand Up @@ -308,28 +311,28 @@ def init
@components = {
[0,0] => :prescription_for,
[0,1] => View::Drugs::PrescriptionDrugDiv,
[0,2] => View::Drugs::PrescriptionDrugSearchForm,
[0,4] => :prescription_zsr_id,
[0,13,0] => :buttons,
[0,13,1] => :delete_all,
[0,14] => 'prescription_notes',
[0,3] => View::Drugs::PrescriptionDrugSearchForm,
[0,5] => :prescription_zsr_id,
[0,14,0] => :buttons,
[0,14,1] => :delete_all,
[0,15] => 'prescription_notes',
}
@css_map = {
[0,0] => 'th bold',
[0,1] => '',
[0,2] => '',
[0,4] => 'bold',
[0,13,0] => 'button',
[0,13,1] => 'button',
[0,14] => 'bold',
[0,3] => '',
[0,5] => 'bold',
[0,14,0] => 'button',
[0,14,1] => 'button',
[0,15] => 'bold',
}
@colspan_map = {
[0,0] => 3,
[0,1] => 3,
[0,2] => 3,
[0,4] => 3,
[0,13,0] => 3,
[0,13,1] => 3,
[0,3] => 3,
[0,5] => 3,
[0,14,0] => 3,
[0,14,1] => 3,
[0,15] => 3,
}
if @session.zsr_id
Expand Down

0 comments on commit 1b12498

Please sign in to comment.