2016-03-23 18:39:41 +01:00
|
|
|
<div class="form-group" ng-class="{'has-error': providerForm['auth_provider[name]'].$dirty && providerForm['auth_provider[name]'].$invalid}">
|
|
|
|
<label for="provider_name" class="col-sm-3 control-label" translate>{{ 'name' }}</label>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<input type="text"
|
|
|
|
ng-model="provider.name"
|
|
|
|
class="form-control"
|
|
|
|
name="auth_provider[name]"
|
|
|
|
id="provider_name"
|
|
|
|
ng-disabled="mode == 'edition'"
|
|
|
|
required />
|
|
|
|
<span class="help-block" ng-show="providerForm['auth_provider[name]'].$dirty && providerForm['auth_provider[name]'].$error.required" translate>{{ 'provider_name_is_required' }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': providerForm['auth_provider[providable_type]'].$dirty && providerForm['auth_provider[providable_type]'].$invalid}">
|
|
|
|
<label for="provider_type" class="col-sm-3 control-label" translate>{{ 'authentication_type' }}</label>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<select ng-model="provider.providable_type"
|
|
|
|
ng-change="updateProvidable()"
|
|
|
|
class="form-control"
|
|
|
|
name="auth_provider[providable_type]"
|
|
|
|
id="provider_type"
|
2016-03-30 10:05:50 +02:00
|
|
|
ng-options="key as (value | translate) for (key, value) in authMethods"
|
2016-03-23 18:39:41 +01:00
|
|
|
ng-disabled="mode == 'edition'"
|
|
|
|
required>
|
|
|
|
</select>
|
|
|
|
<input type="hidden" name="auth_provider[type]" ng-value="provider.type" />
|
|
|
|
<span class="help-block" ng-show="providerForm['auth_provider[providable_type]'].$dirty && providerForm['auth_provider[providable_type]'].$error.required" translate>{{ 'authentication_type_is_required' }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|