drime

French rhyme dictionary with web and CLI interface
git clone https://a3nm.net/git/drime/
Log | Files | Refs | README

index.html (1790B)


      1 {% extends "page.html" %}
      2 
      3 {% block body %}
      4 <form method="GET" action="query" id="bigform">
      5   <label for="query">
      6   {% if lang == 'fr' %}
      7     Mot pour lequel vous voulez des rimes&nbsp;:
      8   {% else %}
      9     French word to get rhymes for:
     10   {% endif %}
     11   </label><br />
     12     <input id="query" name="query" type="text"
     13   {% if lang == 'fr' %}
     14       placeholder="mot"
     15   {% else %}
     16       placeholder="word"
     17   {% endif %}
     18       value="{{ q }}"/><br />
     19       <label for="nsyl">
     20   {% if lang == 'fr' %}
     21         Nombre de syllabes pour les rimes&nbsp;:<br />
     22         (Laissez vide pour obtenir toutes les rimes.)
     23   {% else %}
     24         Number of syllables of the rhymes:<br />
     25         (Leave blank to get all rhymes.)
     26   {% endif %}
     27       </label><br />
     28     <input id="nsyl" name="nsyl" type="text"
     29   {% if lang == 'fr' %}
     30       placeholder="n_syllabes"
     31   {% else %}
     32       placeholder="n_syllables"
     33   {% endif %}
     34       value="{{ nsyl }}"/><br />
     35       <label id="gender_label">
     36     <input type="checkbox" id="gender" name="gender"
     37       {% if (mode != 'query') or gender == 'on' %}
     38       checked="{{ gender }}"
     39       {% endif %}
     40       />
     41   {% if lang == 'fr' %}
     42       Respecter le genre des rimes&nbsp;?
     43   {% else %}
     44       Only rhymes of matching gender?
     45   {% endif %}
     46     </label><br />
     47       <label id="classical_label">
     48     <input type="checkbox" id="classical" name="classical"
     49       {% if (mode != 'query') or classical == 'on' %}
     50       checked="{{ classical }}"
     51       {% endif %}
     52       />
     53   {% if lang == 'fr' %}
     54       Respecter les contraintes classiques&nbsp;?
     55   {% else %}
     56       Only classical rhymes?
     57   {% endif %}
     58     </label><br />
     59     <input id="submit" type="submit"
     60   {% if lang == 'fr' %}
     61     value="Chercher"
     62   {% else %}
     63     value="Search"
     64   {% endif %}
     65     />
     66   </form>
     67 {% endblock %}
     68