graphdb-workbench
Version:
The web application for GraphDB APIs
64 lines (61 loc) • 3.64 kB
HTML
<!-- Start editLocation.html -->
<div class="modal-header">
<button type="button" class="close" ng-click="cancel();" aria-hidden="true"></button>
<h3 class="modal-title">{{'edit.location' | translate}}</h3>
</div>
<div class="modal-body">
<form id="addLocationForm" autocomplete="off" name="form">
<div class="form-group row">
<label class="col-md-4 col-form-label">{{'auth.type.header' | translate}}</label>
<div class="col-md-8">
<label class="col-form-label" gdb-tooltip="{{'remote.location.no.auth.used.tooltip' | translate}}">
<input type="radio" name="authType" ng-model="editedLocation.authType" value="none"/>
{{'auth.type.none' | translate}}
</label>
<label class="col-form-label" gdb-tooltip="{{'basic.auth.type.tooltip' | translate}}">
<input type="radio" name="authType" ng-model="editedLocation.authType" value="basic"/>
{{'auth.type.basic' | translate}}
</label>
<label class="col-form-label" gdb-tooltip="{{'signature.auth.type.tooltip' | translate}}">
<input type="radio" name="authType" ng-model="editedLocation.authType" value="signature"/>
{{'auth.type.signature' | translate}}
</label>
</div>
</div>
<div class="form-group row" ng-if="editedLocation.authType === 'none'">
<div class="col-md-12">{{'remote.location.no.auth.used.header' | translate}}</div>
</div>
<div ng-if="editedLocation.authType === 'basic'">
<div class="form-group row">
<div class="col-md-12">{{'basic.auth.type.constraint' | translate}}</div>
</div>
<div class="form-group row">
<label for="username" class="col-md-4 col-form-label">{{'username.required' | translate}}</label>
<div class="col-md-8">
<input id="username" ng-model="editedLocation.username" name="locationUsername" placeholder="{{'my.user.placeholder' | translate}}"
class="form-control" ng-required="editedLocation.authType === 'basic'"/>
</div>
</div>
<div class="form-group row">
<label for="password" class="col-md-4 col-form-label">{{'password.required' | translate}}</label>
<div class="col-md-8">
<input id="password" ng-model="editedLocation.password" name="locationPassword" placeholder="{{'my.password.placeholder' | translate}}"
type="password" class="form-control" ng-required="editedLocation.authType === 'basic'"/>
</div>
</div>
</div>
<div class="form-group row" ng-if="editedLocation.authType === 'signature'">
<div class="col-md-12">
{{'signature.auth.info' | translate}}<a href="{{docBase}}/access-control.html#gdb-authentication"
rel="noopener" target="_blank">Access Control / GDB authentication</a>{{'signature.auth.info.last' | translate}}
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" ng-click="cancel();" class="btn btn-secondary">{{'common.cancel.btn' | translate}}</button>
<button ng-click="ok();" form="addLocationForm" class="btn btn-primary" ng-disabled="form.$invalid">{{'common.save.btn' | translate}}</button>
</div>
<!-- End editLocation.html -->