always require terms

This commit is contained in:
Girish Ramakrishnan
2018-03-13 11:06:49 -07:00
parent ca2457bfcb
commit 286d634756

View File

@@ -279,7 +279,7 @@
</div>
</div>
<div class="checkbox" ng-show="appstoreLogin.register">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="appstoreLogin.termsAccepted">I accept the Cloudron <a href="https://cloudron.io/legal/license.html" target="_blank">license</a>
</label>
@@ -288,7 +288,7 @@
<br/>
<center>
<button type="submit" class="btn btn-lg btn-success" ng-disabled="appstoreLoginForm.$invalid || appstoreLogin.busy || (appstoreLogin.register && !appstoreLogin.termsAccepted)">
<button type="submit" class="btn btn-lg btn-success" ng-disabled="appstoreLoginForm.$invalid || appstoreLogin.busy || !appstoreLogin.termsAccepted">
<i class="fa fa-circle-o-notch fa-spin" ng-show="appstoreLogin.busy"></i> <span ng-hide="appstoreLogin.register">Login</span><span ng-show="appstoreLogin.register">Sign up for free trial</span>
</button>