mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 19:36:54 +00:00
96 lines
4.1 KiB
HTML
96 lines
4.1 KiB
HTML
<div class="content-container">
|
|
<form name="creategadhocqueryform" novalidate="" class="card form-horizontal well"
|
|
ng-controller="CreateAdHocQueryController" rc-submit="submit()">
|
|
<api-validate></api-validate>
|
|
<fieldset>
|
|
<legend>{{'label.heading.createadhocquery' | translate}}</legend>
|
|
<div class="form-group">
|
|
<label class="control-label col-sm-2" >{{'label.input.name' | translate}}
|
|
</label>
|
|
<div class="col-sm-6">
|
|
<input id="name" type="text" name="name"
|
|
ng-model="formData.name" class="form-control" />
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-sm-2" for="description">{{'label.input.query' | translate}} </label>
|
|
|
|
<div class="col-sm-8">
|
|
<textarea id="query" name="query" ng-model="formData.query" rows="8"
|
|
cols="" class="form-control"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-sm-2" >{{'label.input.tablename' | translate}}
|
|
</label>
|
|
<div class="col-sm-6">
|
|
<input id="tableName" type="text" name="name"
|
|
ng-model="formData.tableName" class="form-control" />
|
|
</div>
|
|
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-sm-2" for="description">{{'label.input.tablefields' | translate}}</label>
|
|
|
|
<div class="col-sm-8">
|
|
<textarea id="tableFields" name="tableFields" ng-model="formData.tableFields" rows="8"
|
|
cols="" class="form-control"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-sm-2" for="email">{{'label.input.email' | translate}}</label>
|
|
|
|
<div class="col-sm-6">
|
|
<input id="email" type="text" name="email"
|
|
ng-model="formData.email" class="form-control" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-sm-2">{{ 'label.input.reportrunfrequncy' | translate }}
|
|
<i class="fa fa-question-sign" tooltip="{{'label.tooltip.reportrunfrequncy' | translate}}" tooltip-append-to-body="true"></i>
|
|
</label>
|
|
<div class="col-sm-2">
|
|
<select id="reportRunFrequency" class="form-control"
|
|
ng-change="reportRunFrequencySelected(formData.reportRunFrequency)"
|
|
ng-model="formData.reportRunFrequency"
|
|
ng-options="reportRunFrequency.id as reportRunFrequency.value | translate for reportRunFrequency in template.reportRunFrequencies"
|
|
value="{{reportRunFrequency.id}}">
|
|
<option value="">{{'label.selectone' | translate}}</option>
|
|
</select>
|
|
</div>
|
|
<div ng-show="customReportRunFrequencyFieldShow">
|
|
<label class="control-label col-sm-2" for="reportRunEvery">{{'label.input.runreportevery' | translate}}</label>
|
|
|
|
<div class="col-sm-1">
|
|
<input id="reportRunEvery" type="text" name="reportRunEvery"
|
|
ng-model="formData.reportRunEvery" class="form-control"/>
|
|
</div>
|
|
|
|
<label class="control-label col-sm-1" for="reportRunEvery">{{'label.input.runreporteverydays' | translate}}</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-sm-2" for="isActive">Active {{'label.input.isactive' |
|
|
translate}}</label>
|
|
|
|
<div class="col-sm-3">
|
|
<label class="checkbox">
|
|
<input id="isActive" type="checkbox" ng-model="formData.isActive">
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-offset-5">
|
|
<a id="cancel" href="#/adhocquery" class="btn btn-default">{{'label.button.cancel' | translate}}</a>
|
|
<button id="save" type="submit" class="btn btn-primary" has-permission='CREATE_USER'>{{'label.button.save' | translate}} </button>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</div> |