Merge branch 'Jeavon-U4-4641' into temp-U4-4641
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
angular.module("umbraco").controller('Umbraco.Dialogs.Template.SnippetController',
|
||||
function($scope, $http, dialogService) {
|
||||
$scope.type = $scope.dialogOptions.type;
|
||||
$scope.section = {};
|
||||
$scope.section.name = "";
|
||||
$scope.section.required = false;
|
||||
});
|
||||
@@ -0,0 +1,39 @@
|
||||
<form novalidate name="contentForm"
|
||||
ng-controller="Umbraco.Dialogs.Template.SnippetController"
|
||||
ng-submit="close()"
|
||||
val-form-manager>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
||||
<div class="umb-panel">
|
||||
|
||||
<div class="umb-panel-header">
|
||||
<h1 class="headline" style="margin: 10px 0 0 0">Configure the section</h1>
|
||||
</div>
|
||||
|
||||
<div class="umb-panel-body with-footer umb-querybuilder">
|
||||
<label>
|
||||
Section name:
|
||||
<input type="text" ng-model="section.name" />
|
||||
</label>
|
||||
<label ng-show="type === 'rendersection'">
|
||||
Required?
|
||||
<input type="checkbox" ng-checked="section.required" ng-model="section.required" />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="umb-panel-footer" >
|
||||
<div class="umb-el-wrap umb-panel-buttons">
|
||||
<div class="btn-toolbar umb-btn-toolbar pull-right">
|
||||
<a href ng-click="close()" class="btn btn-link">
|
||||
<localize key="general_close">Close</localize>
|
||||
</a>
|
||||
|
||||
<a href ng-click="submit(section)" class="btn btn-primary">Insert</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
Reference in New Issue
Block a user