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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12e2f8570100688111978d151d42a814178f2382d18b373455535f7b5d625216
4
- data.tar.gz: e867b8911a1a67781515d30efbf3facf6ad31cb27c296444327016c3ad2fdbca
3
+ metadata.gz: 876fb2da0e2e5139b70ba574e13ea948c56033482c92735ddf35f6d3b6c2008f
4
+ data.tar.gz: e14f3345126ab9ad158aef8d2869d392e257d323175ae53d620b98a68c7c6d08
5
5
  SHA512:
6
- metadata.gz: e7bc0a0f4e182d2f0fc451278e779acb22c31de3e7939de6d9feeb5047590b972586a70c8f03823b648c1e298bfa9ca7cc9609748175f8de941bc03658e42476
7
- data.tar.gz: e5b2f79ca65227fdf85761af0a96629405c0904c6f0027b3f16e001648470c375920c8b5eb2d550ae0b697e4784b95f791ec4d073d4d22ebb37f6d8ea73e9dd9
6
+ metadata.gz: 295aae4c9c6c02b32f91d5da8c5089527efd9d64fbad58ed45471e048289ba90b3293cba4a83b7be0c5ad15cf55a0659de83105982734dddafba4f1b04307a31
7
+ data.tar.gz: 462cd7d0875ad74e1a9d866da48022ff730d250f306ab7953f87edc9acb2a147f759c677655650d06f1a81aa0ec9e89ca69ea96c9e22025345d435377ef03511
@@ -12,6 +12,8 @@ module Public
12
12
 
13
13
  before_action :set_instancia_modelo, only: %i[new create]
14
14
 
15
+ layout 'pg_layout/container_logo'
16
+
15
17
  def create
16
18
  if @mensaje_contacto.save
17
19
  render turbo_stream: turbo_stream.update('mensaje_contacto', partial: 'gracias')
@@ -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| %>
@@ -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_in") %></h2>
8
2
 
9
3
  <%= render partial: 'pg_layout/flash_container' %>
@@ -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 :content do
2
- .container.text-center.pt-4
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/base'
11
+ = render template: 'layouts/pg_layout/container_logo'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.51'
4
+ VERSION = '7.0.8-alpha.52'
5
5
  end
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.51
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'