@@ -38,31 +38,26 @@ <h2 class="modal-header-title">
38
38
39
39
< div ng-include src = "'shareLinkOptions.html'" > </ div >
40
40
41
- < div class = "gf-form-group position-center " >
42
- < div class = "gf-form width-30" >
41
+ < div class = "gf-form-group section " >
42
+ < div class = "gf-form width-30" >
43
43
< textarea rows = "5" data-share-panel-url class = "gf-form-input width-30" ng-model = 'iframeHtml' > </ textarea >
44
44
</ div >
45
45
< / d i v >
46
- < div class = "gf-form-group" >
47
- < div class = "gf-form position-center" >
48
- < button class = "btn btn-inverse" data-clipboard-text = "{{iframeHtml}}" clipboard-button > < i class = "fa fa-clipboard" > </ i > Copy</ button >
49
- </ div >
50
- </ div >
51
46
</ script >
52
47
53
48
< script type ="text/ng-template " id ="shareLinkOptions.html ">
54
- < div class = "gf-form-group position-center " >
55
- < div class = "gf-form" >
56
- < span class = "gf-form-label width-5" > Include </ span >
57
- < editor-checkbox text = "Current time range" model = " options.forCurrent" change = "buildUrl()" > </ editor-checkbox >
58
- </ div >
59
- < div class = "gf-form" >
60
- < span class = "gf-form-label width-5" > Include </ span >
61
- < editor-checkbox text = "Template variables" model = " options.includeTemplateVars" change = "buildUrl()" > </ editor-checkbox >
62
- </ div >
49
+ < div class = "gf-form-group section " >
50
+ < gf-form-switch class = "gf-form"
51
+ label = "Current time range" label- class= "width-12" switch-class = "max- width-6"
52
+ checked = " options.forCurrent" on- change= "buildUrl()" >
53
+ </ gf-form-switch >
54
+ < gf-form-switch class = "gf-form"
55
+ label = "Template variables" label- class= "width-12" switch-class = "max- width-6"
56
+ checked = " options.includeTemplateVars" on- change= "buildUrl()" >
57
+ </ gf-form-switch >
63
58
< div class = "gf-form" >
64
- < span class = "gf-form-label width-5 " > Theme</ span >
65
- < div class = "gf-form-select-wrapper max- width-10 " >
59
+ < span class = "gf-form-label width-12 " > Theme</ span >
60
+ < div class = "gf-form-select-wrapper width-6 " >
66
61
< select class = "gf-form-input" ng-model = "options.theme" ng-options = "f as f for f in ['current', 'dark', 'light']" ng-change = "buildUrl()" > </ select >
67
62
</ div >
68
63
</ div >
@@ -75,18 +70,19 @@ <h2 class="modal-header-title">
75
70
</ div >
76
71
77
72
< div ng - include src = "'shareLinkOptions.html'" > < / div >
78
- < div class = "gf-form-group position-center" >
79
- < div class = "gf-form-inline" >
80
-
81
- < div class = "gf-form width-30" >
82
- < input type = "text" data-share-panel-url class = "gf-form-input" ng-model = "shareUrl" > </ input >
83
- </ div >
84
- < div class = "gf-form pull-right" >
85
- < button class = "btn btn-inverse pull-right" data-clipboard-text = "{{shareUrl}}" clipboard-button > < i class = "fa fa-clipboard" > </ i > Copy</ button >
73
+ < div >
74
+ < div class = "gf-form-group section" >
75
+ < div class = "gf-form-inline" >
76
+ < div class = "gf-form width-30" >
77
+ < input type = "text" data-share-panel-url class = "gf-form-input" ng-model = "shareUrl" > </ input >
78
+ </ div >
79
+ < div class = "gf-form pull-right" >
80
+ < button class = "btn btn-inverse pull-right" data-clipboard-text = "{{shareUrl}}" clipboard-button > < i class = "fa fa-clipboard" > </ i > Copy</ button >
81
+ </ div >
86
82
</ div >
87
83
</ div >
88
84
</ div >
89
- < div class = "gf-form position-center " ng-show = "modeSharePanel" >
85
+ < div class = "gf-form section " ng-show = "modeSharePanel" >
90
86
< a href = "{{imageUrl}}" target = "_blank" > < i class = "fa fa-camera" > </ i > Direct link rendered image</ a >
91
87
</ div >
92
88
</ script >
@@ -117,7 +113,7 @@ <h2 class="modal-header-title">
117
113
</ p >
118
114
</ div >
119
115
120
- < div class = "gf-form-group share-modal-options position-center " >
116
+ < div class = "gf-form-group share-modal-options" >
121
117
< div class = "gf-form" ng-if = "step === 1" >
122
118
< span class = "gf-form-label width-12" > Snapshot name</ span >
123
119
< input type = "text" ng-model = "snapshot.name" class = "gf-form-input max-width-15" >
0 commit comments