diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-01-14 15:57:03 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-01-14 15:57:03 -0300 |
commit | 4cda312624af2d4d8465a64299aa6ba3a852c973 (patch) | |
tree | 584f5b4ecbd90fcd109f9a358b6072bbdb7b9417 /askbot/templates/user_profile | |
parent | fc29ed609c9ee996673f8f0f92e9cc35a18e317f (diff) | |
download | askbot-4cda312624af2d4d8465a64299aa6ba3a852c973.tar.gz askbot-4cda312624af2d4d8465a64299aa6ba3a852c973.tar.bz2 askbot-4cda312624af2d4d8465a64299aa6ba3a852c973.zip |
added language selector to the user profiles and to the ask question for
Diffstat (limited to 'askbot/templates/user_profile')
-rw-r--r-- | askbot/templates/user_profile/user_email_subscriptions.html | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/askbot/templates/user_profile/user_email_subscriptions.html b/askbot/templates/user_profile/user_email_subscriptions.html index 16ab2208..5ec81203 100644 --- a/askbot/templates/user_profile/user_email_subscriptions.html +++ b/askbot/templates/user_profile/user_email_subscriptions.html @@ -26,22 +26,40 @@ </form> </div> - {%if settings.SUBSCRIBED_TAG_SELECTOR_ENABLED %} - <h2>{% trans %}Subscribed Tags{% endtrans %}</h2> - {{ - macros.tag_list_widget( - subscribed_tag_names, - deletable = True, - css_class = 'subscribed marked-tags special', - ) - }} - <br/> - <div class="inputs"> - <input id="subscribedTagInput" autocomplete="off" type="text"/> - <input id="subscribedTagAdd" type="submit" value="{% trans %}add{% endtrans%}"/> + {% if settings.MULTILINGUAL %} + <h2>{% trans %}Subscribed languages{% endtrans %}</h2> + <form + method="post" + action="{% url user_select_languages view_user.id, view_user.username|slugify %}" + >{% csrf_token %} + <select multiple name="languages"> + {% for lang in settings.LANGUAGES %} + <option + value="{{ lang[0] }}" + {% if lang[0] in user_languages %}selected="selected"{% endif %} + >{{ lang[1] }}</option> + {% endfor %} + </select><br/> + <input type="submit" class="select-language" value="{% trans %}Save languages{% endtrans %}" /> + </form> + {% endif %} + + {%if settings.SUBSCRIBED_TAG_SELECTOR_ENABLED %} + <h2>{% trans %}Subscribed Tags{% endtrans %}</h2> + {{ + macros.tag_list_widget( + subscribed_tag_names, + deletable = True, + css_class = 'subscribed marked-tags special', + ) + }} + <br/> + <div class="inputs"> + <input id="subscribedTagInput" autocomplete="off" type="text"/> + <input id="subscribedTagAdd" type="submit" value="{% trans %}add{% endtrans%}"/> + </div> </div> - </div> - {%endif%} + {%endif%} {% endblock %} {%block userjs%} <script type='text/javascript'> |