## Copyright 2010, Intevation GmbH, Germany, ## ## This file is part of FGSK. ## ## FGSK is free software: you can redistribute it and/or modify it under ## the terms of the GNU General Public License as published by the ## Free Software Foundation, either version 2 of the License, or (at your ## option) any later version. ## ## FGSK is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public ## License for more details. ## ## You should have received a copy of the GNU General Public ## License along with FGSK. If not, see . ## ## FGSK has been developed on behalf of the ## Landesamt fuer Umwelt und Geologie Mecklenburg Vorpommern (LUNG-MV) ## by Intevation GmbH. ## biota Institut fuer oekologische Forschung und Planung GmbH has provided ## the functional background. ## ## Authors: ## Tim Englich ## Ingo Weinzierl <%inherit file="/base.html" /> <%def name="multi(name, options, multi_line=True, clazz=None, disabled=None)"> % for i in range(len(options)): % if not disabled: <% disabled = c.disabled %> % endif % if disabled is None or disabled == '': ${h.checkbox(name, id='%s_%s' % (name, options[i][0]), value=options[i][0], checked=False, label=options[i][2], class_=clazz)} % else: ${h.checkbox(name, id='%s_%s' % (name, options[i][0]), value=options[i][0], checked=False, label=options[i][2], disabled='disabled', class_=clazz)} % endif % if multi_line:
% endif % endfor <%def name="right_single(name, options, multi_line=True, descriptions=True)"> % for i in range(len(options)): % if descriptions: ${options[i][2]} % else:   % endif % if c.disabled is None or c.disabled == '': ${h.radio(name, value=options[i][0], checked=False)} % else: ${h.radio(name, value=options[i][0], checked=False, disabled='disabled')} % endif % if multi_line:
% endif % endfor <%def name="single(name, options, multi_line=True, descriptions=True, clazz=None, display_value=False)"> % for i in range(len(options)): % if c.disabled is None or c.disabled == '': ${h.radio(name, value=options[i][0], checked=False, class_=clazz)} % else: ${h.radio(name, value=options[i][0], checked=False, class_=clazz, disabled='disabled')} % endif % if descriptions: % if display_value: ${options[i][0]} - ${options[i][2]} % else: ${options[i][2]} % endif % else:   % endif % if multi_line:
% endif % endfor <%def name="select(name, selected, options)"> <% opts = [] for opt in options: opts.append([opt[0],opt[2]]) %> % if c.disabled is None or c.disabled == '': ${h.select(name, selected, opts, class_="select")} % else: ${h.select(name, selected, opts, class_="select", disabled=c.disabled)} % endif <%def name="textarea(name, clazz=None)"> <% if not clazz: clazz = 'textarea' %> % if c.disabled is None or c.disabled == '': ${h.textarea('erlaeuterung', class_=clazz)} % else: ${h.textarea('erlaeuterung', class_=clazz, disabled=c.disabled)} % endif <%def name="anzahl(names, multi_line=True, postfix=None, labels=True, labels_above=False)"> % if names is not None: % if multi_line:
% for name in names:
<% n = name[1] if postfix: n = '%s_%s' % (n, postfix) %> % if name[1] == 'keine' or name[1] == 'nicht_einschaetzbar': ${h.checkbox(n, value='1', disabled=c.disabled, class_='anzahl-keine')} % else: ${h.text(n, class_="numbers", disabled=c.disabled)} % endif % if labels: ${name[2]} % endif
% endfor
% else:
% if labels_above and labels:
% for name in names:
${name[2]}
% endfor
% endif
% for name in names:
<% n = name[1] if postfix: n = '%s_%s' % (n, postfix) %> % if name[1] == 'keine' or name[1] == 'nicht_einschaetzbar': ${h.checkbox(n, value='1', disabled=c.disabled ,title=name[3])} % else: ${h.text(n, class_="numbers", disabled=c.disabled,title=name[3])} % endif
% endfor
% if not labels_above and labels:
% for name in names:
${name[2]}
% endfor
% endif
% endif % endif <%def name="stammdaten()">
Stammdaten des Kartierabschnitts
Gewässername: ${c.ka.gewaesser.gewaesser_name} Stationierung: ${c.ka.stationierung_von}  - ${c.ka.stationierung_bis}
Gewässerabschnitt: ${c.ka.gewaesser_abschnitt} Wasserkörper: ${c.wasserkoerper}