aboutsummaryrefslogtreecommitdiffstats
path: root/views/baby.slim
diff options
context:
space:
mode:
Diffstat (limited to 'views/baby.slim')
-rw-r--r--views/baby.slim45
1 files changed, 25 insertions, 20 deletions
diff --git a/views/baby.slim b/views/baby.slim
index af10a73..f6a4b2e 100644
--- a/views/baby.slim
+++ b/views/baby.slim
@@ -98,33 +98,38 @@ form action="/#{@baby.id}/add" method='post'
= R18n.t.biberon.quantity
input#quantity type='number' name='quantity' min='0'
- label for='comment'
- ' 📝
- = R18n.t.biberon.comment
- textarea#comment name='comment'
-
- label for='weight'
- ' ⚖️
- = R18n.t.biberon.weight
- input#weight type='number' name='weight' min='0'
-
- label for='temperature'
- ' 🌡️
- = R18n.t.biberon.temperature
- input#temperature type='number' name='temperature' min='30' step='0.1'
+ - if @settings.include?('c')
+ label for='comment'
+ ' 📝
+ = R18n.t.biberon.comment
+ textarea#comment name='comment'
+
+ - if @settings.include?('w')
+ label for='weight'
+ ' ⚖️
+ = R18n.t.biberon.weight
+ input#weight type='number' name='weight' min='0'
+
+ - if @settings.include?('t')
+ label for='temperature'
+ ' 🌡️
+ = R18n.t.biberon.temperature
+ input#temperature type='number' name='temperature' min='30' step='0.1'
div.row
div.column.column-33
input#feces type='checkbox' name='feces'
label.label-inline for='feces' = R18n.t.biberon.feces
- div.column.column-33
- input#urines type='checkbox' name='urines'
- label.label-inline for='urines' = R18n.t.biberon.urines
+ - if @settings.include?('u')
+ div.column.column-33
+ input#urines type='checkbox' name='urines'
+ label.label-inline for='urines' = R18n.t.biberon.urines
- div.column.column-33
- input#vitamind type='checkbox' name='vitamind'
- label.label-inline for='vitamind' = R18n.t.biberon.vitamind
+ - if @settings.include?('v')
+ div.column.column-33
+ input#vitamind type='checkbox' name='vitamind'
+ label.label-inline for='vitamind' = R18n.t.biberon.vitamind
input.button-primary type='submit' value=R18n.t.save
input.button-outline< type='reset' value=R18n.t.cancel