init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,92 @@
|
|||
@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";
|
||||
}
|
||||
|
||||
<style>
|
||||
.containerPaddingLeftZero {
|
||||
padding-left: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
var ElerhetosegekModositasHelper = (function () {
|
||||
var elerhetosegekModositasHelper = function () { };
|
||||
|
||||
elerhetosegekModositasHelper.setAlapertelmezettLabelTitle = function () {
|
||||
$("#ElerhetosegekMegjeleniteseForm").find("label.k-radio-label").attr("title", "Alapértelmezett");
|
||||
}
|
||||
|
||||
return elerhetosegekModositasHelper;
|
||||
})();
|
||||
</script>
|
||||
|
||||
@using (Html.KretaForm(formName))
|
||||
{
|
||||
@Html.KretaValidationSummary()
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6" id="EmailTable">
|
||||
<div class="row">
|
||||
<h4>@AdminisztracioResource.Email</h4>
|
||||
</div>
|
||||
@foreach (var email in Model.Email)
|
||||
{
|
||||
var tooltipResource = email.IsPublic ? AdminisztracioResource.PublikusEmailToolTip : string.Empty;
|
||||
var textBoxId = emailCimTextBoxName + email.Id;
|
||||
<div class="row">
|
||||
<div class="col-sm-10 containerPaddingLeftZero">
|
||||
@Html.KretaTextBox(textBoxId, htmlAttributes: new Dictionary<string, object> { { "data-labelmsg", email.Label }}).Enable(false).Value(email.EmailCim_Input).RenderWithName(tooltipResource: tooltipResource, customClass: "containerPaddingLeftZero")
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
@if (!email.IsPublic)
|
||||
{
|
||||
@Html.KretaRadioButton(emailAlapertelmezettRadioName + email.Id, string.Empty, email.Alapertelmezett, htmlAttributes: new Dictionary<string, object> { { "name", emailAlapertelmezettRadioGroupName }}).Enable(false)
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="col-sm-6" id="TelefonTable">
|
||||
<div class="row">
|
||||
<h4>@AdminisztracioResource.Telefonszam</h4>
|
||||
</div>
|
||||
@foreach (var telefon in Model.Telefon)
|
||||
{
|
||||
var tooltipResource = telefon.IsPublic ? AdminisztracioResource.PublikusTelefonszamTooltip : string.Empty;
|
||||
var textBoxId = telefonszamTextBoxName + telefon.Id;
|
||||
<div class="row">
|
||||
<div class="col-sm-10 containerPaddingLeftZero">
|
||||
@Html.KretaTextBox(textBoxId, htmlAttributes: new Dictionary<string, object> { { "data-labelmsg", telefon.Label } }).Enable(false).Value(telefon.Telefonszam).RenderWithName(tooltipResource: tooltipResource, customClass: "containerPaddingLeftZero")
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
@if (!telefon.IsPublic)
|
||||
{
|
||||
@Html.KretaRadioButton(telefonAlapertelmezettRadioName + telefon.Id, string.Empty, telefon.Alapertelmezett, htmlAttributes: new Dictionary<string, object> { { "name", telefonAlapertelmezettRadioGroupName }}).Enable(false)
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
ElerhetosegekModositasHelper.setAlapertelmezettLabelTitle();
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue