2013-02-13 15:24:32 -06:00
< div class = "modal-body" >
2013-07-23 12:10:00 -05:00
< div class = "pull-right editor-title" > Dashboard settings< / div >
< div ng-model = "editor.index" bs-tabs >
2013-08-16 17:17:57 -05:00
< div ng-repeat = "tab in ['General','Index','Rows']" data-title = "{{tab}}" >
2013-07-23 12:10:00 -05:00
< / div >
< / div >
< div class = "row-fluid" ng-show = "editor.index == 0" >
< div class = "span4" >
2013-07-10 12:22:01 -05:00
< label class = "small" > Title< / label > < input type = "text" class = "input-large" ng-model = 'dashboard.current.title' > < / input >
2013-02-13 15:24:32 -06:00
< / div >
< div class = "span1" >
2013-07-10 12:22:01 -05:00
< label class = "small" > Editable < / label > < input type = "checkbox" ng-model = "dashboard.current.editable" ng-checked = "dashboard.current.editable" / >
2013-02-13 15:24:32 -06:00
< / div >
2013-08-01 00:08:00 -05:00
< div class = "span3" >
< label class = "small" > Style< / label > < select class = "input-small" ng-model = "dashboard.current.style" ng-options = 'f for f in ["dark","light"]' > < / select >
< / div >
2013-02-13 15:24:32 -06:00
< / div >
2013-07-23 12:10:00 -05:00
< div class = "row-fluid" ng-show = "editor.index == 1" >
2013-07-14 18:15:20 -05:00
< h4 > Index Settings< / h4 >
< div ng-show = "dashboard.current.index.interval != 'none'" class = "row-fluid" >
< div class = "span12" >
< p class = "small" >
Time stamped indices use your selected time range to create a list of
indices that match a specified timestamp pattern. This can be very
efficient for some data sets (eg, logs) For example, to match the
default logstash index pattern you might use
< code > [logstash-]YYYY.MM.DD< / code > . The [] in "[logstash-]" are
important as they instruct Kibana not to treat those letters as a
pattern.
2013-08-14 18:29:22 -05:00
Please also note that indices should rollover at midnight < strong > UTC< / strong > .
2013-07-14 18:15:20 -05:00
< / p >
< p class = "small" >
See < a href = "http://momentjs.com/docs/#/displaying/format/" > http://momentjs.com/docs/#/displaying/format/< / a >
for documentation on date formatting.
< / p >
< / div >
< / div >
< div class = "row-fluid" >
2013-08-21 17:56:20 -05:00
< div class = "span2" >
2013-07-14 18:15:20 -05:00
< h6 > Timestamping< / h6 > < select class = "input-small" ng-model = "dashboard.current.index.interval" ng-options = 'f for f in ["none","hour","day","week","month","year"]' > < / select >
< / div >
2013-08-21 17:56:20 -05:00
< div class = "span4" ng-show = "dashboard.current.index.interval != 'none'" >
2013-07-15 12:52:57 -05:00
< h6 > Index pattern < small > Absolutes in []< / small > < / h6 >
2013-07-14 18:15:20 -05:00
< input type = "text" class = "input-medium" ng-model = "dashboard.current.index.pattern" >
< / div >
2013-08-21 17:56:20 -05:00
< div class = "span2" ng-show = "dashboard.current.index.interval != 'none'" >
< h6 > Failover < i class = "icon-question-sign" bs-tooltip = "'If no indices match the pattern, failover to default index *NOT RECOMMENDED*'" > < / i > < / h6 >
< input type = "checkbox" ng-model = "dashboard.current.failover" ng-checked = "dashboard.current.failover" / >
< / div >
< div class = "span4" ng-show = "dashboard.current.failover || dashboard.current.index.interval == 'none'" >
2013-07-15 12:52:57 -05:00
< h6 > Default Index < small ng-show = "dashboard.current.index.interval != 'none'" > If index not found< / small > < / h6 >
2013-07-14 18:15:20 -05:00
< input type = "text" class = "input-medium" ng-model = "dashboard.current.index.default" >
< / div >
< / div >
< / div >
2013-07-23 12:10:00 -05:00
< div class = "row-fluid" ng-show = "editor.index == 2" >
2013-02-13 15:24:32 -06:00
< div class = "span12" >
< table class = "table table-condensed table-striped" >
< thead >
< th > Title< / th >
< th > Delete< / th >
< th > Move< / th >
< / thead >
2013-07-10 12:22:01 -05:00
< tr ng-repeat = "row in dashboard.current.rows" >
2013-02-13 15:24:32 -06:00
< td > {{row.title}}< / td >
2013-07-10 12:22:01 -05:00
< td > < i ng-click = "dashboard.current.rows = _.without(dashboard.current.rows,row)" class = "pointer icon-remove" > < / i > < / td >
< td > < i ng-click = "_.move(dashboard.current.rows,$index,$index-1)" ng-hide = "$first" class = "pointer icon-arrow-up" > < / i > < / td >
< td > < i ng-click = "_.move(dashboard.current.rows,$index,$index+1)" ng-hide = "$last" class = "pointer icon-arrow-down" > < / i > < / td >
2013-02-13 15:24:32 -06:00
< / tr >
< / table >
< / div >
< / div >
2013-08-01 00:08:00 -05:00
< div class = "row-fluid" ng-show = "editor.index == 2" >
< form >
< div class = "span5" >
< label class = "small" > Title< / label >
< input type = "text" class = "input-large" ng-model = 'row.title' placeholder = "New row" > < / input >
< / div >
< div class = "span2" >
< label class = "small" > Height< / label >
< input type = "text" class = "input-mini" ng-model = 'row.height' > < / input >
< / div >
< div class = "span1" >
< label class = "small" > Editable < / label >
< input type = "checkbox" ng-model = "row.editable" ng-checked = "row.editable" / >
< / div >
< / form >
< / div >
2013-08-16 14:45:22 -05:00
<!-- <div class="row - fluid" ng - show="editor.index == 3">
< h6 > Region< / h6 > < select class = "input-small" ng-model = "dashboard.current.time.region" ng-options = 'f for f in ["africa","america","asia","atlantic","australia","europe","indian","pacific"]' > < / select >
< / div > -->
2013-02-13 15:24:32 -06:00
< / div >
< div class = "modal-footer" >
2013-08-01 00:08:00 -05:00
< button ng-click = "add_row(dashboard.current,row); reset_row();" class = "btn btn-success" ng-show = "editor.index == 2" > Create Row< / button >
2013-07-25 23:27:37 -05:00
< button type = "button" class = "btn btn-danger" ng-click = "editor.index=0;dismiss();reset_panel();dashboard.refresh()" > Close< / button >
2013-02-13 15:24:32 -06:00
< / div >