65 lines
2.8 KiB
Plaintext
65 lines
2.8 KiB
Plaintext
|
<div class="row">
|
||
|
<div class="twelve columns">
|
||
|
<h1>Editing item: <%= item.name %></h1>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="twelve columns">
|
||
|
<form action="/item/<%= item.id %>/edit" method="POST" class="u-full-width">
|
||
|
<div class="row">
|
||
|
<div class="columns twelve">
|
||
|
<label for="item_name">Item name:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="My new item" id="item_name" name="item_name" required value="<%= item.name %>">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="six columns">
|
||
|
<label for="item_serial">Serial number:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="0123456789" id="item_serial" name="item_serial" value="<%= item.serial_number %>">
|
||
|
</div>
|
||
|
|
||
|
<div class="six columns">
|
||
|
<label for="item_sku">SKU number:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="ABC12345678" id="item_sku" name="item_sku" value="<%= item.sku_number %>">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="six columns">
|
||
|
<label for="item_purchase_from">Purchased from:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="Newegg" id="item_purchase_from" name="item_purchase_from" value="<%= item.purchased_from %>">
|
||
|
</div>
|
||
|
|
||
|
<div class="six columns">
|
||
|
<label for="item_purchase_date">Purchased at:</label>
|
||
|
<input class="u-full-width" type="datetime-local" id="item_purchase_date" name="item_purchase_date" value="<%= date_format_input(item.purchased_at) %>">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="six columns">
|
||
|
<label for="item_manufacturer">Manufacturer:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="Manufacturer" id="item_manufacturer" name="item_manufacturer" value="<%= item.manufacturer %>">
|
||
|
</div>
|
||
|
|
||
|
<div class="six columns">
|
||
|
<label for="item_type">Item type</label>
|
||
|
<select class="u-full-width" id="item_type" name="item_type">
|
||
|
<option value="cpu" <%= item.type_selected?('cpu') %>>Processor</option>
|
||
|
<option value="motherboard" <%= item.type_selected?('motherboard') %>>Motherboard</option>
|
||
|
<option value="memory" <%= item.type_selected?('memory') %>>Memory (RAM)</option>
|
||
|
<option value="psu" <%= item.type_selected?('psu') %>>Power Supply</option>
|
||
|
<option value="case" <%= item.type_selected?('case') %>>Case</option>
|
||
|
<option value="storage" <%= item.type_selected?('storage') %>>Storage Device</option>
|
||
|
<option value="gpu" <%= item.type_selected?('gpu') %>>Graphics Card</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<input class="button-primary u-full-width" type="submit" value="Submit">
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|