Disable submit if app is locked

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-03-17 02:43:33 -07:00
parent 30cf7eb750
commit e557f03cc2

View file

@ -110,7 +110,7 @@
</div> <!--/box-body--> </div> <!--/box-body-->
<div class="box-footer text-right"> <div class="box-footer text-right">
<a class="btn btn-link pull-left" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a> <a class="btn btn-link pull-left" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
<button type="submit" class="btn btn-success"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('button.submit') }}</button> <button type="submit" class="btn btn-success"{{ (config('app.lock_passwords') ? ' disabled' : '') }}><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('button.submit') }}</button>
</div><!-- /.box-footer --> </div><!-- /.box-footer -->
@foreach ($users as $user) @foreach ($users as $user)