anchor.diff:                </div>
         <% else %>
             <% unless has_teacher_role %>
  -              <button type="button" class="btn btn-primary"  data-toggle="modal" data-target="#update-user-info">
  +              <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#update-user-info">
                   创建队伍
                 </button>
  -              <input type="text" class="search-team-input" value=""/>
  -              <button id="search-team">搜索已有队伍</button>
  +              <% if @event.team_max_num >1 %>
  +                  <input type="text" class="search-team-input" value=""/>
  +                  <button id="search-team">搜索已有队伍</button>
  +                  <!-- 搜索队伍 -->
  +                  <div class="search-team-result">
  +
  +                  </div>
  +              <% end %>
   
                 <div id="update-user-info" class="modal fade" tabindex="-1" role="dialog">
                   <div class="modal-dialog">
  
positive.code:               </div>
  
  
                <!-- 搜索队伍 -->
                <div class="search-team-result">
  
                </div>
            <% end %>
  
  
  
negative.code:                       <div class="form-group">
                          <label for="district" class="col-sm-2 control-label">区县</label>
                          <div class="col-sm-9">
                            <%= @user_info.try(:district_name) %> <button>选择</button>
                          </div>
                        </div>
                        <div class="form-group">
  