## -*- coding: utf-8 -*-
<%def name="controls(previous, itself, next)">
<% linkDisabled = not session.has_key('kid') or not session['kid']%>
% if c.disabled == 'disabled':
${h.end_form()}
% if next and next is not '':
${h.button_to(name='weiter',
url=h.url_for(controller=next,
action='index'),
disabled=linkDisabled)}
% endif
${h.button_to(name='editieren',
url=h.url_for(controller=itself,
action='edit'))}
% if previous and previous is not '':
${h.button_to(name=u'zurück',
url=h.url_for(controller=previous,
action='index'))}
% endif
% else:
${h.submit(name='save', value='speichern')}
${h.end_form()}
${h.button_to(name=u'abbrechen',
url=h.url_for(controller=itself,
action='index'))}
% endif
%def>
<%def name="navigation_bar(active)">
<%
pages = [
[u'kartierabschnitt', u'Kartierabschnitt'],
[u'laufentwicklung', u'Laufentwicklung'],
[u'laengsprofil', u'Längsprofil'],
[u'querprofil', u'Querprofil'],
[u'sohlenstruktur', u'Sohlenstruktur'],
[u'uferstruktur', u'Uferstruktur'],
[u'gewaesserumfeld', u'Gewässerumfeld'],
]
%>
<% linkDisabled = not session.has_key('kid') or not session['kid']%>
% for page in pages:
% if active.lower() == page[0].lower():
${h.button_to(name=page[1],
url=h.url_for(controller=page[0],
action='index'),
class_='plain-button')}
% else:
% if not c.disabled:
% if not linkDisabled:
${page[1]}
% else:
${h.button_to(name=page[1],
url=h.url_for(controller=page[0],
action='index'),
class_='plain-button-pointer',
disabled=True)}
% endif
% else:
${h.button_to(name=page[1],
url=h.url_for(controller=page[0],
action='index'),
class_='plain-button-pointer',
disabled=linkDisabled)}
% endif
% endif
% endfor
%def>
<%def name="errors()">
% if c.form_errors:
% endif
%def>
Fließgewässerstrukturgütekartierung
Mecklenburg-Vorpommern, ${self.title()}
${self.errors()}
${self.body()}