You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update.blade.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-md-8 col-md-offset-2">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">Dashboard − <a href="<?php echo route('deals.list', ['type' => $type]); ?>">Revenir à la liste</a></div>
  8. <div class="panel-body">
  9. @if (session('status'))
  10. <div class="alert alert-success">
  11. {{ session('status') }}
  12. </div>
  13. @endif
  14. <form method="post">
  15. {{ csrf_field() }}
  16. <label for="subject">Sujet : </label>
  17. <input type="text" id="subject" name="subject" value="{{ $deal->getSubject() }}" /><br>
  18. <label for="body">Description : </label>
  19. <textarea id="body" name="body">{{ $deal->getBody() }}</textarea><br>
  20. <label for="price">Prix : </label>
  21. <input type="text" id="price" name="price" value="{{ $deal->getPrice() }}" /><br>
  22. <label for="category">Catégorie : </label>
  23. <select id="category" name="category">
  24. <option value="">−</option>
  25. @foreach(\Shikiryu\LBCReposter\Categories::$categories as $id => $category)
  26. <<option value="{{ $id }}" @if( $deal->getCategory() === $category ) selected="selected" @endif>{{ $category }}</option>
  27. @endforeach
  28. </select><br>
  29. <input type="submit" value="Modifier" />
  30. </form>
  31. </div>
  32. <div class="panel-footer"><a href="<?php echo route('deals.list', ['type' => $type]); ?>">Revenir à la liste</a></div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. @endsection