<% content_for :main_content do %>
    <div class="container">
      <div class="panel panel-info">
        <div class="panel-heading">
          <h3 class="text-center">Register</h3>
        </div>
        <div class="panel-body">
          <p class="text-muted">You can further <a class="btn btn-info" href="<%= edit_user_path(@user.id) %>" target="_blank">complete</a> your profile for registration</p>
          <%= render 'registration_form', locals: {user: @user, survey_template: survey_template, registration: registration, questions: questions} %>
        </div>
      </div>
    </div>
<% end %>

<% content_for :main_content do %>
  <div class="container">
    <div class="panel panel-info">
      <div class="panel-heading">
        <h3 class="text-center">Register</h3>
      </div>
      <div class="panel-body">
        <% if is_registration_open? %>
          <p class="text-muted">You can further <a class="btn btn-info" href="<%= edit_user_path(@user.id) %>" target="_blank">complete</a> your profile for registration</p>
          <%= render 'registration_form', locals: {user: @user, survey_template: survey_template, registration: registration, questions: questions} %>
        <% else %>
          <p>
            Registration for Orbital <%=current_cohort%> has closed. Thank you for your interest.
          </p>
        <% end %>
      </div>
    </div>
  </div>
<% end %>

Add check for registration status
Add check for registration status

Signed-off-by: Aadit <524ee5f6f65108e1a57086bf53235bd43dbe8e71@gmail.com>
