Network and first signature collection prototyping

This commit is contained in:
2017-12-17 11:21:09 +01:00
parent 58a576e011
commit f0b34f96ff
35 changed files with 2400 additions and 92 deletions
+1 -1
View File
@@ -52,5 +52,5 @@ Rails.application.configure do
access_key_id: ENV["S3_ACCESS_KEY"],
secret_access_key: ENV["S3_ACCESS_SECRET"]
}
}
}
end
+31 -14
View File
@@ -19,34 +19,38 @@ de:
numbers: Zahlen
statements: Statements
collection_concept: Wie macht man eine Volksinitiative?
network: Netzwerk
signature_collections: Unterschriftensammlung
lang: Sprache
are_you_sure: Bist du sicher?
edit: Bearbeiten
show: Anzeigen
destroy: Löschen
save: Speichern
description: Volksinitiative zur Legalisierung von Cannabis in der Schweiz.
counter:
supporters: "Unterstützer:"
amount_of_supporters: Zurzeit haben wir %{amount} Unterstützer.
amount_of_supporters: Zurzeit haben wir %{amount} Unterstützer.
input_error: Deine Eingaben konnte nicht gespeichert werden. Überprüfe deine Eingaben.
donation: Deine Spende
welcome_email:
subject: Besten Dank für deine Unterstützung!
support_type:
signer: Ich würde eine Volksinitiative für die <span class="text-success">Legalisierung von Cannabis</span> unterschreiben.
supporter: Ich würde eine Volksinitiative für die <span class="text-success">Legalisierung von Cannabis</span> unterschreiben und helfe aktiv Unterschriften in meiner Umgebung zu sammeln.
# activist: Ich unterschreibe eine Volksinitiative für die <span class="text-success">Legalisierung von Cannabis</span> und beteilige mich bei der Planung und Koordination einer Volksinitiative.
# nonvoting_supporter: Ich bin nicht stimmberechtigt, helfe aber aktiv Unterschriften in meiner Umgebung zu sammeln um <span class="text-success">Cannabis zu legalisierung</span>.
age_category:
underage: Ich bin jünger als 18 Jahre alt
young: Ich bin 18 bis 30 Jahre alt
middle: Ich bin 30 bis 64 Jahre alt
retired: Ich bin über 64 Jahre alt
publicity_states:
pending: Die Veröffentlichung wurde noch nicht genehmigt
approved: Das Statement wurde Veröffentlicht
@@ -56,7 +60,7 @@ de:
de: Deutsch
fr: Français
it: Italiano
supporters:
form:
form: Formular
@@ -76,15 +80,15 @@ de:
renew: Statement neu einreichen
delete: Statement löschen
create_publicity: Deine Meinung zählt, darum bitten wir dir hier die Möglichkeit öffentlich deine Meinung zur Cannabis-Initiative kundzutun. Gib ein Starkes Statement ab und zeig dein Gesicht! Meine Unterstützung öffentlich kundtun ...
create:
timeout: Ihre Eingabe war zu schnell.
new:
title: Hallo %{name}
edit: Meine Daten bearbeiten
my_data: Meine Daten
publicities:
form:
title: Meine Meinung zur Cannabis-Initiative veröffentlichen
@@ -92,7 +96,7 @@ de:
organisation_placeholder: Parteizugehörigkeit, Verband oder sonstige Organisationen
avatar: Lade ein Bild von dir Hoch
save: Zur Überprüfung einsenden
create:
success: Besten Dank die Daten werden überprüft.
update:
@@ -100,16 +104,21 @@ de:
pages:
show:
not_found: Die Seite konnte nicht gefunden werden.
not_found: Die Seite konnte nicht gefunden werden.
thanks:
title: Besten Dank für deine Unterstützung!
statements:
title: Statements von unseren Unterstützern
submit_your_own_statement: Veröffentliche dein eigenes Statement...
read_more: das ganze Statement lesen.
network:
signature_collections:
index:
new: Neue Sammlung erfasssen
title: Unterschriftensammlungen
search: Suche
routes:
initiative_text: initiativtext
arguments: argumentarium
@@ -120,6 +129,8 @@ de:
statementes: statements
collection_concept: Sammelkonzept
greendays: greensaturday
network: netzwerk
signature_collections: unterschriftensammlung
mongoid:
models:
@@ -146,4 +157,10 @@ de:
state: Status
organisation: Organisation
statement: Statement
avatar: Bild
avatar: Bild
network/signature_collection:
location_name: Ort
location_zip: Postleitzahl
location_address: Adresse
event_date_start: Startzeit
event_date_end: Endzeit
+4
View File
@@ -24,6 +24,8 @@ fr:
statements: Déclarations
collection_concept: Comment faire une initiative populaire? (en allemand)
my_account: Mon compte
network: Réseau
signature_collections: Collection des signatures
lang: Langue
are_you_sure: Tu es sûre?
@@ -117,6 +119,8 @@ fr:
statements: declarations
collection_concept: plan_de_collecte
greendays: greensaturday
network: reseau
signature_collections: collection_signature
mongoid:
models:
+5 -1
View File
@@ -21,7 +21,9 @@ it:
statements: Dichiarazioni
collection_concept: Come fare un iniziativa popolare? (in tedesco)
my_account: Il mio account
network: Reticolato
signature_collections: collezione di firme
counter:
supporters: "Sostenitore:"
amount_of_supporters: Al momento abbiamo %{amount} sostenitori.
@@ -121,6 +123,8 @@ it:
statements: dichiarazioni
collection_concept: sistema_di_raccolta
greendays: greensaturday
network: reticolato
signature_collections: collezione_firme
mongoid:
attributes:
+9
View File
@@ -62,16 +62,25 @@ SimpleNavigation::Configuration.run do |navigation|
unless supporter_signed_in?
primary.item :home, I18n.t('.shared.topnavigation.support'), "/#{I18n.locale}"
end
primary.item :initiative, I18n.t('.shared.topnavigation.initiative'), initiative_text_path do | initiative |
initiative.item :arguments, I18n.t('.shared.topnavigation.arguments'), arguments_path
initiative.item :faq, I18n.t('.shared.topnavigation.faq'), faq_path
initiative.item :numbers, I18n.t('.shared.topnavigation.numbers'), numbers_path
initiative.item :collection_concept, I18n.t('.shared.topnavigation.collection_concept'), collection_concept_path
end
primary.item :statements, I18n.t('.shared.topnavigation.statements'), statements_path do |statements|
statements.item :new_statement, I18n.t('.supporters.publicity.renew'), new_publicity_path
end
primary.item :donation, I18n.t('donation'), donation_path
primary.item :network, I18n.t('.shared.topnavigation.network'), network_path do | network |
network.item :signature_collections, I18n.t('.shared.topnavigation.signature_collections'), network_signature_collections_path
end
primary.item :blog, 'Blog', 'http://blog.cannabis-initiative.ch/', link_html: { target: '_blank'}
if supporter_signed_in?
primary.item :home, I18n.t('.shared.topnavigation.my_account'), "/#{I18n.locale}" do |my_account|
+6
View File
@@ -1,4 +1,5 @@
Rails.application.routes.draw do
devise_for :supporters
root to: 'supporters#new'
@@ -11,6 +12,11 @@ Rails.application.routes.draw do
end
localized do
get 'network', to: 'pages#show', as: :network, page: 'network'
namespace :network do
resources :signature_collections
end
resources :greendays
get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text'
get '/arguments', to: 'pages#show', as: :arguments, page: 'arguments'