home.html 1.8 KB
Newer Older
Pierre Dittgen's avatar
Pierre Dittgen committed
1 2
{% extends "base_template.html" %} {% block title %}{{ title }}{% endblock %} {%
block head %}
3
{{ super() }}
Pierre Dittgen's avatar
Pierre Dittgen committed
4
{% endblock %} {% block content %}
Christophe Benz's avatar
Christophe Benz committed
5
<h1 class="my-4">Validez vos jeux de données</h1>
6

Pierre Dittgen's avatar
Pierre Dittgen committed
7 8
{% for section in config %}
<h2>{{section.title}}</h2>
9
<div class="row my-4">
Pierre Dittgen's avatar
Pierre Dittgen committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  {% for val in section.catalog %}
    {% if val.website %}
    <div class="col-sm-4 col-md-3 mb-4">
      <div class="card text-center h-100">
        <div class="card-body d-flex flex-column">
          <h4 class="card-title">{{ val.title }}</h4>
          <p class="card-text">{{ val.description }}</p>
          <a
            href="{{ val.website }}" target="_blank"
            class="btn btn-primary mt-auto"
            >Voir
            <i class="fas fa-external-link-alt ml-1"></i>
            </a
          >
        </div>
Pierre Dittgen's avatar
Pierre Dittgen committed
25
      </div>
26
    </div>
Pierre Dittgen's avatar
Pierre Dittgen committed
27 28 29 30 31 32 33 34 35 36 37 38
    {% else %}
    <div class="col-sm-4 col-md-3 mb-4">
      <div class="card text-center h-100">
        <div class="card-body d-flex flex-column">
          <h4 class="card-title">{{ val.title }}</h4>
          <p class="card-text">{{ val.description }}</p>
          <a
            href="{{ url_for('custom_validator') }}?schema={{val.schema_url|urlencode}}"
            class="btn btn-primary mt-auto"
            >Choisir</a
          >
        </div>
Pierre Dittgen's avatar
Pierre Dittgen committed
39
      </div>
40
    </div>
Pierre Dittgen's avatar
Pierre Dittgen committed
41
    {% endif %}
Pierre Dittgen's avatar
Pierre Dittgen committed
42
  {% endfor %}
43
</div>
Pierre Dittgen's avatar
Pierre Dittgen committed
44
{% endfor %}
45

Pierre Dittgen's avatar
Pierre Dittgen committed
46 47
<h2>Validateur personnalisé</h2>
<p>
Pierre Dittgen's avatar
Pierre Dittgen committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61
  <form action="{{ url_for('custom_validator') }}" method="GET">
    <div class="form-group">
      <label for="schema">Indiquez l'URL du schema de validation</label>
      <input
        name="schema"
        type="url"
        class="form-control"
        id="schema"
        aria-describedby="urlHelp"
        placeholder="https://..."
      />
      </div>
      <input type="submit" value="Continuer" />
  </form>
Pierre Dittgen's avatar
Pierre Dittgen committed
62 63 64
</p>

{% endblock %}