58 lines
2.5 KiB
Smarty
Raw Normal View History

2016-12-14 12:45:42 +01:00
<h2 id="idContentHeader" class="clContentHeader">
#context['category']#: Ihre Daten
</h2>
<form id="idForm" class="clContent" method="POST">
<div id="idContentArea" class="clContentArea">
<input type="hidden" value="#context['id']#" id="id" name="id" />
@if context['category'] != 'Angebote'@
@for field in context['content']@
@if field!='id' && field!='Status'@
<div class="clFormRow">
<label for="#field#">#field#</label>
<input type="text" value=
@if context['content'][field] != field@
"#context['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" />
<input type="hidden" value="" id="Lehrender" name="Lehrender" />
@for field in context['content']@
@if field!='id' && field!='Status' && field!='ZeitraumVon' && field!='ZeitraumBis' && field!='Lehrender' && field!='Student'@
<div class="clFormRow">
<label for="#field#">#field#</label>
@if field!='Firma'@
<input type="text" value=
@if context['content'][field] != field@
"#context['content'][field]#" id="#field#" name="#field#" />
@else@
"" id="#field#" name="#field#" />
@endif@
@else@
<select name="Firma" form="idForm">
@for option in context['Firmen']@
<option value="#context['Firmen'][option]['Name']#">#context['Firmen'][option]['Name']#</option>
@endfor@
</select>
@endif@
</div>
@endif@
@endfor@
@endif@
</div>
<div id="idButtonArea" class="clButtonArea">
<a data-action="index" title="Zur&uumlck zur Startseite">Zur&uumlck zur Startseite</a>
<a data-action="category#context['category']#" title="Zurueck zur &uumlbersicht">Zur&uumlck zur &uumlbersicht</a>
2016-12-14 22:32:35 +01:00
<a data-action="saveCategory#context['category']#" title="Speichern">Speichern</a>
2016-12-14 12:45:42 +01:00
</div>
</form>