75 lines
3.2 KiB
Smarty
Raw Normal View History

2016-11-06 23:38:59 +01:00
<!DOCTYPE html>
<html>
<head>
<title>
2016-11-16 16:52:00 +01:00
Praxisphasenmanager (PPM)
2016-11-06 23:38:59 +01:00
</title>
<meta charset="UTF-8" />
<style type="text/css">
2016-11-07 18:07:44 +01:00
@import url("/style.css");
2016-11-06 23:38:59 +01:00
</style>
</head>
<body>
<h1 id="idSiteHeader" class="clSiteHeader">
2016-11-16 16:52:00 +01:00
<a href="/index" title="Zur&uumlck zur Startseite">Praxisphasenmanager (PPM)</a>
2016-11-06 23:38:59 +01:00
</h1>
2016-11-16 16:52:00 +01:00
2016-11-06 23:38:59 +01:00
<form id="idForm" class="clContent" action="/save/?cat=${data['category']}" method="POST">
<h2 id="idContentHeader" class="clContentHeader">
2016-11-17 00:28:30 +01:00
${data['category']}: Ihre Daten
2016-11-06 23:38:59 +01:00
</h2>
<div id="idContentArea" class="clContentArea">
<input type="hidden" value="${data['id']}" id="id" name="id" />
2016-11-17 00:28:30 +01:00
% if data['category'] != 'Angebote':
% for field in data['content']:
% if field!='id' and field!='Status':
<div class="clFormRow">
<label for="${field}">${field}</label>
<input type="text" value=
% if data['content'][field] != field:
"${data['content'][field]}" id="${field}" name="${field}" />
% else:
"" id="${field}" name="${field}" />
% endif
</div>
% endif
% endfor
% else:
<input type="hidden" value="Angebot" id="Status" name="Status" />
<input type="hidden" value="" id="Zeitraum" name="ZeitraumVon" />
<input type="hidden" value="" id="Zeitraum" name="ZeitraumBis" />
<input type="hidden" value="" id="Student" name="Student" />
2016-11-17 12:36:16 +01:00
<input type="hidden" value="" id="Lehrender" name="Lehrender" />
2016-11-17 00:28:30 +01:00
% for field in data['content']:
% if field!='id' and field!='Status' and field!='ZeitraumVon' and field!='ZeitraumBis' and field!='Lehrender' and field!='Student':
<div class="clFormRow">
<label for="${field}">${field}</label>
% if field!='Firma':
<input type="text" value=
% if data['content'][field] != field:
"${data['content'][field]}" id="${field}" name="${field}" />
% else:
"" id="${field}" name="${field}" />
% endif
% else:
<select name="Firma" form="idForm">
% for option in data['Firmen']:
<option value="${data['Firmen'][option]['Name']}">${data['Firmen'][option]['Name']}</option>
% endfor
</select>
% endif
</div>
% endif
% endfor
% endif
2016-11-06 23:38:59 +01:00
<div id="idButtonArea" class="clButtonArea">
2016-11-16 16:52:00 +01:00
<a href="/index" title="Zur&uumlck zur Startseite">Zur&uumlck zur Startseite</a>
<a href="/category/?cat=${data['category']}" title="Zurueck zur Startseite">Zur&uumlck zur &uumlbersicht</a>
2016-11-06 23:38:59 +01:00
<input type="submit" value="Speichern" />
</div>
</div>
</form>
</body>
</html>