home.html 1.87 KB
Newer Older
Pierre Dittgen's avatar
wip  
Pierre Dittgen committed
1 2
{% extends "base_template.html" %} {% block title %}{{ title }}{% endblock %} {%
block head %}
3
{{ super() }}
Pierre Dittgen's avatar
wip  
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

7
{% for section in config.sections %}
Pierre Dittgen's avatar
Pierre Dittgen committed
8
<h2>{{section.title}}</h2>
Christophe Benz's avatar
Christophe Benz committed
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
wip  
Pierre Dittgen committed
25
      </div>
26
    </div>
Pierre Dittgen's avatar
Pierre Dittgen committed
27 28 29 30 31 32 33
    {% 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
Pierre Dittgen's avatar
Pierre Dittgen committed
34
            href="{{ url_for('custom_validator') }}?schema_name={{val.name}}&schema_ref=master"
Pierre Dittgen's avatar
Pierre Dittgen committed
35 36 37 38
            class="btn btn-primary mt-auto"
            >Choisir</a
          >
        </div>
Pierre Dittgen's avatar
wip  
Pierre Dittgen committed
39
      </div>
Christophe Benz's avatar
Christophe Benz committed
40
    </div>
Pierre Dittgen's avatar
Pierre Dittgen committed
41
    {% endif %}
Pierre Dittgen's avatar
wip  
Pierre Dittgen committed
42
  {% endfor %}
Christophe Benz's avatar
Christophe Benz committed
43
</div>
Pierre Dittgen's avatar
Pierre Dittgen committed
44
{% endfor %}
Christophe Benz's avatar
Christophe Benz committed
45

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

{% endblock %}