decidim-admin 0.0.6 → 0.0.7

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

Potentially problematic release.


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

Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/decidim/admin/_decidim.scss +9 -0
  3. data/app/assets/stylesheets/decidim/admin/_variables.scss +7 -0
  4. data/app/assets/stylesheets/decidim/admin/application.scss +2 -19
  5. data/app/assets/stylesheets/decidim/admin/extra/_categories.scss +5 -0
  6. data/app/assets/stylesheets/decidim/admin/{_email_preview.scss → extra/_email_preview.scss} +0 -0
  7. data/app/assets/stylesheets/decidim/admin/{_login.scss → extra/_login.scss} +0 -0
  8. data/app/assets/stylesheets/decidim/admin/extra/_select_multiple.scss +3 -0
  9. data/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +5 -0
  10. data/app/assets/stylesheets/decidim/admin/modules/_action-icon.scss +13 -0
  11. data/app/assets/stylesheets/decidim/admin/modules/_buttons.scss +44 -0
  12. data/app/assets/stylesheets/decidim/admin/modules/_callouts.scss +32 -0
  13. data/app/assets/stylesheets/decidim/admin/modules/_cards.scss +36 -0
  14. data/app/assets/stylesheets/decidim/admin/modules/_char-counter.scss +20 -0
  15. data/app/assets/stylesheets/decidim/admin/modules/_component-counter.scss +17 -0
  16. data/app/assets/stylesheets/decidim/admin/modules/_forms.scss +80 -0
  17. data/app/assets/stylesheets/decidim/admin/modules/_icons.scss +65 -0
  18. data/app/assets/stylesheets/decidim/admin/modules/_layout.scss +67 -0
  19. data/app/assets/stylesheets/decidim/admin/modules/_main-nav.scss +41 -0
  20. data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +24 -0
  21. data/app/assets/stylesheets/decidim/admin/modules/_process-header.scss +11 -0
  22. data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +95 -0
  23. data/app/assets/stylesheets/decidim/admin/modules/_table-list.scss +78 -0
  24. data/app/assets/stylesheets/decidim/admin/modules/_tabs.scss +49 -0
  25. data/app/assets/stylesheets/decidim/admin/modules/_title-bar.scss +32 -0
  26. data/app/assets/stylesheets/decidim/admin/modules/_typography.scss +15 -0
  27. data/app/assets/stylesheets/decidim/admin/modules/_user-login.scss +23 -0
  28. data/app/assets/stylesheets/decidim/admin/utils/_fontface.scss +27 -0
  29. data/app/assets/stylesheets/decidim/admin/utils/_helpers.scss +25 -0
  30. data/app/assets/stylesheets/decidim/admin/utils/_keyframes.scss +21 -0
  31. data/app/assets/stylesheets/decidim/admin/utils/_mixins.scss +20 -0
  32. data/app/assets/stylesheets/decidim/admin/utils/_settings.scss +590 -0
  33. data/app/assets/stylesheets/decidim/admin/utils/_toggle-expand.scss +8 -0
  34. data/app/commands/decidim/admin/create_attachment.rb +13 -4
  35. data/app/commands/decidim/admin/update_participatory_process.rb +3 -3
  36. data/app/commands/decidim/admin/update_participatory_process_admin.rb +40 -0
  37. data/app/controllers/decidim/admin/application_controller.rb +7 -1
  38. data/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
  39. data/app/controllers/decidim/admin/organization_controller.rb +2 -0
  40. data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +29 -0
  41. data/app/controllers/decidim/admin/participatory_processes_controller.rb +2 -2
  42. data/app/controllers/decidim/admin/scopes_controller.rb +2 -0
  43. data/app/controllers/decidim/admin/static_pages_controller.rb +2 -0
  44. data/app/controllers/decidim/admin/user_groups_controller.rb +3 -1
  45. data/app/controllers/decidim/admin/users_controller.rb +1 -1
  46. data/app/helpers/decidim/admin/application_helper.rb +8 -0
  47. data/app/helpers/decidim/admin/icon_link_helper.rb +30 -0
  48. data/app/jobs/decidim/admin/newsletter_job.rb +1 -1
  49. data/app/queries/decidim/admin/process_admin_roles_for_process.rb +1 -1
  50. data/app/views/decidim/admin/attachments/_form.html.erb +29 -8
  51. data/app/views/decidim/admin/attachments/edit.html.erb +3 -5
  52. data/app/views/decidim/admin/attachments/index.html.erb +45 -35
  53. data/app/views/decidim/admin/attachments/new.html.erb +3 -5
  54. data/app/views/decidim/admin/categories/_form.html.erb +18 -10
  55. data/app/views/decidim/admin/categories/edit.html.erb +3 -5
  56. data/app/views/decidim/admin/categories/index.html.erb +57 -42
  57. data/app/views/decidim/admin/categories/new.html.erb +3 -5
  58. data/app/views/decidim/admin/dashboard/show.html.erb +6 -3
  59. data/app/views/decidim/admin/features/_feature.html.erb +11 -11
  60. data/app/views/decidim/admin/features/_form.html.erb +56 -48
  61. data/app/views/decidim/admin/features/edit.html.erb +3 -5
  62. data/app/views/decidim/admin/features/index.html.erb +21 -19
  63. data/app/views/decidim/admin/features/new.html.erb +3 -4
  64. data/app/views/decidim/admin/moderations/index.html.erb +71 -61
  65. data/app/views/decidim/admin/newsletters/_form.html.erb +7 -1
  66. data/app/views/decidim/admin/newsletters/edit.html.erb +10 -8
  67. data/app/views/decidim/admin/newsletters/index.html.erb +50 -43
  68. data/app/views/decidim/admin/newsletters/new.html.erb +10 -8
  69. data/app/views/decidim/admin/newsletters/show.html.erb +20 -12
  70. data/app/views/decidim/admin/organization/_form.html.erb +98 -62
  71. data/app/views/decidim/admin/organization/edit.html.erb +11 -8
  72. data/app/views/decidim/admin/participatory_process_groups/_form.html.erb +4 -4
  73. data/app/views/decidim/admin/participatory_process_groups/edit.html.erb +15 -9
  74. data/app/views/decidim/admin/participatory_process_groups/index.html.erb +37 -35
  75. data/app/views/decidim/admin/participatory_process_groups/new.html.erb +10 -8
  76. data/app/views/decidim/admin/participatory_process_steps/_form.html.erb +21 -11
  77. data/app/views/decidim/admin/participatory_process_steps/edit.html.erb +3 -4
  78. data/app/views/decidim/admin/participatory_process_steps/index.html.erb +60 -51
  79. data/app/views/decidim/admin/participatory_process_steps/new.html.erb +4 -5
  80. data/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +23 -0
  81. data/app/views/decidim/admin/participatory_process_user_roles/edit.html.erb +7 -0
  82. data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +46 -34
  83. data/app/views/decidim/admin/participatory_process_user_roles/new.html.erb +7 -0
  84. data/app/views/decidim/admin/participatory_processes/_form.html.erb +103 -72
  85. data/app/views/decidim/admin/participatory_processes/edit.html.erb +15 -17
  86. data/app/views/decidim/admin/participatory_processes/index.html.erb +52 -43
  87. data/app/views/decidim/admin/participatory_processes/new.html.erb +6 -5
  88. data/app/views/decidim/admin/scopes/edit.html.erb +9 -7
  89. data/app/views/decidim/admin/scopes/index.html.erb +37 -36
  90. data/app/views/decidim/admin/scopes/new.html.erb +9 -6
  91. data/app/views/decidim/admin/static_pages/_form.html.erb +3 -3
  92. data/app/views/decidim/admin/static_pages/edit.html.erb +10 -8
  93. data/app/views/decidim/admin/static_pages/index.html.erb +38 -37
  94. data/app/views/decidim/admin/static_pages/new.html.erb +10 -8
  95. data/app/views/decidim/admin/user_groups/index.html.erb +37 -31
  96. data/app/views/decidim/admin/users/_form.html.erb +5 -4
  97. data/app/views/decidim/admin/users/index.html.erb +57 -52
  98. data/app/views/decidim/admin/users/new.html.erb +10 -7
  99. data/app/views/layouts/decidim/admin/_application.html.erb +23 -36
  100. data/app/views/layouts/decidim/admin/_callouts_full.html.erb +10 -0
  101. data/app/views/layouts/decidim/admin/_language_chooser.html.erb +9 -9
  102. data/app/views/layouts/decidim/admin/_main_nav.html.erb +11 -0
  103. data/app/views/layouts/decidim/admin/_template_bottom.html.erb +2 -0
  104. data/app/views/layouts/decidim/admin/_template_top.html.erb +3 -0
  105. data/app/views/layouts/decidim/admin/_title_bar.html.erb +20 -0
  106. data/app/views/layouts/decidim/admin/newsletters.erb +14 -0
  107. data/app/views/layouts/decidim/admin/pages.html.erb +14 -0
  108. data/app/views/layouts/decidim/admin/participatory_process.html.erb +55 -53
  109. data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +14 -0
  110. data/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -0
  111. data/app/views/layouts/decidim/admin/settings.html.erb +19 -0
  112. data/app/views/layouts/decidim/admin/users.html.erb +21 -0
  113. data/config/i18n-tasks.yml +1 -0
  114. data/config/locales/ca.yml +77 -22
  115. data/config/locales/en.yml +75 -20
  116. data/config/locales/es.yml +77 -22
  117. data/config/locales/eu.yml +191 -16
  118. data/config/locales/fi.yml +0 -29
  119. data/config/routes.rb +1 -1
  120. data/lib/decidim/admin/test/manage_attachments_examples.rb +11 -11
  121. metadata +54 -18
  122. data/app/assets/stylesheets/decidim/admin/_actions.scss +0 -8
  123. data/app/assets/stylesheets/decidim/admin/_forms.scss +0 -10
  124. data/app/assets/stylesheets/decidim/admin/_foundation_and_overrides.scss +0 -53
  125. data/app/assets/stylesheets/decidim/admin/_icons.scss +0 -9
  126. data/app/assets/stylesheets/decidim/admin/_layout.scss +0 -27
  127. data/app/assets/stylesheets/decidim/admin/_settings.scss +0 -566
  128. data/app/assets/stylesheets/decidim/admin/_tables.scss +0 -21
  129. data/app/views/layouts/decidim/admin/_login_items.html.erb +0 -8
  130. data/app/views/layouts/decidim/admin/_sidebar.html.erb +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 453c1956a164da5d0e33cb0bb83bf80b5e98af5b
4
- data.tar.gz: 392bb84e1a55a2ff9091b7d31787df52c31b867c
3
+ metadata.gz: d5dcba8b9274da7bdc3fe8d9700584b9351f009b
4
+ data.tar.gz: 87a3f6dddf33cce35d81185d5e06c789f42836a3
5
5
  SHA512:
6
- metadata.gz: b4de3b16e2c4cdb283bbd914af8302b1a1802b2a6823a9b3e741ed2feb2dca233d44d6dee6a59c84bb68ffc7f9d35ff316f450e5bc01409826bc27d5f0795ba4
7
- data.tar.gz: d8c631dc2ae0a6138e5b40e11ce79b32eae1daf4a5ad1d2df456dac2ab7410db255e930e5cb3901e1ed256c442da3c8b9b55953f7f03038f7b2b0b03d5761994
6
+ metadata.gz: 261ba95b4b6d52d7df7bac1dd4a8bd6cd202a686886726b91a5fb4c699dfcd3be0aba7b4ee5aee938322c43b6464370105cbbf0c204b789cd339dec5e214aec1
7
+ data.tar.gz: 113d19970d41766a6edfbb1efee5f2feb05cb2db0ba22c105a38f513bbabe89a15d3d815f8364688f156ea33b3b8308bad30e430a0f529eb77f661584e959e88
@@ -0,0 +1,9 @@
1
+ //@import compass
2
+ @import "variables";
3
+ @import "utils/*";
4
+
5
+ @import "foundation";
6
+ @include foundation-everything();
7
+ @import "decidim/editor";
8
+
9
+ @import "modules/modules";
@@ -0,0 +1,7 @@
1
+ // Variables
2
+
3
+ $brand: #9675ce !default;
4
+
5
+ $twitter: #55acee !default;
6
+ $facebook: #3b5998 !default;
7
+ $google: #dd4b39 !default;
@@ -1,19 +1,2 @@
1
- @import "foundation_and_overrides";
2
- @import "layout";
3
- @import "login";
4
- @import "sidebar";
5
- @import "tables";
6
- @import "actions";
7
- @import "forms";
8
- @import "icons";
9
- @import "email_preview";
10
-
11
- @import "decidim/editor";
12
- @import "decidim/utils/fontface";
13
-
14
- @import "foundation";
15
- @include foundation-everything;
16
-
17
- body {
18
- font-family: 'Source Sans Pro', sans-serif;
19
- }
1
+ @import "decidim";
2
+ @import "extra/*";
@@ -0,0 +1,5 @@
1
+ .extra__table-list__subcategory{
2
+ td:first-child{
3
+ padding-left: 20px
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+ select[multiple] {
2
+ min-height: 100px;
3
+ }
@@ -0,0 +1,5 @@
1
+ .title-bar {
2
+ a.logo {
3
+ color: #fff;
4
+ }
5
+ }
@@ -0,0 +1,13 @@
1
+ .action-icon:not(:last-child){
2
+ margin-right: 1rem;
3
+ }
4
+
5
+ .action-icon.has-tip,
6
+ .simple-has-tip.has-tip{
7
+ border-bottom: 0;
8
+ cursor: pointer;
9
+ }
10
+
11
+ .action-icon.action-icon--remove{
12
+ color: $alert-color;
13
+ }
@@ -0,0 +1,44 @@
1
+ /* Foundation button overrides*/
2
+
3
+ .button{
4
+ &.small{
5
+ padding-top: .5rem;
6
+ padding-bottom: .5rem;
7
+ }
8
+ &.tiny{
9
+ padding-top: .25rem;
10
+ padding-bottom: .25rem;
11
+ }
12
+ }
13
+
14
+ .button.muted{
15
+ background-color: $medium-gray;
16
+ &:hover{
17
+ background-color: darken($medium-gray, 10);
18
+ }
19
+ }
20
+
21
+ .button--title{
22
+ margin-bottom: 0;
23
+ @include breakpoint(mediumlarge){
24
+ float: right;
25
+ }
26
+ }
27
+
28
+
29
+ .button--double{
30
+ .button:not(:last-child){
31
+ margin-right: 1rem;
32
+ }
33
+ @include breakpoint(mediumlarge){
34
+ display: flex;
35
+ align-items: center;
36
+ .button{
37
+ margin-bottom: 0;
38
+ }
39
+ }
40
+ }
41
+
42
+ .button--simple{
43
+ margin-bottom: 0;
44
+ }
@@ -0,0 +1,32 @@
1
+ .callout.callout--full{
2
+ border: 0;
3
+ margin-bottom: 0;
4
+ background-color: $primary-color;
5
+ font-weight: 600;
6
+ color: $white;
7
+ &.warning{
8
+ background-color: $warning-color;
9
+ }
10
+ &.success{
11
+ background-color: $success-color;
12
+ }
13
+ &.alert{
14
+ background-color: $alert-color;
15
+ }
16
+
17
+ p:last-of-type{
18
+ margin-bottom: 0;
19
+ }
20
+
21
+ .close-button{
22
+ color: white;
23
+ }
24
+ }
25
+
26
+
27
+ .has-process-title .callout-wrapper{
28
+ @include breakpoint(large){
29
+ padding-top: $process-title-height;
30
+ margin-bottom: -$process-title-height;
31
+ }
32
+ }
@@ -0,0 +1,36 @@
1
+ .card-title{
2
+ @include smallcaps;
3
+ font-size: 1rem;
4
+ @include clearfix;
5
+ }
6
+
7
+ .card-footer{
8
+ padding: $card-padding;
9
+ border-top: 1px solid rgba(black, .1);
10
+ .button--remove{
11
+ margin-left: auto;
12
+ }
13
+ }
14
+
15
+ .card__filter{
16
+ margin-bottom: 0;
17
+ @include breakpoint(mediumlarge){
18
+ float: right;
19
+ }
20
+ }
21
+
22
+ .card__icon-open{
23
+ display: none;
24
+ }
25
+ .card--collapsed{
26
+ .card-section,
27
+ .card-footer{
28
+ display: none;
29
+ }
30
+ .card__icon-close{
31
+ display: none;
32
+ }
33
+ .card__icon-open{
34
+ display: block;
35
+ }
36
+ }
@@ -0,0 +1,20 @@
1
+ .textarea-char-counter{
2
+ position: relative;
3
+ textarea{
4
+ padding-bottom: 2.2rem;
5
+ }
6
+ }
7
+
8
+ .char-counter{
9
+ position: absolute;
10
+ color: $muted;
11
+ background-color: $white;
12
+ padding: .3rem .5rem;
13
+ left: .5rem;
14
+ right: .5rem;
15
+ bottom: 1px;
16
+ text-align: right;
17
+ }
18
+ .char-counter--excess{
19
+ color: $alert-color;
20
+ }
@@ -0,0 +1,17 @@
1
+ .component-counter{
2
+ background-color: $medium-gray;
3
+ color: $white;
4
+ padding: .1em .5em;
5
+ min-width: 2em;
6
+ text-align: center;
7
+ border-radius: 10px;
8
+ line-height: 1;
9
+ font-size: .7rem;
10
+ float: right;
11
+ margin-top: .4em;
12
+ }
13
+
14
+ .component-counter--off{
15
+ background-color: $light-gray;
16
+ color: $body-font-color;
17
+ }
@@ -0,0 +1,80 @@
1
+ $input-margin: 1.5rem;
2
+
3
+ button,
4
+ input,
5
+ textarea{
6
+ font-family: inherit;
7
+ }
8
+
9
+ .form{
10
+ input[type="text"],
11
+ input[type="email"],
12
+ input[type="date"],
13
+ input[type="tel"],
14
+ input[type="password"],
15
+ select{
16
+ height: 3rem;
17
+ }
18
+ input,
19
+ select,
20
+ textarea,
21
+ .check-radio,
22
+ .input-field{
23
+ margin-bottom: $input-margin;
24
+ }
25
+ .check-radio-group{
26
+ margin-bottom: 1rem;
27
+ .check-radio{
28
+ margin-bottom: .5rem;
29
+ }
30
+ }
31
+
32
+ label{
33
+ font-weight: 600;
34
+ }
35
+ }
36
+
37
+ .legend{
38
+ @include smallcaps;
39
+ margin-bottom: 1rem;
40
+ }
41
+
42
+ .form-group{
43
+ background-color: $lighter-gray;
44
+ padding: 1.5rem 1rem .5rem;
45
+ margin-bottom: 1.5rem;
46
+ }
47
+
48
+
49
+ .form-submit .button{
50
+ margin-bottom: 0;
51
+ }
52
+
53
+ .form-general-submit{
54
+ margin-top: 3rem;
55
+ justify-content: center;
56
+ }
57
+
58
+ .check-radio{
59
+ label{
60
+ font-weight: normal;
61
+ display: inline-flex;
62
+ align-items: center;
63
+ }
64
+ input{
65
+ margin-bottom: 0;
66
+ }
67
+ }
68
+
69
+ .form-error{
70
+ margin-top: -$input-margin;
71
+ margin-bottom: $input-margin;
72
+ }
73
+
74
+ .custom-error{
75
+ @extend .form-error;
76
+ }
77
+
78
+ .is-custom-error-visible{
79
+ display: block;
80
+ }
@@ -0,0 +1,65 @@
1
+ .icon{
2
+ width: 14px;
3
+ height: 14px;
4
+ fill: currentColor;
5
+ }
6
+
7
+ .icon--outline{
8
+ fill: transparent;
9
+ stroke: currentColor;
10
+ stroke-width: .5px;
11
+ }
12
+
13
+ .icon--small{
14
+ width: 10px;
15
+ height: 10px;
16
+ }
17
+
18
+ .icon--action{
19
+ fill: rgba(black, .2);
20
+ }
21
+
22
+ .icon--action:hover,
23
+ a:hover .icon--action{
24
+ fill: currentColor;
25
+ }
26
+
27
+ .icon--after{
28
+ margin-left: .3rem;
29
+ }
30
+ .icon--before{
31
+ margin-right: .3rem;
32
+ }
33
+
34
+ .icon--share{
35
+ margin-bottom: -2px;
36
+ width: 12px;
37
+ height: 12px;
38
+ }
39
+
40
+ .icon-highlight{
41
+ color: $warning-color;
42
+ margin-right: .3rem;
43
+ }
44
+
45
+ .icon-unpublished{
46
+ color: $alert-color;
47
+ }
48
+
49
+ .icon-active{
50
+ background-color: $success-color;
51
+ display: inline-block;
52
+ width: 12px;
53
+ height: 12px;
54
+ border-radius: 50%;
55
+ margin-right: .5rem;
56
+ vertical-align: middle;
57
+ }
58
+
59
+ .icon--component{
60
+ width: 1.5em;
61
+ height: 1.5em;
62
+ vertical-align: -.45em;
63
+ margin-right: .2em;
64
+ color: $medium-gray;
65
+ }
@@ -0,0 +1,67 @@
1
+ html{
2
+ height: 100%;
3
+ }
4
+
5
+ body{
6
+ min-height: 100%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ }
10
+
11
+ .main{
12
+ flex-grow: 1;
13
+ display: flex;
14
+ flex-direction: column;
15
+ & > .row{
16
+ width: 100%;
17
+ flex-grow: 1;
18
+ @include breakpoint(medium){
19
+ display: flex;
20
+ }
21
+ }
22
+ }
23
+
24
+ .layout-wrapper{
25
+ display: flex;
26
+ flex-grow: 1;
27
+ @include clearfix;
28
+ position: relative;
29
+ }
30
+
31
+ .layout-nav{
32
+ max-width: 340px;
33
+ flex-shrink: 0;
34
+ @include breakpoint(mediumlarge down){
35
+ position: absolute;
36
+ top: 0;
37
+ bottom: 0;
38
+ transform: translateX(-100%);
39
+ transition: transform .3s;
40
+ z-index: 1;
41
+ }
42
+ @include breakpoint(small down){
43
+ max-width: 100%;
44
+ width: 100%;
45
+ transform: translateX(-100%);
46
+ .secondary-nav{
47
+ width: calc(100% - 120px);
48
+ }
49
+ }
50
+ &.is-nav-open{
51
+ transform: translateX(0);
52
+ }
53
+ }
54
+
55
+ .layout-content{
56
+ flex-grow: 1;
57
+ max-width: 100%;
58
+ }
59
+
60
+
61
+ .container{
62
+ padding: 1rem;
63
+ max-width: 1200px;
64
+ @include breakpoint(mediumlarge){
65
+ padding: 2rem;
66
+ }
67
+ }