templates/index.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}
  3.     {% trans %}index.header.documents{% endtrans %}
  4. {% endblock %}
  5. {% block content %}
  6.     <section class="docs-section">
  7.         <div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
  8.             <h1 class="display-4">{% trans %}index.header.documents{% endtrans %}</h1>
  9.             <p class="lead">{% trans %}index.header.subtitle{% endtrans %}</p>
  10.         </div>
  11.         <div class="my-auto container">
  12.             <div class="row">
  13.                 <div class="col-sm-4 d-flex align-items-stretch offset-md-4">
  14.                     <div class="card mb-4 shadow-sm">
  15.                         <div class="card-header">
  16.                             <h4 class="my-0 font-weight-normal">{% trans %}index.files.sd.user.title{% endtrans %}</h4>
  17.                         </div>
  18.                         <div class="card-body d-flex flex-column align-middle">
  19.                             <div class=" m-auto py-2">
  20.                                 <p class="align-middle">{% trans %}index.files.sd.user.description{% endtrans %}</p>
  21.                             </div>
  22.                             <a href="{{ path('pdf_document', {document: 'sd_user', domains: app.request.getBaseURL()}) }}" class="btn btn-lg btn-block btn-primary mt-auto">{% trans %}global.view{% endtrans %}</a>
  23.                         </div>
  24.                     </div>
  25.                 </div>
  26.             </div>
  27.             {% if isLoggedIn %}
  28.                 <div class="row">
  29.                     <div class="col-sm-4 d-flex align-items-stretch offset-md-1">
  30.                         <div class="card mb-4 shadow-sm">
  31.                             <div class="card-header">
  32.                                 <h4 class="my-0 font-weight-normal">{% trans %}index.files.rusz.title{% endtrans %}</h4>
  33.                             </div>
  34.                             <div class="card-body d-flex flex-column align-middle">
  35.                                 <div class=" m-auto py-2">
  36.                                     <p class="align-middle">{% trans %}index.files.rusz.description{% endtrans %}</p>
  37.                                 </div>
  38.                                 <p class="card-text"><small class="text-muted">{% trans %}global.linkonly{% endtrans %}</small></p>
  39.                                 <a href="{{ path('pdf_document', {document: 'rusz', domains: app.request.getBaseURL()}) }}" class="btn btn-lg btn-block btn-primary mt-auto">{% trans %}global.view{% endtrans %}</a>
  40.                             </div>
  41.                         </div>
  42.                     </div>
  43.                     <div class="col-sm-4 d-flex align-items-stretch offset-md-2">
  44.                         <div class="card mb-4 shadow-sm">
  45.                             <div class="card-header">
  46.                                 <h4 class="my-0 font-weight-normal">{% trans %}index.files.ibsz.title{% endtrans %}</h4>
  47.                             </div>
  48.                             <div class="card-body d-flex flex-column align-middle">
  49.                                 <div class=" m-auto py-2">
  50.                                     <p class="align-middle">{% trans %}index.files.ibsz.description{% endtrans %}</p>
  51.                                 </div>
  52.                                 <p class="card-text"><small class="text-muted">{% trans %}global.linkonly{% endtrans %}</small></p>
  53.                                 <a href="{{ path('pdf_document', {document: 'ibsz', domains: app.request.getBaseURL()}) }}" class="btn btn-lg btn-block btn-primary mt-auto">{% trans %}global.view{% endtrans %}</a>
  54.                             </div>
  55.                         </div>
  56.                     </div>
  57.                 </div>
  58.                 <div class="row">
  59.                     <div class="col-sm-4 d-flex align-items-stretch offset-md-1">
  60.                         <div class="card mb-4 shadow-sm">
  61.                             <div class="card-header">
  62.                                 <h4 class="my-0 font-weight-normal">{% trans %}index.files.sd.admin.title{% endtrans %}</h4>
  63.                             </div>
  64.                             <div class="card-body d-flex flex-column align-middle">
  65.                                 <div class=" m-auto py-2">
  66.                                     <p class="align-middle">{% trans %}index.files.sd.admin.description{% endtrans %}</p>
  67.                                 </div>
  68.                                 <p class="card-text"><small class="text-muted">{% trans %}global.privateonly{% endtrans %}</small></p>
  69.                                 <a href="{{ path('pdf_document', {document: 'sd_admin', domains: app.request.getBaseURL()}) }}" class="btn btn-lg btn-block btn-primary mt-auto">{% trans %}global.view{% endtrans %}</a>
  70.                             </div>
  71.                         </div>
  72.                     </div>
  73.                     <div class="col-sm-4 d-flex align-items-stretch offset-md-2">
  74.                         <div class="card mb-4 shadow-sm">
  75.                             <div class="card-header">
  76.                                 <h4 class="my-0 font-weight-normal">{% trans %}index.files.howto.title{% endtrans %}</h4>
  77.                             </div>
  78.                             <div class="card-body d-flex flex-column align-middle">
  79.                                 <div class=" m-auto py-2">
  80.                                     <p class="align-middle">{% trans %}index.files.howto.description{% endtrans %}</p>
  81.                                 </div>
  82.                                 <p class="card-text"><small class="text-muted">{% trans %}global.privateonly{% endtrans %}</small></p>
  83.                                 <a href="{{ path('pdf_document', {document: 'howto', domains: app.request.getBaseURL()}) }}" class="btn btn-lg btn-block btn-primary mt-auto">{% trans %}global.view{% endtrans %}</a>
  84.                             </div>
  85.                         </div>
  86.                     </div>
  87.                 </div>
  88.                 <div class="row">
  89.                     <div class="col-sm-4 d-flex align-items-stretch offset-md-1">
  90.                         <div class="card mb-4 shadow-sm">
  91.                             <div class="card-header">
  92.                                 <h4 class="my-0 font-weight-normal">{% trans %}index.files.sla.title{% endtrans %}</h4>
  93.                             </div>
  94.                             <div class="card-body d-flex flex-column align-middle">
  95.                                 <form method="POST" action="{{ path('index') }}#slas" class="needs-validation">
  96.                                     <div class=" m-auto py-2">
  97.                                         <p class="align-middle">{% trans %}index.files.sla.description{% endtrans %}</p>
  98.                                         <div class="form-group">
  99.                                             <input type="text" class="form-control {% if valid is same as (0) %} is-invalid {% elseif valid is same as (1) %} is-valid {% endif %}" id="sla_botname" name="sla_botname" placeholder="{% trans %}index.files.sla.botname{% endtrans %}" required value="{{ botname }}">
  100.                                         </div>
  101.                                     </div>
  102.                                     <p class="card-text"><small class="text-muted">{% trans %}global.privateonly{% endtrans %}</small></p>
  103.                                     <button type="submit" class="btn btn-lg btn-block btn-primary mt-auto">{% trans %}global.view{% endtrans %}</button>
  104.                                 </form>
  105.                             </div>
  106.                         </div>
  107.                     </div>
  108.                     <div class="col-sm-4 d-flex align-items-stretch offset-md-2">
  109.                         <div class="card mb-4 shadow-sm">
  110.                             <div class="card-header">
  111.                                 <h4 class="my-0 font-weight-normal">{% trans %}index.files.generate.title{% endtrans %}</h4>
  112.                             </div>
  113.                             <div class="card-body d-flex flex-column align-middle">
  114.                                 <div class=" m-auto py-2">
  115.                                     <p class="align-middle">{% trans %}index.files.generate.description{% endtrans %}</p>
  116.                                 </div>
  117.                                 <p class="card-text"><small class="text-muted">{% trans %}global.privateonly{% endtrans %}</small></p>
  118.                                 <a href="{{ path('private_requirements', {domains: app.request.getBaseURL()}) }}" class="btn btn-lg btn-block btn-primary mt-auto">{% trans %}global.view{% endtrans %}</a>
  119.                             </div>
  120.                         </div>
  121.                     </div>
  122.                 </div>
  123.                 <div class="row">
  124.                     <div class="col-sm-4 d-flex align-items-stretch offset-md-1">
  125.                         <div class="card mb-4 shadow-sm">
  126.                             <div class="card-header">
  127.                                 <h4 class="my-0 font-weight-normal">{% trans %}index.contract.generator.title{% endtrans %}</h4>
  128.                             </div>
  129.                             <div class="card-body d-flex flex-column align-middle">
  130.                                 <div class=" m-auto py-2">
  131.                                     <p class="align-middle">{% trans %}index.contract.generator.description{% endtrans %}</p>
  132.                                 </div>
  133.                                 <p class="card-text"><small class="text-muted">{% trans %}global.privateonly{% endtrans %}</small></p>
  134.                                 <a href="{{ path('admin_app_cheqcontract_list', {}) }}" class="btn btn-lg btn-block btn-primary mt-auto">{% trans %}global.view{% endtrans %}</a>
  135.                             </div>
  136.                         </div>
  137.                     </div>
  138.                 </div>
  139.             {% endif %}
  140.         </div>
  141.     </section>
  142.     {% if valid is same as (1) %}
  143.         {{ include("index_documents/slas.html.twig") }}
  144.         {% if CHEQContracts is defined and CHEQContracts is not null %}
  145.             {{ include("index_documents/CHEQcontracts.html.twig") }}
  146.         {% endif %}
  147.         {% if others is defined and others is not null %}
  148.             {{ include("index_documents/others.html.twig") }}
  149.         {% endif %}
  150.     {% endif %}
  151. {% endblock %}