small update to panel repeats

This commit is contained in:
Torkel Ödegaard 2015-04-27 15:01:27 +02:00
parent f8f302faad
commit 158b77d54e
2 changed files with 18 additions and 6 deletions

View File

@ -29,6 +29,7 @@ function (angular, _) {
row.panels = _.without(row.panels, panel);
j = j - 1;
}
delete panel.scopedVars;
}
}
};

View File

@ -17,14 +17,25 @@
<div class="gf-box-body">
<div class="editor-row" ng-if="editor.index == 0">
<div class="editor-option">
<label class="small">Title</label><input type="text" class="input-xlarge" ng-model='row.title'></input>
<div class="section">
<h5>Row details</h5>
<div class="editor-option">
<label class="small">Title</label><input type="text" class="input-medium" ng-model='row.title'></input>
</div>
<div class="editor-option">
<label class="small">Height</label><input type="text" class="input-mini" ng-model='row.height'></input>
</div>
<editor-opt-bool text="Editable" model="row.editable"></editor-opt-bool>
<editor-opt-bool text="Show title" model="row.showTitle"></editor-opt-bool>
</div>
<div class="editor-option">
<label class="small">Height</label><input type="text" class="input-mini" ng-model='row.height'></input>
<div class="section">
<h5>Templating options</h5>
<div class="editor-option">
<label class="small">Repeat row</label>
<input type="text" class="input-medium" ng-model='row.repeat'></input>
</div>
</div>
<editor-opt-bool text="Editable" model="row.editable"></editor-opt-bool>
<editor-opt-bool text="Show title" model="row.showTitle"></editor-opt-bool>
</div>
</div>