Go to file
Owen Leonard 0547868a18
Bug 39483: Update library edit form to use grid layout
This patch introduces a new set of CSS styles for forms in the staff
interface using CSS grids for layout. It's intended to make forms more
responsive.

The basic structure looks like this:

<fieldset class="fg"> /* fg = form grid */
    <div class="fg-row">
        <div class="fg-label">
            <label for="label">Label: </label>
        </div>
        <div class="fg-input">
            <input type="text" name="field" value="field" />
       </div>
   </div>
</fieldset>

Please feel free to disagree with the class names or the markup itself.
I was trying to strike a balance between brevity and flexibility.

Why not use build-in Bootstrap CSS for forms? Bootstrap does have a lot
of forms CSS available, but the form layout they offer are built with
flexbox, not grids. I think the grid layout gives us better control over
the appearance we want.

The patch also includes some adjustments to Flatpickr CSS in order to
make it work with this new style of form as well as the "old" ones.

The patch includes the CSS changes and an update to the library
administration page as a proof of concept.

To test, apply the patch and rebuild the staff interface CSS.

- Go to Administration -> Libraries
- Edit a library
- Confirm that the form looks good and functions correctly.
- Test the page at various browser widths to confirm that responsiveness
  is improved.
- Test another form--patron edit for example--to confirm that everything
  looks good there, especially Flackpickr inputs.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-04-25 19:23:47 +02:00
C4 Bug 37418: delete_patrons.pl: Exclude patrons with restrictions 2025-04-25 08:46:53 +02:00
Koha Bug 39446: Show both status and status_alias 2025-04-25 19:23:46 +02:00
acqui Bug 39319: Fixes for Pod::Checker 2025-04-14 08:51:21 +02:00
admin Bug 39518: Add new field to the UI 2025-04-25 08:46:50 +02:00
api Bug 39600: Rewrite API controllers 2025-04-25 19:23:41 +02:00
authorities Bug 39559: YY is not interpreted as a default value for authorities 2025-04-14 08:51:01 +02:00
basket Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
bin
…
bookings Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
catalogue Bug 39485: Fix wide character in print-warn in opac-export 2025-04-23 09:35:13 +02:00
cataloguing Bug 25015: (QA follow-up) Slide together 2025-04-22 08:46:42 +02:00
circ Bug 31167: Only mark due dates in the past red on overdues report 2025-03-21 17:50:27 +01:00
clubs Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
course_reserves Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
debian Bug 39367: Add new dependency 2025-04-23 09:35:16 +02:00
docs Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
erm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
errors Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
etc Bug 39303: Add audience index to SRU 2025-04-25 08:47:14 +02:00
ill Bug 38819: Auto migrate controller logic 2025-04-25 08:46:45 +02:00
installer Bug 32034: DBRev 24.12.00.034 2025-04-25 18:35:03 +02:00
koha-tmpl Bug 39483: Update library edit form to use grid layout 2025-04-25 19:23:47 +02:00
labels Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
lib Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
members Bug 14250: Patron with fines cannot be discharged anymore 2025-04-22 08:46:26 +02:00
misc Bug 37418: delete_patrons.pl: Exclude patrons with restrictions 2025-04-25 08:46:53 +02:00
offline_circ Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac Bug 39600: Cleanup the changes -- tidy, document, add a missing TT filter 2025-04-25 19:23:40 +02:00
patron_lists Bug 37266: patron_lists/delete.pl should have CSRF protection 2025-03-06 13:54:49 +01:00
patroncards Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
plugins Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
pos Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
preservation Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
recalls Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
reports Bug 37784: (QA follow-up) Bail out to new definition 2025-04-14 08:51:24 +02:00
reserve Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
reviews Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
rotating_collections Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
serials Bug 34971: (QA follow-up) Op is now cud-reopen 2025-02-12 15:28:17 +01:00
services Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
skel
…
suggestion Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
svc Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
t Bug 39600: Rewrite API controllers 2025-04-25 19:23:41 +02:00
tags Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
tools Bug 26744: (QA follow up) Tidy 2025-03-10 11:42:32 +01:00
virtualshelves Bug 37434: Sort by publicationyear when copyrightdate is set in UNIMARC 2025-02-13 16:18:02 +01:00
xt Bug 38340: Add exclusions to xt/author/valid-templates.t 2025-04-25 19:23:45 +02:00
.editorconfig Bug 27375: Set YAML file settings in .editorconfig 2021-11-03 15:40:52 +01:00
.git-blame-ignore-revs Bug 39096: Add 'tidy all' commits to a git blame ignore file 2025-02-17 13:10:25 +01:00
.gitignore Bug 35402: Update the OPAC and staff interface to Bootstrap 5 2024-08-23 15:58:41 +02:00
.htaccess
…
.mailmap Bug 39447: Update mailmap to reflect PTFS-Europes rename 2025-03-26 12:28:44 +01:00
.perlcriticrc Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
.perltidyrc Bug 30002: Adjust perltidy 2023-06-08 08:32:42 -03:00
.prettierrc.js Bug 38664: Treat .vue files like other JS files 2025-02-11 14:58:25 +01:00
.proverc.dist Bug 19821: Install sample data, ES mappings and Version syspref 2021-10-25 11:27:40 +02:00
.stylelintrc.json Bug 31528: (follow-up) A few additional rules 2022-10-03 08:23:15 -03:00
INSTALL
…
Koha.pm Bug 32034: DBRev 24.12.00.034 2025-04-25 18:35:03 +02:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 37911: Update Makefile.PL to handle generated "vue/dist" files 2025-04-25 18:35:01 +02:00
README
…
README.md Bug 27092: Remove note about "synced repo" from README.md 2020-11-25 16:31:58 +01:00
README.robots
…
about.pl Bug 39154: Add sip.log test in about 2025-03-07 18:02:58 +01:00
app.psgi Bug 36149: Add userenv middleware to app.psgi 2024-05-14 15:04:37 -03:00
build-resources.PL Bug 32609: Use the current yarn.lock to generate node_modules 2023-02-10 11:07:57 -03:00
changelanguage.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
cpanfile Bug 39367: Add new dependency 2025-04-23 09:35:16 +02:00
cypress.config.ts Bug 38770: Remove @vue/cli-service and babel 2025-01-16 15:56:15 +01:00
eslint.config.mjs Bug 38524: Enable ESLint for .ts and .vue files 2025-01-16 15:56:17 +01:00
fix-perl-path.PL Bug 39149: Tidy .PL files 2025-02-18 15:35:53 +01:00
gulpfile.js Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
help.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
kohaversion.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
mainpage.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
package.json Bug 37911: (follow-up) Update to vue ^3.5.4, use vue's web component implementation instead 2025-04-25 18:34:53 +02:00
rewrite-config.PL Bug 39149: Tidy .PL files 2025-02-18 15:35:53 +01:00
rspack.config.js Bug 37911: (follow-up) Use style-, css-loader to preserve compatiblity with Koha's Vue components, e.g. Dialog.vue 2025-04-25 18:35:01 +02:00
tsconfig.json Bug 32030: Move cypress to t - fix build_js/watch_js 2022-11-08 09:44:52 -03:00
yarn.lock Bug 37911: (follow-up) Isolate yarn.lock changes 2025-04-25 18:34:58 +02:00

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo