Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P processwire
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 43
    • Merge requests 43
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ProcessWire
  • processwire
  • Merge requests
  • !251

Add download button to InputfieldImage.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Jan Romero requested to merge github/fork/JanRomero/dev into dev Dec 11, 2022
  • Overview 4
  • Commits 3
  • Pipelines 1
  • Changes 3

Hi, the idea for this came from this forum thread by @BernhardBaumrock. It’s a small but imho quite useful addition.

I’ve tried to keep changes to a minimum. It’s virtually entirely a CSS thing because the download button is a simple element, but to make it work nicely I had to make the CSS independent of the label element and I renamed .gridImage__trash to .gridImage__btn to make it more generic. This somewhat opens the door for more such buttons – it actually clutters up the UI surprisingly little: grafik (Obviously that’s just a dumb mockup. The actual PR only adds the second button, as pictured here.)

Buttons will be in reverse order in “list” view.

I’ve tested it successfully with both stock themes. Hope it’s not too messy. Thanks for your consideration!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/JanRomero/dev