From aa51392d169584a56676937b9f708e7cd581a0ae Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Sun, 18 Oct 2015 22:54:07 +0200 Subject: [PATCH] added terms and conditions --- app/views/supporters/_form.slim | 7 +++++-- config/locales/de.yml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/supporters/_form.slim b/app/views/supporters/_form.slim index a2b080b..dcd6477 100644 --- a/app/views/supporters/_form.slim +++ b/app/views/supporters/_form.slim @@ -1,4 +1,4 @@ - += render 'shared/terms_and_conditions' h1 = title t('.title_html') .row .col-xs-12.col-md-7 @@ -11,7 +11,10 @@ h1 = title t('.title_html') = f.input :email, placeholder: t('.placeholders.email') = f.input :support, as: :radio_buttons, collection: t('support_type'), label_method: :last, value_method: :first = f.input :age_category, as: :radio_buttons, collection: t('age_category'), label_method: :last, value_method: :first - = f.submit value: t('.submit'), class: 'btn btn-success' + .form-group + = f.submit value: t('.submit'), class: 'btn btn-success' + .form-group + = link_to t('.terms_and_conditions'),'#', data: { toggle: :modal, target: '#terms_and_conditions'}, class: 'small' javascript: var cities = new Bloodhound({ diff --git a/config/locales/de.yml b/config/locales/de.yml index a2e5c93..baeb856 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -15,6 +15,7 @@ de: form: title_html: Ja, ich will Cannabis in der Schweiz legalisieren submit: Unterstützung zusichern + terms_and_conditions: Mit dem Absenden ihrer Daten stimmen Sie den Nutzungsbedingungen zu. placeholders: first_name: Hans last_name: Muster