## -*- 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 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(): % else: % if not c.disabled: % if not linkDisabled: % else: % endif % else: % endif % endif % endfor <%def name="errors()">
% if c.form_errors:
Fehler % for error in c.form_errors.keys(): % endfor
${c.error_labels[error]}:
% endif
Fließgewässerstrukturgütekartierung Mecklenburg-Vorpommern, ${self.title()}

${self.title()}

${self.errors()} ${self.body()}