pg_rails 7.0.8.pre.alpha.51 → 7.0.8.pre.alpha.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/controllers/public/mensaje_contactos_controller.rb +2 -0
- data/pg_engine/app/views/public/mensaje_contactos/new.html.slim +21 -0
- data/pg_layout/app/views/devise/registrations/new.html.erb +0 -6
- data/pg_layout/app/views/devise/sessions/new.html.erb +0 -6
- data/pg_layout/app/views/layouts/pg_layout/container_logo.html.slim +10 -0
- data/pg_layout/app/views/layouts/pg_layout/devise.html.slim +3 -3
- data/pg_rails/lib/version.rb +1 -1
- metadata +3 -2
- data/pg_engine/app/views/public/mensaje_contactos/_form.html.slim +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 876fb2da0e2e5139b70ba574e13ea948c56033482c92735ddf35f6d3b6c2008f
|
4
|
+
data.tar.gz: e14f3345126ab9ad158aef8d2869d392e257d323175ae53d620b98a68c7c6d08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 295aae4c9c6c02b32f91d5da8c5089527efd9d64fbad58ed45471e048289ba90b3293cba4a83b7be0c5ad15cf55a0659de83105982734dddafba4f1b04307a31
|
7
|
+
data.tar.gz: 462cd7d0875ad74e1a9d866da48022ff730d250f306ab7953f87edc9acb2a147f759c677655650d06f1a81aa0ec9e89ca69ea96c9e22025345d435377ef03511
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/ # locals: (object: nil, asociable: false)
|
2
|
+
.text-center
|
3
|
+
#mensaje_contacto
|
4
|
+
h2 Ponete en contacto
|
5
|
+
.d-inline-block style="width: 30em; max-width: 100%"
|
6
|
+
div data-controller="pg_form"
|
7
|
+
= pg_form_for(@mensaje_contacto || object, asociable:) do |f|
|
8
|
+
= f.mensajes_de_error
|
9
|
+
|
10
|
+
= hidden_field_tag :asociable, true if asociable
|
11
|
+
= f.input :nombre, input_html: { style: 'max-width: 22em' }
|
12
|
+
= f.input :email, input_html: { style: 'max-width: 23em' }
|
13
|
+
= f.input :telefono, hint: '(Opcional)', input_html: { style: 'max-width: 15em' }
|
14
|
+
= f.input :mensaje, as: :text, input_html: { rows: 5 }
|
15
|
+
.mt-2
|
16
|
+
= f.button :submit, value: 'Enviar'
|
17
|
+
|
18
|
+
css:
|
19
|
+
form input {
|
20
|
+
margin: auto;
|
21
|
+
}
|
@@ -1,9 +1,3 @@
|
|
1
|
-
<% if @navbar.logo_xl_url.present? %>
|
2
|
-
<div class="mx-3 my-4 m-md-5">
|
3
|
-
<%= image_tag @navbar.logo_xl_url, class: 'img-fluid' %>
|
4
|
-
</div>
|
5
|
-
<% end %>
|
6
|
-
|
7
1
|
<h2><%= t(".sign_up") %></h2>
|
8
2
|
<div id="form-signup" data-controller="pg_form">
|
9
3
|
<%= pg_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
- content_for :content do
|
2
|
+
.container-fluid.pt-4
|
3
|
+
.text-center
|
4
|
+
- if @navbar.logo_xl_url.present?
|
5
|
+
.mb-4
|
6
|
+
= image_tag @navbar.logo_xl_url, class: 'img-fluid', style: 'max-height: 4em'
|
7
|
+
|
8
|
+
= content_for?(:container_logo_content) ? yield(:container_logo_content) : yield
|
9
|
+
|
10
|
+
= render template: 'layouts/pg_layout/base'
|
@@ -1,5 +1,5 @@
|
|
1
|
-
- content_for :
|
2
|
-
.
|
1
|
+
- content_for :container_logo_content do
|
2
|
+
.text-center
|
3
3
|
= yield
|
4
4
|
|
5
5
|
css:
|
@@ -8,4 +8,4 @@
|
|
8
8
|
margin: auto;
|
9
9
|
}
|
10
10
|
|
11
|
-
= render template: 'layouts/pg_layout/
|
11
|
+
= render template: 'layouts/pg_layout/container_logo'
|
data/pg_rails/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.8.pre.alpha.
|
4
|
+
version: 7.0.8.pre.alpha.52
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martín Rosso
|
@@ -909,8 +909,8 @@ files:
|
|
909
909
|
- pg_engine/app/views/pg_engine/base/edit.html.slim
|
910
910
|
- pg_engine/app/views/pg_engine/base/index.html.slim
|
911
911
|
- pg_engine/app/views/pg_engine/base/new.html.slim
|
912
|
-
- pg_engine/app/views/public/mensaje_contactos/_form.html.slim
|
913
912
|
- pg_engine/app/views/public/mensaje_contactos/_gracias.html.slim
|
913
|
+
- pg_engine/app/views/public/mensaje_contactos/new.html.slim
|
914
914
|
- pg_engine/config/initializers/action_mailer.rb
|
915
915
|
- pg_engine/config/initializers/active_admin.rb
|
916
916
|
- pg_engine/config/initializers/anycable.rb
|
@@ -1005,6 +1005,7 @@ files:
|
|
1005
1005
|
- pg_layout/app/views/kaminari/_paginator.html.slim
|
1006
1006
|
- pg_layout/app/views/kaminari/_prev_page.html.slim
|
1007
1007
|
- pg_layout/app/views/layouts/pg_layout/base.html.slim
|
1008
|
+
- pg_layout/app/views/layouts/pg_layout/container_logo.html.slim
|
1008
1009
|
- pg_layout/app/views/layouts/pg_layout/containerized.html.slim
|
1009
1010
|
- pg_layout/app/views/layouts/pg_layout/devise.html.slim
|
1010
1011
|
- pg_layout/app/views/pg_layout/_flash.html.slim
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/ # locals: (object: nil, asociable: false)
|
2
|
-
#mensaje_contacto.text-center
|
3
|
-
.d-inline-block style="width: 22em; max-width: 100%"
|
4
|
-
div data-controller="pg_form"
|
5
|
-
= pg_form_for(@mensaje_contacto || object, asociable:) do |f|
|
6
|
-
= f.mensajes_de_error
|
7
|
-
|
8
|
-
= hidden_field_tag :asociable, true if asociable
|
9
|
-
= f.input :nombre
|
10
|
-
= f.input :email
|
11
|
-
= f.input :telefono, hint: '(Opcional)'
|
12
|
-
= f.input :mensaje, as: :text
|
13
|
-
.mt-2
|
14
|
-
= f.button :submit, value: 'Enviar'
|