init
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
@using Kreta.Web.Areas.Tantargy.Models
|
||||
@model TanmenetOrakModel
|
||||
|
||||
<div style="height: 0 !important;">
|
||||
@*A formra be van állítva css szinten, hogy height: 100%, ami jó is az esetek 99%-ában, de itt pont nem...*@
|
||||
@using (Html.KretaForm("TanmenetOrakGridForm"))
|
||||
{
|
||||
@Html.HiddenFor(x => x.OsztalyId)
|
||||
@Html.HiddenFor(x => x.TantargyId)
|
||||
@Html.HiddenFor(x => x.FoglalkozasId)
|
||||
@Html.HiddenFor(x => x.TanmenetModalHeader)
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="k-content">
|
||||
@(
|
||||
Html.KretaGrid<TanmenetOrakGridModel>
|
||||
(
|
||||
"TanmenetOraiGrid",
|
||||
new GridApiUrl(Model.ApiControllerName, "GetTanmenetOrak", new Dictionary<string, string>
|
||||
{
|
||||
{ "foglalkozasID", Model.FoglalkozasId.ToString() },
|
||||
{ "OsztalyID", Model.OsztalyId.ToString() },
|
||||
{ "TantargyID", Model.TantargyId.ToString() }
|
||||
}),
|
||||
allowSorting: false,
|
||||
allowPaging: false,
|
||||
pageSizes: null,
|
||||
showSorszam: false
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Oraszam).Width("10%");
|
||||
})
|
||||
.TextBoxForColumn(Html, TanmenetResource.Tema, m => m.Tema, new Dictionary<string, object> { { "maxlength", 995 } })
|
||||
.FunctionCommand(Html, new List<FunctionCommand>
|
||||
{
|
||||
new FunctionCommand { Name = TanmenetResource.OsszesTemaTorlese, ClientAction="TanmenetHelper.osszesTemaTorles" }
|
||||
})
|
||||
.Editable()
|
||||
)
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var gridName = "TanmenetOraiGrid"
|
||||
$('#' + gridName).find('.k-textbox').keypress(function (e) {
|
||||
if (e.which == 13) {
|
||||
TanmenetHelper.enterPressed(e);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user