Sha256: 9db5fc462cc430aa7ea051512975cf12a01f0e31c857ce285b166fe68d3c3d75

Contents?: true

Size: 1.76 KB

Versions: 10

Compression:

Stored size: 1.76 KB

Contents

.view.full-page-intro{ style: "background-image: url('#{block.background.url}'); background-repeat: no-repeat; background-size: cover;" }
  .mask.rgba-black-light.d-flex.justify-content-center.align-items-center
    .container
      .row.wow.fadeIn
        .col-md-6.mb-4.white-text.text-center.text-md-left
          %h1.display-4.font-weight-bold
            = @page&.title || @application.public_name
          %hr.hr-light
            %p
              - unless @page.present?
                %strong
                  = @application.tagline
            %p.mb-4.d-none.d-md-block
              %strong
                = @page&.body || @application.short_description
        .col-md-6.col-xl-5.mb-4
          - if params[:flash] == 'success'
            = render 'tramway/landing/templates/alert', alert_type: :success do
              Sign up successful!
          - if params[:flash] == 'error'
            = render 'tramway/landing/templates/alert', alert_type: :danger do
              There is some errors
          .card
            .card-body
              = simple_form_for @header_with_form, url: block.form_url, method: :post, input_html: { class: 'form-vertical' } do |f|
                %h3.dark-grey-text.text-center
                  %strong
                    = block.title
                %hr
                = hidden_field_tag :model, 'User'
                = hidden_field_tag :redirect, request.path
                - @header_with_form.properties.each do |property|
                  = render 'tramway/core/shared/input', property: property[0], object: :record, type: property[1], form: f, destination: :landing, record: @header_with_form, value: (params[:record].present? ? params[:record][property[0]] : '')
                = f.button :submit, @header_with_form.submit_message

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tramway-landing-3.0.2.3 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0.2.2 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0.2.1 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0.2 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0.1.2 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0.1.1 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0.1 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0.0.2 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0.0.1 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml
tramway-landing-3.0 app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml