kreta/KretaWeb/Views/Shared/EgyHaztartasbanLevokRow.cshtml
2024-03-13 00:33:46 +01:00

32 lines
No EOL
2.7 KiB
Text

@using Kreta.Web.Models;
@using Kreta.Web.Helpers;
@using Kreta.Resources;
@model EgyhaztartasbanElokRowModel
<div class="container-fluid details">
<div class="rowNumber"></div>
<div>
@Html.Hidden("ID_new" + Model.RowNumber, Model.ID)
<div class="row" style="width: 101%; float: left;">
@Html.KretaTextBox("Nev_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.Nev } }).Value(Model.Nev).RenderWithName(1, 2)
@Html.KretaTextBox("AnyjaNev_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.AnyjaNeve } }).Value(Model.AnyjaNev).RenderWithName(1, 2)
@Html.KretaTextBox("SzuletesiHely_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.SzuletesiHely } }).Value(Model.SzuletesiHely).RenderWithName(1, 2)
@Html.KretaDatePicker("SzuletesiIdo_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.SzuletesiIdo } }).Value(Model.SzuletesiIdo).Max(DateTime.Now).RenderWithName(1, 2)
</div>
<div class="row" style="width: 101%; float: left;">
@Html.KretaComboBox("RokonsagiFok_new" + Model.RowNumber, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetRokonsagiFokList" }), htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.RokonsagiFok } }).Value(Model.RokonsagiFok.ToString()).AutoBind(true).RenderWithName(1, 2)
@Html.KretaTextBox("Taj_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.TAJszam } }).Value(Model.Taj).RenderWithName(1, 2)
@Html.KretaTextBox("Telefon_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.Telefonszam } }).Value(Model.Telefon).RenderWithName(1, 2)
@Html.KretaTextBox("Email_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.EmailCim } }).Value(Model.Email).RenderWithName(1, 2)
</div>
<div style="float: right; width:15px;">
@Html.KretaButton("DeleteBtn_new" + Model.RowNumber, null, "button", true, null, "", null, null, "EgyHaztartasbanLevokHelper.deleteRow")
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#DeleteBtn_new" + '@Model.RowNumber').css({ 'background': 'none', 'color': '#5c6a79', 'padding-top': '8px' }).append('<span class="fa fa-2x fa-trash"></span>');
});
</script>