@using Kreta.Web.Areas.Adminisztracio.Models; @using Kreta.Web.Security; @model ElerhetosegekModel @{ var formName = "ElerhetosegekMegjeleniteseForm"; var emailCimTextBoxName = "EmailCimTxt_"; var emailAlapertelmezettRadioName = "EmailCimRdo_"; var emailAlapertelmezettRadioGroupName = "AlapertelmezettEmailGroup"; var telefonszamTextBoxName = "TelefonszamTxt_"; var telefonAlapertelmezettRadioName = "TelefonRdo_"; var telefonAlapertelmezettRadioGroupName = "AlapertelmezettTelefonGroup"; } @using (Html.KretaForm(formName)) { @Html.KretaValidationSummary()

@AdminisztracioResource.Email

@foreach (var email in Model.Email) { var tooltipResource = email.IsPublic ? AdminisztracioResource.PublikusEmailToolTip : string.Empty; var textBoxId = emailCimTextBoxName + email.Id;
@Html.KretaTextBox(textBoxId, htmlAttributes: new Dictionary { { "data-labelmsg", email.Label }}).Enable(false).Value(email.EmailCim_Input).RenderWithName(tooltipResource: tooltipResource, customClass: "containerPaddingLeftZero")
@if (!email.IsPublic) { @Html.KretaRadioButton(emailAlapertelmezettRadioName + email.Id, string.Empty, email.Alapertelmezett, htmlAttributes: new Dictionary { { "name", emailAlapertelmezettRadioGroupName }}).Enable(false) }
}

@AdminisztracioResource.Telefonszam

@foreach (var telefon in Model.Telefon) { var tooltipResource = telefon.IsPublic ? AdminisztracioResource.PublikusTelefonszamTooltip : string.Empty; var textBoxId = telefonszamTextBoxName + telefon.Id;
@Html.KretaTextBox(textBoxId, htmlAttributes: new Dictionary { { "data-labelmsg", telefon.Label } }).Enable(false).Value(telefon.Telefonszam).RenderWithName(tooltipResource: tooltipResource, customClass: "containerPaddingLeftZero")
@if (!telefon.IsPublic) { @Html.KretaRadioButton(telefonAlapertelmezettRadioName + telefon.Id, string.Empty, telefon.Alapertelmezett, htmlAttributes: new Dictionary { { "name", telefonAlapertelmezettRadioGroupName }}).Enable(false) }
}
}