(add image upload to form, ignore testing storage)

This commit is contained in:
Adam Wathan
2017-09-25 15:54:15 -04:00
parent de0c35724f
commit d1fb33ed65
2 changed files with 27 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
<h1 class="text-lg">Add a concert</h1> <h1 class="text-lg">Add a concert</h1>
</div> </div>
</div> </div>
<form class="bg-soft p-xs-y-5" action="/backstage/concerts" method="POST"> <form class="bg-soft p-xs-y-5" action="/backstage/concerts" method="POST" enctype="multipart/form-data">
{{ csrf_field() }} {{ csrf_field() }}
@if ($errors->any()) @if ($errors->any())
@@ -171,6 +171,30 @@
</div> </div>
</div> </div>
</div> </div>
<div class="border-b p-xs-b-4 m-xs-b-4">
<div class="container">
<div class="row">
<div class="col col-lg-4">
<div class="p-xs-y-4">
<h2 class="text-base wt-medium m-xs-b-4">Concert Poster</h2>
<p class="text-dark-soft text-sm">
Have a sweet poster for this concert? Upload it here and it'll be included on the checkout page.
</p>
</div>
</div>
<div class="col col-lg-8">
<div class="card">
<div class="card-section">
<div class="form-group {{ $errors->first('poster_image', 'has-error') }}">
<label class="form-label m-xs-b-2">Poster Image</label>
<input type="file" name="poster_image" class="form-control-file">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container text-right"> <div class="container text-right">
<button type="submit" class="btn btn-primary">Add Concert</button> <button type="submit" class="btn btn-primary">Add Concert</button>
</div> </div>

2
storage/framework/testing/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore