else:
state = "Your username and/or password were incorrect."
- return render_to_response('login-view.html',{'state':state, 'username': username},
+ return render_to_response('view-login.html',{'state':state, 'username': username},
context_instance=RequestContext(request))
# compute an 'optionstr' from the set of available settings/options as a json string
# that gets passed to jquery somehow
# see the bottom of
- result = render_to_string ('render_plugin.html',
+ result = render_to_string ('plugin-wrap.html',
{'uuid':uuid, 'title':title,
'visible':self.is_visible(),
'hidable':self.is_hidable(),
hard_wired_slice_names.append ("ple.%s.%s"%(site,slice))
def fake_slice_view (request, name=None):
- result=render_to_response('slice-view.html',
+ result=render_to_response('view-slice.html',
{'foo':'var_foo_set_in_view',
'name':name,
'slices': hard_wired_slice_names,
context_instance=RequestContext(request))
def scroll_view (request):
- return render_to_response ('scroll-view.html',
+ return render_to_response ('view-scroll.html',
{ 'lorem':lorem,
'menu_items': menu_items('scroll'),
},
<div id='header'>
{% block header %}
<a id='menu_logo' href="/"><img class="logo" src="{{ STATIC_URL }}img/myslice-logo.png" alt="MySlice" /></a>
- {% include 'mymenu-widget.html' %}
+ {% include 'widget-topmenu.html' %}
{% endblock header %}
</div>
-{% extends 'myslice-layout.html' %}
+{% extends 'layout-myslice.html' %}
{% block content_related %}
<p class='login-status'> {{ state }} </p>
-<code>Current exp. login is based on hard-wired users</code>
<a href="/" alt="Home"><img class="logo" src="{{ STATIC_URL }}img/myslice-logo.png" alt="MySlice" /></a>
<form action="/login/" method="post">
{% csrf_token %}
<input type="submit" value="Log In" />
</form>
{% endblock content_related %}
+
+{% block content_main %}
+<code>
+This page is currently not connected to any useful authentication system, but instead, as a proof of concept, it uses a set of hardwired user accounts, see auth/backend.py for more details.
+</code>
+
+{% endblock content_main %}
-{% extends 'myslice-layout.html' %}
+{% extends 'layout-myslice.html' %}
{% block content_main %}
-{% extends 'myslice-layout.html' %}
+{% extends 'layout-myslice.html' %}
{% block content_main %}
<p>The URL variable name= {{ name }} </p>
-{% extends 'myslice-layout.html' %}
+{% extends 'layout-myslice.html' %}
{% block content_main %}