1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-14 15:03:42 +01:00
Radarr/NzbDrone.Web/Views/System/Config.cshtml

30 lines
1014 B
Plaintext
Raw Normal View History

@model IEnumerable<NzbDrone.Core.Repository.Config>
@{ViewBag.Title = "Configuration";}
2011-12-01 06:25:01 +01:00
@(Html.Telerik().Grid<NzbDrone.Core.Repository.Config>()
2011-05-09 06:23:57 +02:00
.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");
2011-05-09 06:23:57 +02:00
})
.Editable(editing => editing.Mode(GridEditMode.InLine))
.Sortable()
)