forms
This commit is contained in:
parent
6ac09081b2
commit
6889746c7e
|
@ -44,16 +44,15 @@
|
|||
<!-- Modals -->
|
||||
|
||||
<div class="modal fade" tabindex="-1" id="editContextModal">
|
||||
<div class="modal-dialog modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" ng-if="mode == 'new'">New context</h4>
|
||||
<h4 class="modal-title" ng-if="mode == 'edit'">Edit context</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
|
||||
<form>
|
||||
<div class="modal-dialog modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" ng-if="mode == 'new'">New context</h4>
|
||||
<h4 class="modal-title" ng-if="mode == 'edit'">Edit context</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form-textfield label="ID" value="tmpCtx.id" ng-show="mode == 'new'"></form-textfield>
|
||||
<form-textfield-static label="ID" value="tmpCtx.id" ng-show="mode == 'edit'"></form-textfield-static>
|
||||
<form-textfield label="Label" value="tmpCtx.label"></form-textfield>
|
||||
|
@ -74,9 +73,11 @@
|
|||
<tr ng-repeat="p in tmpCtx.parameters">
|
||||
<th>{{p.name}}</th>
|
||||
<td><textarea class="form-control" ng-model="p.value"></textarea></td>
|
||||
<td align="right"><button class="btn btn-sm btn-danger" type="button" ng-click="tmpCtx.parameters.splice($index, 1)">
|
||||
<td align="right">
|
||||
<button class="btn btn-sm btn-danger" type="button" ng-click="tmpCtx.parameters.splice($index, 1)">
|
||||
<i class="fa fa-trash"></i>
|
||||
</button></td>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
|
@ -91,15 +92,14 @@
|
|||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary" data-dismiss="modal" ng-click="saveContext(tmpCtx)" ng-disabled="!tmpCtx.id || !tmpCtx.label || !tmpCtx.type">Submit</button>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary" data-dismiss="modal" ng-click="saveContext(tmpCtx)" ng-disabled="!tmpCtx.id || !tmpCtx.label || !tmpCtx.type">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -54,24 +54,18 @@
|
|||
<!-- Modals -->
|
||||
|
||||
<div class="modal fade" tabindex="-1" id="editVocabularyTermModal">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" ng-if="mode == 'new'">New term</h4>
|
||||
<h4 class="modal-title" ng-if="mode == 'edit'">Edit term</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label>Code</label> <input type="text" class="form-control" ng-model="tmpTerm.code" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Name</label> <input type="text" class="form-control" ng-model="tmpTerm.name" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Encoding</label> <input type="text" class="form-control" ng-model="tmpTerm.encoding" />
|
||||
</div>
|
||||
<form>
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" ng-if="mode == 'new'">New term</h4>
|
||||
<h4 class="modal-title" ng-if="mode == 'edit'">Edit term</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form-textfield label="Code" value="tmpTerm.code"></form-textfield>
|
||||
<form-textfield label="Name" value="tmpTerm.name"></form-textfield>
|
||||
<form-textfield label="Encoding" value="tmpTerm.encoding" optional="true"></form-textfield>
|
||||
|
||||
<div class="form-group">
|
||||
<table class="table table-sm table-striped">
|
||||
|
@ -108,12 +102,12 @@
|
|||
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary" data-dismiss="modal" ng-click="saveTerm(tmpTerm)" ng-disabled="newSynomym || !tmpTerm.code || !tmpTerm.name">Submit</button>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary" data-dismiss="modal" ng-click="saveTerm(tmpTerm)" ng-disabled="newSynomym || !tmpTerm.code || !tmpTerm.name">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -43,32 +43,25 @@
|
|||
<!-- Modals -->
|
||||
|
||||
<div class="modal fade" tabindex="-1" id="editVocabularyModal">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" ng-if="mode == 'new'">New vocabulary</h4>
|
||||
<h4 class="modal-title" ng-if="mode == 'edit'">Edit vocabulary</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label>ID</label> <input ng-show="mode == 'new'" type="text" class="form-control" ng-model="tmpVoc.id" /> <input ng-show="mode == 'edit'" type="text" readonly class="form-control-plaintext"
|
||||
ng-model="tmpVoc.id" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Name</label> <input type="text" class="form-control" ng-model="tmpVoc.name" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Description</label>
|
||||
<textarea class="form-control" ng-model="tmpVoc.description"></textarea>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary" data-dismiss="modal" ng-click="saveVocabulary(tmpVoc)" ng-disabled="!tmpVoc.id || !tmpVoc.name">Submit</button>
|
||||
<form>
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" ng-if="mode == 'new'">New vocabulary</h4>
|
||||
<h4 class="modal-title" ng-if="mode == 'edit'">Edit vocabulary</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form-textfield label="ID" value="tmpVoc.id" ng-show="mode == 'new'"></form-textfield>
|
||||
<form-textfield-static label="ID" value="tmpVoc.id" ng-show="mode == 'edit'"></form-textfield-static>
|
||||
<form-textfield label="Name" value="tmpVoc.name"></form-textfield>
|
||||
<form-textarea label="Description" value="tmpVoc.description" optional="true"></form-textarea>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary" data-dismiss="modal" ng-click="saveVocabulary(tmpVoc)" ng-disabled="!tmpVoc.id || !tmpVoc.name">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
Loading…
Reference in New Issue