1 {% extends
"base.html" %}
3 {% block title %}{{ wordname }}{% endblock %}
5 {% load choice2select %}
7 {% block extra_body_late %}
8 <script type=
"text/javascript" src=
"/w/static/js/jquery-autocomplete/jquery.autocomplete.js">
10 <script type=
"text/javascript" src=
"/w/static/js/jquery.m2m.js">
12 <script type=
"text/javascript" src=
"/w/static/js/jquery.etymology.js">
14 <script type=
"text/javascript" src=
"/w/static/js/jquery.translations.js">
16 <script type=
"text/javascript" src=
"/w/static/js/jquery.hoverIntent.js">
18 <script type=
"text/javascript" src=
"/w/static/js/jquery.forms.js">
20 <script type=
"text/javascript" src=
"/w/static/js/worddb.lib.js">
22 <script type=
"text/javascript" src=
"/w/static/js/jquery.meaning.js">
26 {% block extra_head_late %}
27 <link rel=
"stylesheet" href=
"/w/static/js/jquery-autocomplete/jquery.autocomplete.css" />
28 <link rel=
"stylesheet" href=
"/w/static/js/jquery.m2m.css" />
29 <link rel=
"stylesheet" href=
"/w/static/js/jquery.etymology.css" />
30 <link rel=
"stylesheet" href=
"/w/static/js/jquery.translations.css" />
31 <link rel=
"stylesheet" href=
"/w/static/js/jquery.forms.css" />
32 <link rel=
"stylesheet" href=
"/w/static/js/jquery.meaning.css" />
35 {% block extra_script %}
37 $(
".m2m").m2mize({ relation_name:
"synonym", word:
"love" });
38 $(
".etymology_container").etymologyzer({});
39 $(
".languages").translatize({});
40 $(
".forms").formize({});
41 $(
"div.meaning").meaningize({});
45 {% block extra_style %}
56 This word has other forms.
58 {% for word in link_list %}
59 <li><a href=
"{{ word.get_absolute_url }}">{{ word }}
</a></li>
64 {% for word in word_list %}
67 <h1 class=
"word">{{ word.word }}
</h1>
68 <h2 class=
"forms w_{{ word.id }}" id=
"{{ word.word }}">
69 {% for form in word.get_form_data %}
70 <div class=
"form f_{{ form.form }}">
75 src=
"/media/img/admin/icon_deletelink.gif"
77 <div class=
"del_form">
78 Are you sure you want to delete this form?
80 action=
"/w/ajax/word/remove-form/"
82 <input type=
"hidden" name=
"word"
85 <input type=
"hidden" name=
"form"
86 value=
"{{ form.form }}"
88 <input type=
"submit" value=
"Delete"> or
89 <a href=
"#f" class=
"cancel">Cancel
</a>
94 {% for pronunciation in form.pronunciations %}
96 class=
"p_{{ pronunciation.pronunciation_key }}"
99 {{ pronunciation.pronunciation_key }}
101 <div class=
"edit_pro dnone">
103 <form name=
"edit_pron" method=
"post"
104 action=
"/w/ajax/word/edit-pronunciation/">
105 <input type=
"hidden" name=
"word"
106 value=
"{{ word.id }}"
110 value=
"{{ pronunciation.id }}"
112 <input type=
"text" name=
"key">
113 <input type=
"submit" value=
"Edit">
116 <form name=
"del_pro" method=
"post"
117 action=
"/w/ajax/word/remove-pronunciation/"
119 <input type=
"hidden" name=
"word"
120 value=
"{{ word.id }}"
124 value=
"{{ pronunciation.id }}"
126 <input type=
"submit" value=
"Delete">
128 <a href=
"#f" class=
"cancel">Cancel
</a>
135 <div class=
"visible">{{ form.form }}
</div>
141 <div class=
"languages w_{{ word.id }} lang_{{ word.language }}">
142 <div class=
"translations">
143 Language:
<i>{{ word.get_language_display }}
</i><br>
144 <a class=
"add_translation" href=
"#add">
145 <img src=
"/media/img/admin/icon_addlink.gif">
148 {% if word.translations.count %}
151 {% for tr in word.translations.all %}
152 <li class=
"w_{{ tr.id }}">
153 <a href=
"{{ tr.get_absolute_url }}">{{ tr.word }}
</a>,
154 <i>{{ tr.get_language_display }}
</i>
162 <div class=
"visible">Language:
<i>{{ word.get_language_display }}
</i></div>
169 <div class=
"meaning w_{{ word.id }}">
172 {% regroup word.visible_meanings.all by language as lang_meanings_set %}
173 {% for lang_meanings in lang_meanings_set %}
175 {{ lang_meanings.list
.0.get_language_display }}
177 {% regroup lang_meanings.list by pol as meanings %}
178 {% for pol in meanings %}
180 {{ pol.list
.0.get_pol_display }}
181 <ul class=
"meaning_set">
182 {% for item in pol.list %}
183 <li class=
"m_{{ item.id }} pol_{{ item.pol }} lang_{{ item.language }}">
184 <span class=
"m">{{ item.meaning }}
</span>
185 <i class=
"usage">{{ item.usage }}
</i>
196 <div class=
"etymology_container w_{{ word.id }}">
199 {% for etymology in word.etymology_set.all %}
200 <dt class=
"w_{{ word.id }} etymology e_{{ etymology.id }} elang_{{ etymology.language }}">
201 {{ etymology.get_language_display }}
203 <dd>{{ etymology.text|linebreaksbr }}
</dd>
210 <div class=
"m2m r_synonym w_{{ word.id }} lang_{{ word.language }}">
211 <div class=
"header">Synonyms
</div>
213 {% for synonym in word.synonyms.all %}
214 <li class=
"w_{{ synonym.id }}">
215 <a href=
"{{ synonym.get_absolute_url }}">{{ synonym.word }}
</a>
220 <div class=
"m2m r_antonym w_{{ word.id }} lang_{{ word.language }}">
221 <div class=
"header">Antonyms
</div>
223 {% for antonym in word.antonyms.all %}
224 <li class=
"w_{{ antonym.id }}">
225 <a href=
"{{ antonym.get_absolute_url }}">{{ antonym.word }}
</a>
230 <div class=
"m2m r_thesaurus w_{{ word.id }} lang_{{ word.language }}">
231 <div class=
"header">Thesaurus
</div>
233 {% for thesaurus in word.thesaurus.all %}
234 <li class=
"w_{{ thesaurus.id }}">
235 <a href=
"{{ thesaurus.get_absolute_url }}">{{ thesaurus.word }}
</a>
240 <div class=
"m2m r_rhyme w_{{ word.id }} lang_{{ word.language }}">
241 <div class=
"header">Rhymes with
</div>
243 {% for rhyme in word.rhymes.all %}
244 <li class=
"w_{{ rhyme.id }}">
245 <a href=
"{{ rhyme.get_absolute_url }}">{{ rhyme.word }}
</a>
250 <div class=
"m2m r_related w_{{ word.id }} lang_{{ word.language }}">
251 <div class=
"header">See also
</div>
253 {% for related in word.relateds.all %}
254 <li class=
"w_{{ related.id }}">
255 <a href=
"{{ related.get_absolute_url }}">{{ related.word }}
</a>
265 <div class=
"add_new_word">
266 <h1>{{ wordname }}
</h1>
267 <form method=
"post" action=
"/w/ajax/word/add/">
269 {{
"worddb.words.models.LanguageChoices"|choice2select:
"language" }}
270 <input type=
"hidden" name=
"w" value=
"{{ wordname }}">
271 <input type=
"submit" value=
"Add">
274 <div class=
"select_language_c2s dnone">
275 {{
"worddb.words.models.LanguageChoices"|choice2select:
"language" }}
277 <div class=
"select_pol_c2s dnone">
278 {{
"worddb.words.models.POLChoices"|choice2select:
"pol" }}