<commit_before>---
layout: default
title: Problems
post_scripts:
 - js/progression_graphs.js
 - js/team.js
startup_functions:
 - redirectIfNotLoggedIn()
---

<div class="container">
  <div class="well">
    <div class="row">
      <div class="col-md-6">
        <div id="team-info"></div>
      </div>
      <div class="col-md-6">
        <div id="group-info"></div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6">
        <div id="team-progression-graph">
      </div>
    </div>
  </div>
</div>

<script type="text/template" id="group-info-template">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">Group Management</h3>
    </div>

    <% if(data.length > 0) { %>
      <table class="table">
        <thead>
          <tr>
            <th></th>
            <th>Group Name</th>
          </tr>
        </thead>
        <tbody>
          <% _.each(data, function(group) { %>
            <tr>
              <td>
                <span data-group-name="<%- group.name %>" class="glyphicon glyphicon-remove leave-group-span"></span>
              </td>
              <td>
                <p><%- group.name %></p>
              </td>
            </tr>
          <% }); %>
        </tbody>
      </table>
    <% } %>

    <div class="panel-body">
      <form class="form form-inline" id="group-request-form" type="submit">
        <div class="form-group">
          <div class="input-group">
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit">Join</button>
            </span>
            <input type="text" class="form-control" id="group-name-input">
          </div>
        </div>
      </div><commit_msg>Added modal to the team page.<commit_after>---
layout: default
title: Problems
post_scripts:
 - js/progression_graphs.js
 - js/team.js
startup_functions:
 - redirectIfNotLoggedIn()
---

<div class="container">
  <div class="well">
    <div class="row">
      <div class="col-md-6">
        <div id="team-info"></div>
      </div>
      <div class="col-md-6">
        <div id="group-info"></div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6">
        <div id="team-progression-graph">
      </div>
    </div>
  </div>
</div>

<div class="modal fade" id="confirm-group-join" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Group Confirmation</h4>
      </div>
      <div class="modal-body">
        By joining a group you are allowing the owner to see individual statistics concerning your team's performance. Are you sure you want to join this group?
      </div>
      <div class="modal-footer">
        <button type="button" data-dismiss="modal" class="btn btn-primary" id="join-group">Join</button>
        <button type="button" data-dismiss="modal" class="btn">Cancel</button>
      </div>
    </div>
  </div>
</div>

<script type="text/template" id="group-info-template">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">Group Management</h3>
    </div>

    <% if(data.length > 0) { %>
      <table class="table">
        <thead>
          <tr>
            <th></th>
            <th>Group Name</th>
          </tr>
        </thead>
        <tbody>
          <% _.each(data, function(group) { %>
            <tr>
              <td>
                <span data-group-name="<%- group.name %>" class="glyphicon glyphicon-remove leave-group-span"></span>
              </td>
              <td>
                <p><%- group.name %></p>
              </td>
            </tr>
          <% }); %>
        </tbody>
      </table>
    <% } %>

    <div class="panel-body">
      <form class="form form-inline" id="group-request-form" type="submit">
        <div class="form-group">
          <div class="input-group">
            <span class="input-group-btn">
              <button class="btn btn-danger" id="join-group">Join</button>
            </span>
            <input type="text" class="form-control" id="group-name-input">
          </div>
        </div>
      </div>
{'fraction_non_alphanumeric': 0.18703531598513012, 'fraction_numerical': 0.0034851301115241635, 'mean_word_length': 1.9506511309115833, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '861424', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1358, 'n_words': 281}