|
36 | 36 | action="{{ route('admin.password.email.post') }}">
|
37 | 37 | @csrf
|
38 | 38 |
|
39 |
| - <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}"> |
40 |
| - <label for="email">E-Mail Address</label> |
41 |
| - <input v-model="email" id="email" type="email" class="form-control" name="email" |
42 |
| - value="{{ $email or old('email') }}" required autofocus> |
| 39 | + <avored-form-input |
| 40 | + field-name="email" |
| 41 | + label="{{ __('avored-ecommerce::lang.admin-email-label') }}" |
| 42 | + error-text="{!! $errors->first('email') !!}" |
| 43 | + v-on:change="changeModelValue" |
| 44 | + autofocus="autofocus" |
| 45 | + > |
| 46 | + </avored-form-input> |
| 47 | + |
| 48 | + <avored-form-input |
| 49 | + field-name="password" |
| 50 | + field-type="password" |
| 51 | + label="{{ __('avored-ecommerce::lang.admin-password-label') }}" |
| 52 | + error-text="{!! $errors->first('password') !!}" |
| 53 | + v-on:change="changeModelValue" |
| 54 | + |
| 55 | + > |
| 56 | + </avored-form-input> |
| 57 | + |
| 58 | + <avored-form-input |
| 59 | + field-name="password_confirmation" |
| 60 | + field-type="password" |
| 61 | + label="{{ __('avored-ecommerce::lang.admin-confirm-password-label') }}" |
| 62 | + error-text="{!! $errors->first('password_confirmation') !!}" |
| 63 | + v-on:change="changeModelValue" |
| 64 | + |
| 65 | + > |
| 66 | + </avored-form-input> |
43 | 67 |
|
44 |
| - @if ($errors->has('email')) |
45 |
| - <span class="help-block"> |
46 |
| - <strong>{{ $errors->first('email') }}</strong> |
47 |
| - </span> |
48 |
| - @endif |
49 | 68 |
|
50 |
| - </div> |
51 |
| - |
52 |
| - <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}"> |
53 |
| - <label for="password">Password</label> |
54 |
| - <input v-model="password" id="password" type="password" class="form-control" name="password" required> |
55 |
| - |
56 |
| - @if ($errors->has('password')) |
57 |
| - <span class="help-block"> |
58 |
| - <strong>{{ $errors->first('password') }}</strong> |
59 |
| - </span> |
60 |
| - @endif |
61 |
| - |
62 |
| - </div> |
63 |
| - |
64 |
| - <div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}"> |
65 |
| - <label for="password-confirm">Confirm Password</label> |
66 |
| - <input v-model="password_confirmation" id="password-confirm" |
67 |
| - type="password" class="form-control" |
68 |
| - name="password_confirmation" required> |
69 |
| - |
70 |
| - @if ($errors->has('password_confirmation')) |
71 |
| - <span class="help-block"> |
72 |
| - <strong>{{ $errors->first('password_confirmation') }}</strong> |
73 |
| - </span> |
74 |
| - @endif |
75 |
| - |
76 |
| - </div> |
77 | 69 |
|
78 | 70 | <div class="form-group">
|
79 | 71 | <button :disabled='isLoginDisbled' type="submit" class="btn btn-primary">
|
|
105 | 97 | computed: {
|
106 | 98 | isLoginDisbled: function() {
|
107 | 99 |
|
108 |
| - if(this.email != "" && this.password != "" && this.password_confirmation != "" && this.password == this.password_confirmation) { |
| 100 | + if(this.email != "" && |
| 101 | + this.password != "" && |
| 102 | + this.password_confirmation != "" && |
| 103 | + this.password == this.password_confirmation) { |
109 | 104 | return false;
|
110 | 105 | }
|
111 | 106 | return true;
|
112 | 107 |
|
| 108 | + } |
| 109 | + }, |
| 110 | + methods: { |
| 111 | + changeModelValue: function(val,fieldName) { |
| 112 | + this[fieldName] = val; |
| 113 | + |
113 | 114 | }
|
114 | 115 | }
|
115 | 116 | });
|
|
0 commit comments