started user plugin settings

master
seba 11 years ago
parent 8d39ac2a3f
commit 8e0ad87341
  1. BIN
      devel/er.dia
  2. 4
      k4ever/main/models.py
  3. 1
      k4ever/main/templates/main/navigation-login.html
  4. 12
      k4ever/main/templates/settings/settings.html
  5. 1
      k4ever/main/urls.py
  6. 4
      k4ever/main/views.py

Binary file not shown.

@ -24,6 +24,6 @@ class PluginPermission(models.Model):
authBlob = models.TextField()
class Plugin(models.Model):
pluginUser = models.ForeignKey(User)
uniqueAuthblob = models.BooleanField()
user = models.ForeignKey(User)
uniqueAuthblob = models.BooleanField(default=False)

@ -3,6 +3,7 @@
<li><a href="/store/">Einkaufen</a></li>
<li><a href="/transaction/">Konto</a></li>
<li><a href="/store/history/">Frühere Einkäufe</a></li>
<li><a href="/user/settings/">Einstellungen</a></li>
{% if user.is_staff %}
<li><a href="/admin/">Administration</a></li>
{% endif %}

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block "content" %}
<h2>Passwort</h2>
<hr />
&lt;Change Password here&gt;
<br />
<br />
<br />
<h2>Plugin permissions</h2>
<hr />
{% endblock %}

@ -10,4 +10,5 @@ urlpatterns = patterns('',
(r'^logout/$', 'django.contrib.auth.views.logout',
{'template_name': 'registration/logout.html',
'next_page': '/user/login/'}),
(r'^settings/$', 'main.views.settings'),
)

@ -17,3 +17,7 @@ def startpage(request):
def register(request):
return render_to_response("registration/register.html", RequestContext(request))
@login_required
def settings(request):
return render_to_response("settings/settings.html", RequestContext(request))

Loading…
Cancel
Save