Hello Anthony, my eintrag_erstellen is a html view:
------------------------------------------
{{extend 'layout.html'}}
{{block header}}
<link rel="stylesheet" href="{{=URL('static','css/style.css')}}"/>
{{end}}
<h2>
Erstelle einen neuen Beitrag über das Thema {{=category.name.title()}}
</h2>
</br>
{{=form}}
------------------------------------------
I gain access this way:
1. I click this button in another view:
------------------------------------------
<a href = "erstellen"><button type="button">Neuer Eintrag</button></a>
------------------------------------------
which leads me to this:
------------------------------------------
def erstellen():
rows = db(db.category).select()
form = SQLFORM(db.eintrag).process(next='eintrag_betrachten/[id]')
return locals()
------------------------------------------
and this view:
------------------------------------------
{{extend 'layout.html'}}
{{block header}}
<link rel="stylesheet" href="{{=URL('static','css/style.css')}}"/>
{{end}}
<div class ="anreg">
<a href="{{=URL('eis.html')}}">Profil</a> | <a
href="user/logout">Ausloggen</a> | <a
href="{{=URL('beenden.html')}}">Mitgliedschaft beenden</a>
</div>
<h1>
Eintrag erstellen
</h1>
{{for category in rows:}}
<div class="erstellenErstellen">
{{=A(category.name.title(),_class='btn',_href=URL('eintrag_erstellen',args=category.name))}}
</div>
{{pass}}
------------------------------------------
There all my categories got listed in a single button. When I click on one
of them, I gain acces to my eintrag_erstellen view
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.