fix edit purchasing information
This commit is contained in:
37
device-app/resources/views/purchasings/edit.blade.php
Normal file
37
device-app/resources/views/purchasings/edit.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<p>{{ $purchasing->price }}</p>
|
||||
<form method="POST" action="/devices/{{ $purchasing->device->device_id }}/purchasing">
|
||||
@method('PUT')
|
||||
@csrf
|
||||
<label for="price">price:</label>
|
||||
<input type="text" id="price" name="price" value="{{$purchasing->price}}" required>
|
||||
@error('price')
|
||||
<p>{{ $message }}</p>
|
||||
@enderror
|
||||
<br />
|
||||
<label for="timestamp_warranty_end">timestamp_warranty_end:</label>
|
||||
<input type="text" id="timestamp_warranty_end" name="timestamp_warranty_end"
|
||||
value="{{$purchasing->timestamp_warranty_end}}" required>
|
||||
@error('timestamp_warranty_end')
|
||||
<p>{{ $message }}</p>
|
||||
@enderror
|
||||
<br />
|
||||
<label for="timestamp_purchase">timestamp_purchase:</label>
|
||||
<input type="text" id="timestamp_purchase" name="timestamp_purchase"
|
||||
value="{{$purchasing->timestamp_purchase}}" required>
|
||||
@error('timestamp_purchase')
|
||||
<p>{{ $message }}</p>
|
||||
@enderror
|
||||
<br />
|
||||
<label for="cost_centre">cost_centre:</label>
|
||||
<input type="text" id="cost_centre" name="cost_centre" value="{{$purchasing->cost_centre}}" required>
|
||||
@error('cost_centre')
|
||||
<p>{{ $message }}</p>
|
||||
@enderror
|
||||
<br />
|
||||
<label for="seller">seller:</label>
|
||||
<input type="text" id="seller" name="seller" value="{{$purchasing->seller}}">
|
||||
@error('seller')
|
||||
<p>{{ $message }}</p>
|
||||
@enderror
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
Reference in New Issue
Block a user