started user plugin settings
This commit is contained in:
parent
8d39ac2a3f
commit
8e0ad87341
BIN
devel/er.dia
BIN
devel/er.dia
Binary file not shown.
|
@ -24,6 +24,6 @@ class PluginPermission(models.Model):
|
||||||
authBlob = models.TextField()
|
authBlob = models.TextField()
|
||||||
|
|
||||||
class Plugin(models.Model):
|
class Plugin(models.Model):
|
||||||
pluginUser = models.ForeignKey(User)
|
user = models.ForeignKey(User)
|
||||||
uniqueAuthblob = models.BooleanField()
|
uniqueAuthblob = models.BooleanField(default=False)
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<li><a href="/store/">Einkaufen</a></li>
|
<li><a href="/store/">Einkaufen</a></li>
|
||||||
<li><a href="/transaction/">Konto</a></li>
|
<li><a href="/transaction/">Konto</a></li>
|
||||||
<li><a href="/store/history/">Frühere Einkäufe</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 %}
|
{% if user.is_staff %}
|
||||||
<li><a href="/admin/">Administration</a></li>
|
<li><a href="/admin/">Administration</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block "content" %}
|
||||||
|
<h2>Passwort</h2>
|
||||||
|
<hr />
|
||||||
|
<Change Password here>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<h2>Plugin permissions</h2>
|
||||||
|
<hr />
|
||||||
|
{% endblock %}
|
|
@ -10,4 +10,5 @@ urlpatterns = patterns('',
|
||||||
(r'^logout/$', 'django.contrib.auth.views.logout',
|
(r'^logout/$', 'django.contrib.auth.views.logout',
|
||||||
{'template_name': 'registration/logout.html',
|
{'template_name': 'registration/logout.html',
|
||||||
'next_page': '/user/login/'}),
|
'next_page': '/user/login/'}),
|
||||||
|
(r'^settings/$', 'main.views.settings'),
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,3 +17,7 @@ def startpage(request):
|
||||||
|
|
||||||
def register(request):
|
def register(request):
|
||||||
return render_to_response("registration/register.html", RequestContext(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…
Reference in New Issue