Sha256: 197d69daebe3b3e847fb21be5f4e2042e1ea19ab974c5a3b8cee0c1d7e268c6e

Contents?: true

Size: 1018 Bytes

Versions: 19

Compression:

Stored size: 1018 Bytes

Contents

#cpd-statement-activities
  .row
    .col-3
    .col-9
      %h1= resource.cpd_cycle

  - activities = (params[:activities] == 'new' ? :new : :index)

  .activities-index{style: ('display: none;' unless activities == :index)}
    = render('layout') do
      - if resource.cpd_cycle.all_steps_content.present?
        .mb-2= resource.cpd_cycle.all_steps_content.to_s

      - if resource.cpd_cycle.activities_content.present?
        .mb-2= resource.cpd_cycle.activities_content.to_s

      - if resource.cpd_statement_activities.present?
        = render('activities_edit', cpd_statement: resource)

      .my-3
        = link_to 'Add Activity', '#', 'data-cpd-new-activity': true, class: 'btn btn-primary'

      = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
        = f.hidden_field :current_step
        = f.submit 'Save and Continue', center: true

  .activities-new{style: ('display: none;' unless activities == :new)}
    = render('activities_new', cpd_statement: resource)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
effective_cpd-1.7.2 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.7.1 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.7.0 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.6.5 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.6.4 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.6.3 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.6.2 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.6.1 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.6.0 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.5.1 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.5.0 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.4.8 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.4.7 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.4.6 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.4.5 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.4.4 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.4.3 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.4.2 app/views/effective/cpd_statements/activities.html.haml
effective_cpd-1.4.1 app/views/effective/cpd_statements/activities.html.haml