Sha256: 6c4228736cd75819a4682e77208d3239f705c75907351225e7086fa713d687bb

Contents?: true

Size: 1.68 KB

Versions: 24

Compression:

Stored size: 1.68 KB

Contents

= tabs do
  - if cpd_audit.new_record?
    = tab 'New Audit' do
      = render 'admin/cpd_audits/form_new', cpd_audit: cpd_audit

  - if cpd_audit.persisted?
    - if cpd_audit.completed?
      = tab 'Audit' do
        = render 'effective/cpd_audits/cpd_audit', cpd_audit: cpd_audit

      = tab 'Status' do
        = render 'admin/cpd_audits/status', cpd_audit: cpd_audit
    - else
      = tab 'Status' do
        = render 'admin/cpd_audits/status', cpd_audit: cpd_audit

      = tab 'Audit' do
        = render 'effective/cpd_audits/cpd_audit', cpd_audit: cpd_audit

    = tab 'Statements' do
      - datatable = Admin::EffectiveCpdStatementsDatatable.new(user_id: cpd_audit.user.id, user_type: cpd_audit.user.class.name)
      = render_datatable(datatable, inline: true, simple: true)

    = tab 'Audit Reviews' do
      - datatable = Admin::EffectiveCpdAuditReviewsDatatable.new(cpd_audit_id: cpd_audit.id)
      = render_datatable(datatable, inline: true, simple: true)

    - unless cpd_audit.closed?
      = tab 'Determination' do
        = render 'admin/cpd_audits/form_determination', cpd_audit: cpd_audit

    - if cpd_audit.conflicted?
      = tab 'Process Conflict of Interest' do
        = render 'admin/cpd_audits/form_conflict', cpd_audit: cpd_audit

    - if cpd_audit.exemption_requested?
      = tab 'Process Exemption Request' do
        = render 'admin/cpd_audits/form_exemption', cpd_audit: cpd_audit

    - if cpd_audit.extension_requested?
      = tab 'Process Extension Request' do
        = render 'admin/cpd_audits/form_extension', cpd_audit: cpd_audit

    - if cpd_audit.respond_to?(:log_changes_datatable)
      = tab 'Logs' do
        = render_inline_datatable(cpd_audit.log_changes_datatable)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
effective_cpd-0.3.1 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.3.0 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.2.1 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.2.0 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.19 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.18 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.17 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.16 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.15 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.14 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.13 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.12 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.11 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.10 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.9 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.8 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.7 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.6 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.5 app/views/admin/cpd_audits/_form.html.haml
effective_cpd-0.1.4 app/views/admin/cpd_audits/_form.html.haml