57 lines
2.4 KiB
Plaintext
57 lines
2.4 KiB
Plaintext
|
<div class="row">
|
||
|
<div class="twelve columns">
|
||
|
<h1>Editing: <%= license.name %></h1>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="twelve columns">
|
||
|
<form action="/license/<%= license.id %>/edit" method="POST" class="u-full-width">
|
||
|
<div class="row">
|
||
|
<div class="columns twelve">
|
||
|
<label for="license_name">Item name:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="My new license" id="license_name" name="license_name" required value="<%= license.name %>">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="six columns">
|
||
|
<label for="license_key">License key:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="acbd1234efgh5678" id="license_key" name="license_key" required value="<%= license.key %>">
|
||
|
</div>
|
||
|
|
||
|
<div class="six columns">
|
||
|
<label for="license_manufacturer">Manufacturer:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="Manufacturer" id="license_manufacturer" name="license_manufacturer" value="<%= license.manufacturer %>">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="six columns">
|
||
|
<label for="license_seats_used">Seats used on license:</label>
|
||
|
<input class="u-full-width" type="number" placeholder="0" id="license_seats_used" name="license_seats_used" value="<%= license.seats_used %>">
|
||
|
</div>
|
||
|
|
||
|
<div class="six columns">
|
||
|
<label for="license_seats_total">Total seats on license:</label>
|
||
|
<input class="u-full-width" type="number" placeholder="1" id="license_seats_total" name="license_seats_total" value="<%= license.seats_total %>">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="six columns">
|
||
|
<label for="license_purchase_from">Purchased from:</label>
|
||
|
<input class="u-full-width" type="text" placeholder="Newegg" id="license_purchase_from" name="license_purchase_from" value="<%= license.purchased_from %>">
|
||
|
</div>
|
||
|
|
||
|
<div class="six columns">
|
||
|
<label for="license_purchase_date">Purchased at:</label>
|
||
|
<input class="u-full-width" type="datetime-local" id="license_purchase_date" name="license_purchase_date" value="<%= date_format_input(license.purchased_at) %>">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<input class="button-primary u-full-width" type="submit" value="Submit">
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|