view templates/snippet/userprefs.djhtml @ 207:d534881629ff

Updated snippet's template and views files to fix rating code collision which prevented posting new snippets. Updated snippet's models file so that now secret id of each snippet will be unique. It also means that the no two or more than two snippets will have same secret id.
author Ahsan Ali Shahid <ahsan.ali.shahid@gmail.com>
date Mon, 19 Aug 2013 20:30:19 +0500
parents b7c1c22fdfe8
children
line wrap: on
line source

{% extends "snippet/base.djhtml" %}
{% load i18n %}

{% block headline %}
    <h1>{% trans "User Settings" %}</h1>
{% endblock %}

{% block content %}
    {% if settings_saved %}
    <div class="success">
        {% trans "USER_PREFS_SAVED_SUCCESSFULLY" %}
    </div>
    {% endif %}

    <h2>{% trans "User Settings" %}</h2>

    <form class="snippetform" method="post" action=".">
    <ol>
        {{ settings_form.as_ul }}
        <li class="submit">
          <input type="submit" value="{% trans "Save settings" %}"/>
        </li>
    </ol>
    </form>

    <div class="hint">
        {% trans "DATA_STORED_IN_A_COOKIE_HINT" %}
    </div>
{% endblock %}