<commit_before>{% extends 'monitorings/institution_base.html' %}
{% load crispy_forms_tags i18n %}

{% block breadcrumbs %}
<ol class="breadcrumb">
    <li><a href="{{monitoring.get_absolute_url}}">{{monitoring}}</a></li>
    <li class="active">{% trans 'Assign institutions' %}</li>
</ol>
{% endblock %}

{% block content %}
<div class="page-header">
  <h1>{% trans 'Assign institutions' %}</h1>
</div>
<div class="row">
    <div class="col-sm-4">
            <form method="GET">
                {{ filter.form | crispy }}
                <input type="submit" class="btn btn-primary" value="{% trans 'Filtr' %}">
            </form>
    </div>
    <div class="col-sm-8">
    {% if object_list %}
    <form method="POST">
        <button type="submit" class="btn btn-primary">{% blocktrans with monitoring=monitoring %}Assign institutions to {{monitoring}}{%endblocktrans %}</button>
        <table  class="table table-striped">
            <tr>
                <td>&nbsp;</td>
                <td>{% trans 'Name' %}</td>
                <td>{% trans 'Region' %}</td>
            </tr>
            {% for object in object_list %}
                <tr class="table table-striped">
                    <td><input type="checkbox" name="to_assign" value="{{object.pk}}"></td>
                    <td><a href="{{object.get_absolute_url}}">{{object}}</a></td>
                    <td><a href="{{object.region.get_absolute_url}}" title="TERYT: {{object.region.pk}}">{{object.region}}</a></td>
                </tr>
            {% endfor %}
        </table>

        <div style="display:none">
            <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
        </div>
        <button type="submit" class="btn btn-primary">{% blocktrans with monitoring=monitoring %}Assign institutions to {{monitoring}}{%endblocktrans %}</button>
    </form>
    {% endif %}
    </div>
</div>
{% endblock %}
<commit_msg>Improve table layout<commit_after>{% extends 'monitorings/institution_base.html' %}
{% load crispy_forms_tags i18n %}

{% block breadcrumbs %}
<ol class="breadcrumb">
    <li><a href="{{monitoring.get_absolute_url}}">{{monitoring}}</a></li>
    <li class="active">{% trans 'Assign institutions' %}</li>
</ol>
{% endblock %}

{% block content %}
<div class="page-header">
  <h1>{% trans 'Assign institutions' %}</h1>
</div>
<div class="row">
    <div class="col-sm-4">
            <form method="GET">
                {{ filter.form | crispy }}
                <input type="submit" class="btn btn-primary" value="{% trans 'Filtr' %}">
            </form>
    </div>
    <div class="col-sm-8">
    {% if object_list %}
    <form method="POST">
        <button type="submit" class="btn btn-primary">{% blocktrans with monitoring=monitoring %}Assign institutions to {{monitoring}}{%endblocktrans %}</button>
        <table  class="table table-striped">
          <thead>
            <tr>
              <th style="width: 20px;">&nbsp;</th>
              <th>{% trans 'Name' %}</th>
              <th>{% trans 'Region' %}</th>
            </tr>
          </thead>
          <tbody>
          {% for object in object_list %}
            <tr class="table table-striped">
                <td><input type="checkbox" name="to_assign" value="{{object.pk}}"></td>
                <td><a href="{{object.get_absolute_url}}">{{object}}</a></td>
                <td><a href="{{object.region.get_absolute_url}}" title="TERYT: {{object.region.pk}}">{{object.region}}</a></td>
            </tr>
          {% endfor %}
          </tbody>
        </table>

        <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
        <button type="submit" class="btn btn-primary">{% blocktrans with monitoring=monitoring %}Assign institutions to {{monitoring}}{%endblocktrans %}</button>
    </form>
    {% endif %}
    </div>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.19948186528497408, 'fraction_numerical': 0.003626943005181347, 'mean_word_length': 2.5585253456221198, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '5327721', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1163, 'n_words': 253}