Merge pull request #1069 from stianst/master

Hide internationalization options if internationalization is not enabled
This commit is contained in:
Stian Thorgersen 2015-03-20 10:21:04 +01:00
commit 4109371b56

View file

@ -65,14 +65,14 @@
<input ng-model="realm.internationalizationEnabled" name="internationalizationEnabled" id="internationalizationEnabled" onoffswitch />
</div>
</div>
<div class="form-group">
<div class="form-group" data-ng-show="realm.internationalizationEnabled">
<label class="col-sm-2 control-label" for="supportedLocales" class="control-label two-lines">Supported Locales</label>
<div class="col-sm-4">
<input id="supportedLocales" type="text" ui-select2="supportedLocalesOptions" ng-model="realm.supportedLocales" placeholder="Type a locale and enter" ng-required="realm.internationalizationEnabled" ng-disabled="!realm.internationalizationEnabled">
</div>
</div>
<div class="form-group">
<div class="form-group" data-ng-show="realm.internationalizationEnabled">
<label class="col-sm-2 control-label" for="defaultLocale">Default Locale</label>
<div class="col-sm-4">
<div class="select-kc">