{% extends 'user.base' %}

{% block title %}{{ trans('general.dashboard') }}{% endblock %}

{% block content %}
  {{ include('shared.grid') }}

  <div id="modal-score-instruction" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title">{{ trans('user.score-intro.title') }}</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          {{ score_intro|nl2br }}
          <hr />
          <div class="row">
            {% for key, value in rates %}
              <div class="col-md-4">
                <p class="text-center">
                  {{ trans("user.score-intro.rates.#{key}", {score: value}) }}
                </p>
              </div>
            {% endfor %}
          </div>
        </div>
        <div class="modal-footer">
          <button class="btn btn-default" data-dismiss="modal">{{ trans('general.close') }}</button>
        </div>
      </div>
    </div>
  </div>
{% endblock %}

{% block before_foot %}
  <script id="blessing-extra" type="application/json">
    {{ extra|json_encode|raw }}
  </script>
{% endblock %}
