@model SectionView @{ var contact = Model.Section; var edit = Model.EditMode; }
@contact.Kicker

@contact.TitleHighlight

@foreach (var box in contact.InfoBoxes) {

@box.Title

@if (string.IsNullOrWhiteSpace(box.LinkUrl) && !edit) { @box.Text } else if (!edit) { @box.Text } else { @box.Text }

@if (edit) { }
} @if (edit) { }
@* Das Formular selbst ist Funktionalitaet und bleibt fest im Code; nur die Einleitung darueber kommt aus dem Inhalt. *@
@* Zeilenumbrueche im Text werden als
gerendert. *@

@{ var headingLines = contact.FormHeading.Replace("\r\n", "\n").Split('\n'); } @for (var i = 0; i < headingLines.Length; i++) { if (i > 0) {
} @headingLines[i] }

Name (Pflichtfeld)

E-Mail (Pflichtfeld)

Telefon (optional)

Betreff (Pflichtfeld)

Nachricht