From 305939712fb2eef5f1c67cb03dafe50316ddb47f Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 10 Feb 2016 20:40:40 +0100 Subject: [PATCH] fix #17 and s/Bedrag/Amount --- app/views/transactions/_new.html.haml | 2 +- app/views/users/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/transactions/_new.html.haml b/app/views/transactions/_new.html.haml index b4f3482..cb4be2c 100644 --- a/app/views/transactions/_new.html.haml +++ b/app/views/transactions/_new.html.haml @@ -13,7 +13,7 @@ %span.input-group-addon %span.glyphicon.glyphicon-euro = f.number_field :euros, value: amount(@transaction.amount), - placeholder: "Bedrag", step: 0.01, min: (0.01 unless current_user.penning), + placeholder: "Amount", step: 0.01, min: (0.01 unless current_user.penning), class: "form-control", size: 20, required: true, max: (Rails.application.config.maximum_amount/100 unless current_user.penning) = f.submit "Send it!", class: "pure-button pure-button-primary btn" diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 7216372..51c3a26 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -1,4 +1,4 @@ -%h2= @user.name +%h2= "#{@user.name} (balance: #{@user.balance/100.0})" = render 'transactions/new'