Subversion Repositories navi

Rev

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>
86 szabot 11
{% if out %}
83 szabot 12
<table border="1">
13
<tr>
85 szabot 14
    <th>Words</th>
83 szabot 15
    <th>Parts</th>
16
    <th>Data</th>
17
</tr>
18
{% for wor in out %}
19
<tr>
84 szabot 20
    <td rowspan="3">{{ wor["word"]["navi"] }}</td>
83 szabot 21
    <td>Infixes:</td>
84 szabot 22
    <td>{{ u", ".join(wor["inf"]) }}</td>
83 szabot 23
</tr>
24
<tr>
25
    <td>Prefixes:</td>
84 szabot 26
    <td>{{ u"; ".join(u", ".join(x) for x in wor["pref"]) }}</td>
83 szabot 27
</tr>
28
<tr>
29
    <td>Postfixes:</td>
84 szabot 30
    <td>{{ u"; ".join(u", ".join(x) for x in wor["post"]) }}</td>
83 szabot 31
</tr>
32
{% end %}
33
</table>
86 szabot 34
{% end %}
58 szabot 35
<script type="text/javascript">
36
document.getElementById("word").focus();
37
</script>
38
{% end %}