Bug 31935: (follow-up) Make form look better

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Lucas Gass 2022-12-08 21:13:00 +00:00 committed by Tomas Cohen Arazi
parent b754d71ab1
commit a2e8d7cba2
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 3 deletions

View file

@ -14,6 +14,7 @@ fieldset.rows li.radio { width: 100%; } /* override staff-global.css */
/* Prevents Bootstrap menus from being hidden inside modal */ /* Prevents Bootstrap menus from being hidden inside modal */
#mana_search_result .modal { overflow: visible; } #mana_search_result .modal { overflow: visible; }
#mana_search_result .modal-body { overflow-y: visible; } #mana_search_result .modal-body { overflow-y: visible; }
.inputnote { padding-left: 13rem; padding-top: 1rem; }
fieldset.rows table { clear: none; margin: 0; } fieldset.rows table { clear: none; margin: 0; }
</style> </style>
</head> </head>
@ -88,12 +89,12 @@ fieldset.rows table { clear: none; margin: 0; }
[% END %] [% END %]
<li> <li>
<label for="aqbooksellerid">Vendor: </label> <label for="aqbooksellerid">Vendor: </label>
<input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid | html %]" size="8" /> (<input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername | html %]" disabled="disabled" readonly="readonly" />) <a href="#" id="vendor_search"><i class="fa fa-search"></i> Search for a vendor</a> <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid | html %]" size="8" /><input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername | html %]" disabled="disabled" readonly="readonly" /><a href="#" id="vendor_search"><i class="fa fa-search"></i> Search for a vendor</a>
</li> </li>
<li> <li>
<label for="biblionumber" class="required">Record:</label> <label for="biblionumber" class="required">Record:</label>
<input type="text" name="biblionumber" id="biblionumber" value="[% bibnum | html %]" size="8" /> <input type="text" name="biblionumber" id="biblionumber" value="[% bibnum | html %]" size="8" />
(<input type="text" name="title" value="[% bibliotitle | html %]" disabled="disabled" readonly="readonly" />) <span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span> <input type="text" name="title" value="[% bibliotitle | html %]" disabled="disabled" readonly="readonly" /><span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span>
<span id="error_bib_not_exist"></span> <span id="error_bib_not_exist"></span>
<div class="hint">Subscriptions must be associated with a bibliographic record</div> <div class="hint">Subscriptions must be associated with a bibliographic record</div>
<div class="inputnote"> <a href="#" id="record_search"><i class="fa fa-search"></i> Search for record</a> <div class="inputnote"> <a href="#" id="record_search"><i class="fa fa-search"></i> Search for record</a>

View file

@ -740,7 +740,7 @@ $(document).ready(function() {
}); });
$("input[name='serialsadditems']").on("change", function(){ $("input[name='serialsadditems']").on("change", function(){
const display = $(this).val() == "1" ? "block" : "none"; const display = $(this).val() == "1" ? "flex" : "none";
$(".use_items").css('display', display).find("select").val("") $(".use_items").css('display', display).find("select").val("")
}); });