mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
3d961654d8
removed telerik script/css registrar
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
@model IEnumerable<NzbDrone.Core.Repository.Config>
|
|
@section TitleContent{
|
|
Configuration
|
|
}
|
|
@section MainContent{
|
|
@(Html.Telerik().Grid<NzbDrone.Core.Repository.Config>()
|
|
.Name("Grid")
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
.DataKeys(keys =>
|
|
{
|
|
keys.Add(p => p.Key);
|
|
})
|
|
.ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image))
|
|
.DataBinding(dataBinding =>
|
|
{
|
|
dataBinding.Ajax()
|
|
.Select("_SelectAjaxEditing", "System")
|
|
.Insert("_InsertAjaxEditing", "System")
|
|
.Update("_SaveAjaxEditing", "System");
|
|
})
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(p => p.Key);
|
|
columns.Bound(p => p.Value);
|
|
columns.Command(commands =>
|
|
{
|
|
commands.Edit().ButtonType(GridButtonType.Image);
|
|
}).Width(90).Title("Actions");
|
|
})
|
|
.Editable(editing => editing.Mode(GridEditMode.InLine))
|
|
.Sortable()
|
|
)
|
|
}
|