|
@@ -21,24 +21,17 @@
|
|
|
<form class="form-horizontal" novalidate name="form" autocomplete="off">
|
|
|
<div class="well">
|
|
|
<fieldset>
|
|
|
- <div class="form-group" ng-class="{'has-error' : (form.login_text.$error.pattern) && form.submitted}">
|
|
|
- <label class="col-sm-2 control-label">{{'common.loginActivities.switch' | translate}}</label>
|
|
|
- <div class="on-off-switch-wrap col-sm-10">
|
|
|
- <i class="fa fa-toggle-on active"
|
|
|
- ng-if="status == true"
|
|
|
- ng-click="changeStatus();">
|
|
|
- </i>
|
|
|
- <i class="fa fa-toggle-on fa-rotate-180 inactive"
|
|
|
- ng-if="status == false"
|
|
|
- ng-click="changeStatus();">
|
|
|
- </i>
|
|
|
- <input type="checkbox" name="status" class="hidden" ng-model="status">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label">{{'common.loginActivities.status' | translate}}</label>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <toggle-switch ng-click="changeStatus();" model="status" on-label="{{'common.loginActivities.status.enabled' | translate}}" off-label="{{'common.loginActivities.status.disabled' | translate}}" class="switch-primary userstatus" data-off-color="disabled"></toggle-switch>
|
|
|
</div>
|
|
|
+ <input type="checkbox" name="status" class="hidden" ng-model="status">
|
|
|
</div>
|
|
|
<div class="form-group" ng-class="{'has-error' : (form.login_text.$error.pattern) && form.submitted}">
|
|
|
<label class="col-sm-2 control-label">{{'common.loginActivities.message' | translate}}</label>
|
|
|
<div class="col-sm-10">
|
|
|
- <input type="text"
|
|
|
+ <textarea type="text"
|
|
|
class="form-control"
|
|
|
name="login_text"
|
|
|
placeholder="{{'common.loginActivities.loginMessage.placeholder' | translate}}"
|
|
@@ -47,7 +40,7 @@
|
|
|
ng-pattern="/^([a-zA-Z0-9._\s]+)$/"
|
|
|
ng-disabled="!status"
|
|
|
autocomplete="off">
|
|
|
-
|
|
|
+ </textarea>
|
|
|
<div class="alert alert-danger top-margin" ng-show="form.login_text.$error.pattern && form.submitted">
|
|
|
{{'common.loginActivities.onlySimpleChars' | translate}}
|
|
|
</div>
|
|
@@ -55,7 +48,7 @@
|
|
|
</div>
|
|
|
<div class="form-group" ng-class="{'has-error' : (form.login_text.$error.pattern) && form.submitted}">
|
|
|
<label class="col-sm-2 control-label">{{'common.loginActivities.buttonText' | translate}}</label>
|
|
|
- <div class="col-sm-5">
|
|
|
+ <div class="col-sm-4">
|
|
|
<input type="text"
|
|
|
class="form-control"
|
|
|
name="button_text"
|
|
@@ -64,6 +57,8 @@
|
|
|
ng-change="inputChangeEvent()"
|
|
|
ng-disabled="!status"
|
|
|
ng-pattern="/^([a-zA-Z0-9._\s]+)$/"
|
|
|
+ maxlength="25"
|
|
|
+ size="25"
|
|
|
autocomplete="off">
|
|
|
|
|
|
<div class="alert alert-danger top-margin" ng-show="form.button_text.$error.pattern && form.submitted">
|