[Discover/Load/Save] moved the form for submitting the load and save dialogue to inside their respective files
This commit is contained in:
parent
16ad95223e
commit
ddc909b41c
|
@ -32,11 +32,7 @@ define(function (require) {
|
|||
});
|
||||
|
||||
var wrapTmpl = function (tmpl) {
|
||||
if ($scope.configSubmit) {
|
||||
return '<form role="form" class="container-fluid" ng-submit="configSubmit()">' + tmpl + '</form>';
|
||||
} else {
|
||||
return '<div class="container-fluid">' + tmpl + '</div>';
|
||||
}
|
||||
return '<div class="container-fluid">' + tmpl + '</div>';
|
||||
};
|
||||
|
||||
var render = function (newTemplate, oldTemplate) {
|
||||
|
@ -74,4 +70,4 @@ define(function (require) {
|
|||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
</div>
|
||||
</navbar>
|
||||
|
||||
<config config-template="configTemplate" config-object="opts" config-close="configClose" config-submit="opts.saveDataSource"></config>
|
||||
<config config-template="configTemplate" config-object="opts" config-close="configClose"></config>
|
||||
|
||||
<div class="container-fluid" role="main">
|
||||
<div class="row">
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
<saved-object-finder type="searches"></saved-object-finder>
|
||||
<form role="form" class="container-fluid" ng-submit="fetch()">
|
||||
<saved-object-finder type="searches"></saved-object-finder>
|
||||
</form>
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="SaveSearch" class="control-label">Save Search</label>
|
||||
<input id="SaveSearch" ng-model="opts.savedSearch.title" input-focus="select" class="form-control" placeholder="Name this search...">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button ng-disabled="!opts.savedSearch.title" type="submit" class="btn btn-primary">
|
||||
Save
|
||||
</button>
|
||||
<form role="form" class="container-fluid" ng-submit="opts.saveDataSource()">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="SaveSearch" class="control-label">Save Search</label>
|
||||
<input id="SaveSearch" ng-model="opts.savedSearch.title" input-focus="select" class="form-control" placeholder="Name this search...">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button ng-disabled="!opts.savedSearch.title" type="submit" class="btn btn-primary">
|
||||
Save
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue