decidim-system 0.0.1.alpha4 → 0.0.1.alpha5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-system might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a7d6512aec7182ec67d33dbf7f2ae782c289c63
4
- data.tar.gz: 20b3cc4b061c75e80ddd8548ac66295d9bd71baa
3
+ metadata.gz: c1150cb0af77da1532d593c57ca62d51f42736e9
4
+ data.tar.gz: 4ecd4b9cf2e71eb769800582be97b83898f57e54
5
5
  SHA512:
6
- metadata.gz: 9829d4ef5c00baad81a537d8e470428d1e748657ff0eada6951c49b3c758ba47495eb883dd23aeef3e1f27fceac71462c503e07e1bed61ff5323fef4081f589d
7
- data.tar.gz: f036193fa708ae5e215d884bf6a0b4e0ece8e95c3f9c18199cb6dfe01a7893f6324d42885e874625ec4d9e00b51a741771aa49979a825b56b209792f85491096
6
+ metadata.gz: ed581c84f85587f2b0a2794c013998f13b33f0edf5cc89cadd486b21158b827059b472b3cf147b911a5f2717155225b6a8f7677df8294396e655d651a99b0778
7
+ data.tar.gz: 679148ecadea2ebbbbcdf713af87bb036e45556a756f476747a540ca83d651277b3d554125eecfdc80d4101f83969e9a5868083b888b2b47ff1f998a69e3f372
data/Rakefile CHANGED
@@ -1,9 +1,4 @@
1
1
  # frozen_string_literal: true
2
- begin
3
- require "bundler/setup"
4
- rescue LoadError
5
- puts "You must `gem install bundler` and `bundle install` to run rake tasks"
6
- end
7
2
 
8
3
  require "decidim/common_rake"
9
4
  require "rdoc/task"
@@ -11,11 +11,12 @@
11
11
  // about supported directives.
12
12
  //
13
13
  //= require jquery
14
- //= require jquery.turbolinks
15
14
  //= require jquery_ujs
16
15
  //= require foundation
16
+ //= require turbolinks
17
17
  //= require_self
18
18
 
19
- $(function(){ $(document).foundation(); });
19
+ $(document).on("turbolinks:load", function() {
20
+ $(document).foundation();
21
+ });
20
22
 
21
- //= require turbolinks
@@ -46,6 +46,7 @@ module Decidim
46
46
  def invite_admin(organization)
47
47
  Decidim::User.invite!(
48
48
  {
49
+ name: form.organization_admin_name,
49
50
  email: form.organization_admin_email,
50
51
  organization: organization,
51
52
  roles: ["admin"]
@@ -11,8 +11,9 @@ module Decidim
11
11
  mimic :organization
12
12
 
13
13
  attribute :organization_admin_email, String
14
+ attribute :organization_admin_name, String
14
15
 
15
- validates :organization_admin_email, presence: true
16
+ validates :organization_admin_email, :organization_admin_name, presence: true
16
17
 
17
18
  translatable_attribute :description, String
18
19
  end
@@ -15,6 +15,10 @@
15
15
  <%= f.translated :text_area, :description %>
16
16
  </div>
17
17
 
18
+ <div class="field">
19
+ <%= f.text_field :organization_admin_name %>
20
+ </div>
21
+
18
22
  <div class="field">
19
23
  <%= f.email_field :organization_admin_email %>
20
24
  </div>
@@ -0,0 +1,60 @@
1
+ ---
2
+ ca:
3
+ decidim:
4
+ system:
5
+ actions:
6
+ confirm_destroy: Segur que ho vols eliminar?
7
+ destroy: Eliminar
8
+ edit: Editar
9
+ new: Nou %{name}
10
+ save: Desar
11
+ title: Accions
12
+ admins:
13
+ create:
14
+ error: S'ha produït un error en crear un nou administrador.
15
+ success: Administrador creat correctament
16
+ destroy:
17
+ success: Administrador eliminat correctament.
18
+ edit:
19
+ title: Edita administrador
20
+ update: Actualitzar administrador
21
+ index:
22
+ title: Administradors
23
+ new:
24
+ create: Crear administrador
25
+ title: Nou administrador
26
+ update:
27
+ error: S'ha produït un error en actualitzar aquest administrador..
28
+ success: Administrador actualitzat correctament
29
+ menu:
30
+ admins: Administradors
31
+ dashboard: Tauler de control
32
+ organizations: Organitzacions
33
+ models:
34
+ admin:
35
+ fields:
36
+ created_at: Data de creació
37
+ email: Correu electrònic
38
+ name: Administrador
39
+ validations:
40
+ email_uniqueness: Ja existeix un altre administrador amb aquest correu electrònic.
41
+ organization:
42
+ actions:
43
+ save_and_invite: Crear organització i convidar a administrador
44
+ fields:
45
+ created_at: Data de creació
46
+ name: Nom
47
+ name: Organització
48
+ organizations:
49
+ create:
50
+ error: S'ha produït un error en crear una nova organització.
51
+ success: Organització creada correctament.
52
+ index:
53
+ title: Organitzacions
54
+ new:
55
+ title: Nova organització
56
+ update:
57
+ error: S'ha produït un error en actualitzar aquesta organització.
58
+ success: Organització actualitzada correctament.
59
+ titles:
60
+ dashboard: Tauler de control
@@ -0,0 +1,60 @@
1
+ ---
2
+ es:
3
+ decidim:
4
+ system:
5
+ actions:
6
+ confirm_destroy: "¿Seguro que lo quieres eliminar?"
7
+ destroy: Eliminar
8
+ edit: Editar
9
+ new: Nuevo %{name}
10
+ save: Guardar
11
+ title: Acciones
12
+ admins:
13
+ create:
14
+ error: Se ha producido un error al crear un nuevo administrador.
15
+ success: Administrador creado correctamente
16
+ destroy:
17
+ success: Administrador eliminado correctamente.
18
+ edit:
19
+ title: Editar administrador
20
+ update: Actualizar administrador
21
+ index:
22
+ title: Administradores
23
+ new:
24
+ create: Crear administrador
25
+ title: Nuevo administrador
26
+ update:
27
+ error: Se ha producido un error al actualizar este administrador ..
28
+ success: Administrador actualizado correctamente
29
+ menu:
30
+ admins: Administradores
31
+ dashboard: Panel de control
32
+ organizations: Organizaciones
33
+ models:
34
+ admin:
35
+ fields:
36
+ created_at: Fecha de creación
37
+ email: Correo electrónico
38
+ name: Administrador
39
+ validations:
40
+ email_uniqueness: Ya existe otro administrador con este correo electrónico.
41
+ organization:
42
+ actions:
43
+ save_and_invite: Crear organización e invitar a administrador
44
+ fields:
45
+ created_at: Fecha de creación
46
+ name: Nombre
47
+ name: Organización
48
+ organizations:
49
+ create:
50
+ error: Se ha producido un error al crear una nueva organización.
51
+ success: Organización creada correctamente.
52
+ index:
53
+ title: Organizaciones
54
+ new:
55
+ title: Nueva organización
56
+ update:
57
+ error: Se ha producido un error al actualizar esta organización.
58
+ success: Organización actualizada correctamente.
59
+ titles:
60
+ dashboard: Panel de control
@@ -8,7 +8,6 @@ require "decidim/core"
8
8
  require "jquery-rails"
9
9
  require "sass-rails"
10
10
  require "turbolinks"
11
- require "jquery-turbolinks"
12
11
  require "foundation-rails"
13
12
  require "foundation_rails_helper"
14
13
  require "jbuilder"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha4
4
+ version: 0.0.1.alpha5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-07 00:00:00.000000000 Z
13
+ date: 2016-10-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.1.alpha4
21
+ version: 0.0.1.alpha5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.0.1.alpha4
28
+ version: 0.0.1.alpha5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rails
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -152,20 +152,6 @@ dependencies:
152
152
  - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: 5.0.0
155
- - !ruby/object:Gem::Dependency
156
- name: jquery-turbolinks
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - "~>"
160
- - !ruby/object:Gem::Version
161
- version: 2.1.0
162
- type: :runtime
163
- prerelease: false
164
- version_requirements: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - "~>"
167
- - !ruby/object:Gem::Version
168
- version: 2.1.0
169
155
  - !ruby/object:Gem::Dependency
170
156
  name: jbuilder
171
157
  requirement: !ruby/object:Gem::Requirement
@@ -212,16 +198,16 @@ dependencies:
212
198
  name: decidim-dev
213
199
  requirement: !ruby/object:Gem::Requirement
214
200
  requirements:
215
- - - ">="
201
+ - - '='
216
202
  - !ruby/object:Gem::Version
217
- version: '0'
203
+ version: 0.0.1.alpha5
218
204
  type: :development
219
205
  prerelease: false
220
206
  version_requirements: !ruby/object:Gem::Requirement
221
207
  requirements:
222
- - - ">="
208
+ - - '='
223
209
  - !ruby/object:Gem::Version
224
- version: '0'
210
+ version: 0.0.1.alpha5
225
211
  description: System administration to create new organization in an installation.
226
212
  email:
227
213
  - josepjaume@gmail.com
@@ -283,7 +269,9 @@ files:
283
269
  - app/views/layouts/decidim/system/application.html.erb
284
270
  - app/views/layouts/decidim/system/login.html.erb
285
271
  - config/i18n-tasks.yml
272
+ - config/locales/ca.yml
286
273
  - config/locales/en.yml
274
+ - config/locales/es.yml
287
275
  - config/routes.rb
288
276
  - db/migrate/20160919105637_devise_create_decidim_admins.rb
289
277
  - db/seeds.rb