Rev 57 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 58 | szabot | 1 | {% extends "base.html" %} |
| 2 | |||
| 62 | szabot | 3 | {% block title %}Word parser{% end %} |
| 58 | szabot | 4 | |
| 5 | {% block body %} |
||
| 6 | <b>Na'vi word:</b><br /> |
||
| 59 | szabot | 7 | <form action="/parse2" method="post"> |
| 58 | szabot | 8 | <input id="word" name="word" type="text" value="{{last}}" style="width: 100%;" /> |
| 9 | <input name="btn" type="submit" value="Parse!" /> |
||
| 10 | </form> |
||
| 83 | szabot | 11 | <table border="1"> |
| 12 | <tr> |
||
| 85 | szabot | 13 | <th>Words</th> |
| 83 | szabot | 14 | <th>Parts</th> |
| 15 | <th>Data</th> |
||
| 16 | </tr> |
||
| 17 | {% for wor in out %} |
||
| 18 | <tr> |
||
| 84 | szabot | 19 | <td rowspan="3">{{ wor["word"]["navi"] }}</td> |
| 83 | szabot | 20 | <td>Infixes:</td> |
| 84 | szabot | 21 | <td>{{ u", ".join(wor["inf"]) }}</td> |
| 83 | szabot | 22 | </tr> |
| 23 | <tr> |
||
| 24 | <td>Prefixes:</td> |
||
| 84 | szabot | 25 | <td>{{ u"; ".join(u", ".join(x) for x in wor["pref"]) }}</td> |
| 83 | szabot | 26 | </tr> |
| 27 | <tr> |
||
| 28 | <td>Postfixes:</td> |
||
| 84 | szabot | 29 | <td>{{ u"; ".join(u", ".join(x) for x in wor["post"]) }}</td> |
| 83 | szabot | 30 | </tr> |
| 31 | {% end %} |
||
| 32 | </table> |
||
| 58 | szabot | 33 | <script type="text/javascript"> |
| 34 | document.getElementById("word").focus(); |
||
| 35 | </script> |
||
| 36 | {% end %} |