admin: restore form styling
The invoice form's text inputs, textareas and label layout depended on .contact-form rules that were deleted with the contact form, so they fell back to white browser defaults with labels running inline. Give every admin form (.invoice-form) one style: labels above fields, gray inputs on the surface token, a focus state, single column on phones, and the submit button styled like the rest. Assisted-by: Claude:opus-5
This commit is contained in:
parent
d91a72f603
commit
97919f3f71
2 changed files with 65 additions and 12 deletions
|
|
@ -12,7 +12,7 @@
|
|||
<% end %>
|
||||
|
||||
<section class="section">
|
||||
<form class="contact-form invoice-form" method="post" action="/admin/invoices" autocomplete="off">
|
||||
<form class="invoice-form" method="post" action="/admin/invoices" autocomplete="off">
|
||||
<input type="hidden" name="authenticity_token" value="<%= csrf_token %>" />
|
||||
|
||||
<h2>Client</h2>
|
||||
|
|
@ -117,7 +117,7 @@
|
|||
</div>
|
||||
<script type="application/json" id="crypto-defaults"><%== CryptoAsset.default_addresses.to_json %></script>
|
||||
|
||||
<button type="submit">Create invoice</button>
|
||||
<button type="submit" class="download-button">Create invoice</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue