Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Hide conferences choices for 2020 #1153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tea-n-biccies
Copy link
Contributor

Hides conference preferences in Team creation/edit screen of Teams App as not offered for 2020

Copy link
Member

@Montana Montana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//.page-header
    //h3 Conference Offers
    //.conference-info
      | Please select one or more conferences free tickets to which you would like to offer to the students.
   // fieldset
      = f.simple_fields_for :conference_attendances do |c|
        = c.input :conference_id, collection: @conferences&.group_by(&:region), as: :grouped_select, group_method: :last, label: "Offered conference", include_blank: "None"
        = c.input :orga_comment, label: "Comment"

      .form-group.form-btn-group
      = f.link_to_add 'Add another conference offer', :conference_attendances, class: 'btn btn-primary col-sm-offset-3'

  //.actions
    ul.list-inline
      li = f.submit 'Save', class: 'btn btn-success'
      li = link_to 'Cancel', [:organizers, @team], class: 'btn btn-default'

This successfully commented out the Conference section in http://localhost:3000/organizers/teams/new.

This will also comment it out under the "teams" view

 //- if can?(:update_conference_preferences, @team)
    = render 'conference_preference_fields', f: f
  //.actions
    ul.list-inline
      li  = f.submit 'Save', class: 'btn btn-success'
      li = link_to 'Cancel', @team, class: 'btn btn-default'

Hope this helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants