Просмотр файла resources/views/admin/status/edit.blade.php

Размер файла: 2.3Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('statuses.edit_status'))
  4.  
  5. @section('breadcrumb')
  6. <nav>
  7. <ol class="breadcrumb">
  8. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  9. <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
  10. <li class="breadcrumb-item"><a href="/admin/status">{{ __('index.user_statuses') }}</a></li>
  11. <li class="breadcrumb-item active">{{ __('statuses.edit_status') }}</li>
  12. </ol>
  13. </nav>
  14. @stop
  15.  
  16. @section('content')
  17. <div class="section-form mb-3 shadow">
  18. <form method="post">
  19. @csrf
  20. <div class="form-group">
  21. <label for="inputFrom">{{ __('main.from') }}:</label>
  22. <input type="text" pattern="\d*" maxlength="10" class="form-control" id="inputFrom" name="topoint" placeholder="От" value="{{ getInput('topoint', $status->topoint) }}">
  23.  
  24. <label for="inputTo">{{ __('main.to') }}:</label>
  25. <input type="text" pattern="\d*" maxlength="10" class="form-control" id="inputTo" name="point" placeholder="До" value="{{ getInput('point', $status->point) }}">
  26. </div>
  27.  
  28. <div class="form-group{{ hasError('name') }}">
  29. <label for="inputName">{{ __('main.status') }}:</label>
  30. <input type="text" maxlength="30" class="form-control" id="inputName" name="name" placeholder="Статус" value="{{ getInput('name', $status->name) }}" required>
  31. <div class="invalid-feedback">{{ textError('name') }}</div>
  32. </div>
  33.  
  34. <div class="form-group{{ hasError('color') }}">
  35. <label for="color">{{ __('main.color') }}:</label>
  36.  
  37. <div class="input-group colorpick">
  38. <input class="form-control col-sm-4" id="color" name="color" type="text" maxlength="7" value="{{ getInput('color', $status->color) }}">
  39. <span class="input-group-append">
  40. <span class="input-group-text colorpicker-input-addon"><i></i></span>
  41. </span>
  42. </div>
  43.  
  44. <div class="invalid-feedback">{{ textError('color') }}</div>
  45. </div>
  46.  
  47. <button class="btn btn-primary">{{ __('main.edit') }}</button>
  48. </form>
  49. </div>
  50. @stop