-
Notifications
You must be signed in to change notification settings - Fork 68
/
Designer.cshtml
64 lines (52 loc) · 3.51 KB
/
Designer.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@model Telerik.Sitefinity.Frontend.Mvc.Models.IGridDesignerModel
@using Telerik.Sitefinity.Frontend.Mvc.Helpers
<div class="sf-backend-wrp">
<div class="grid-designer" modal dialog-controller="GridDialogCtrl" template-url="dialog-template" auto-open="true" window-class="sf-designer-dlg sf-backend-wrp">
<server-data update-service-url="@Model.GridUpdateServiceUrl" control-id='@Model.ControlId'></server-data>
<script type="text/ng-template" id="dialog-template">
<div class="modal-header sf-widget-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="cancel($event)"><i class=" fa fa-times"></i></button>
<h3 class="modal-title">@Html.HtmlSanitize(Model.GridTitle)</h3>
</div>
<div class="modal-body">
<sf-loading ng-show="feedback.showLoadingIndicator"></sf-loading>
<div ng-show="feedback.showError" class="alert alert-danger">
<a class="close" data-dismiss="alert" ng-click="hideError()"><i class="fa fa-times"></i></a>
<strong>@Html.Resource("Error")</strong> <span ng-bind="feedback.errorMessage"></span>
</div>
<uib-tabset class="nav-tabs-wrapper">
<uib-tab heading="@Html.Resource("Classes")">
<h3>
@Html.Resource("Classes")
</h3>
<div data-ng-repeat="item in gridElements" class="form-group">
<label for="prop-{{item.name}}" ng-bind="item.name"></label>
<input id="prop-{{item.css}}" type="text" class="form-control" ng-model="item.css"/>
</div>
</uib-tab>
<uib-tab heading="@Html.Resource("Labels")">
<h3>
@Html.Resource("Labels")
</h3>
<p class="description-note">@Html.Resource("LabelForYourConvenienceOnly")</p>
<div data-ng-repeat="item in gridElements|filter:{isPlaceholder:true}" class="form-group">
<label for="prop-{{item.name}}" ng-bind="item.name"></label>
<input id="prop-{{item.label}}" type="text" class="form-control" ng-model="item.label"/>
</div>
</uib-tab>
</uib-tabset>
</div>
<div class="modal-footer" ng-show="!feedback.showLoadingIndicator">
<button class="btn btn-primary pull-left" ng-click="save()">@Html.Resource("Save")</button>
<a class="btn btn-link pull-left" data-dismiss="modal" ng-click="cancel()">@Html.Resource("Cancel")</a>
</div>
</script>
</div>
</div>
@ASP.PartialExtensions.Partial(Html, "ServerContext", new Telerik.Sitefinity.Frontend.Mvc.Models.ServerContext())
@Html.StyleSheet(Url.WidgetContent("assets/dist/css/sitefinity-backend.min.css"))
@Html.Script(Url.WidgetContent("Resources/ServerContext.js"))
@Html.Script(Url.WidgetContent("Mvc/Scripts/server-data.js"))
@Html.Script(Url.WidgetContent("Mvc/Scripts/Designer/modal-dialog.js"))
@Html.Script(Url.WidgetContent("Mvc/Scripts/Designer/grid-designer.js"))
@Html.Script(Url.WidgetContent("Mvc/Scripts/Bootstrap/js/bootstrap.min.js"))