graphdb-workbench
Version:
The web application for GraphDB APIs
65 lines (62 loc) • 3.49 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</h3>
</div>
<form id="addLocationForm" autocomplete="off" name="form">
<div class="modal-body">
<div class="form-group row">
<label class="col-md-4 col-form-label">Authentication type</label>
<div class="col-md-8">
<label class="col-form-label" uib-tooltip="No authentication used with remote location">
<input type="radio" name="authType" ng-model="editedLocation.authType" value="none"/>
None
</label>
<label class="col-form-label" uib-tooltip="Basic authentication with username/password">
<input type="radio" name="authType" ng-model="editedLocation.authType" value="basic"/>
Basic auth
</label>
<label class="col-form-label" uib-tooltip="Signature authentication with shared secret">
<input type="radio" name="authType" ng-model="editedLocation.authType" value="signature"/>
Signature
</label>
</div>
</div>
<div class="form-group row" ng-if="editedLocation.authType === 'none'">
<div class="col-md-12">No authentication will be used with this location.</div>
</div>
<div ng-if="editedLocation.authType === 'basic'">
<div class="form-group row">
<div class="col-md-12">Basic authentication requires a username and a password.</div>
</div>
<div class="form-group row">
<label for="username" class="col-md-4 col-form-label">Username*</label>
<div class="col-md-8">
<input id="username" ng-model="editedLocation.username" name="locationUsername" placeholder="my-user"
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*</label>
<div class="col-md-8">
<input id="password" ng-model="editedLocation.password" name="locationPassword" placeholder="my-password"
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 authentication uses the token secret, which must be the same on both GraphDB instances.
For more information on configuring the token secret, please refer to <a href="{{docBase}}/access-control.html#gdb-authentication"
rel="noopener" target="_blank">Access Control / GDB authentication</a> in the documentation.
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" ng-click="cancel();" class="btn btn-secondary">Cancel</button>
<button ng-click="ok();" class="btn btn-primary" ng-disabled="form.$invalid">Save</button>
</div>
</form>
<!-- End editLocation.html -->