Git Product home page Git Product logo

Comments (6)

MoonE avatar MoonE commented on June 4, 2024 2

You could delete these lines:

{% if columns_list is not empty %}
<div class="btn-group me-2" role="group">
<input type="button" value="SELECT *" id="selectall" class="btn btn-secondary button sqlbutton">
<input type="button" value="SELECT" id="select" class="btn btn-secondary button sqlbutton">
<input type="button" value="INSERT" id="insert" class="btn btn-secondary button sqlbutton">
<input type="button" value="UPDATE" id="update" class="btn btn-secondary button sqlbutton">
<input type="button" value="DELETE" id="delete" class="btn btn-secondary button sqlbutton">
</div>
{% endif %}

from phpmyadmin.

goldmont avatar goldmont commented on June 4, 2024 1

Why?

Hi,

I'm an high school teacher. I would like to prevent my students from having an almost-ready query just by clicking on a button.

from phpmyadmin.

MoonE avatar MoonE commented on June 4, 2024 1

You can append this css:

#select.sqlbutton,
#selectall.sqlbutton,
#insert.sqlbutton,
#update.sqlbutton,
#delete.sqlbutton {
  display:none;
}

to each of the theme files:

themes/metro/css/theme.css
themes/metro/css/theme.rtl.css
themes/original/css/theme.css
themes/original/css/theme.rtl.css
themes/pmahomme/css/theme.css
themes/pmahomme/css/theme.rtl.css
themes/bootstrap/css/theme.css
themes/bootstrap/css/theme.rtl.css

which will prevent the buttons from being displayed by default.

Though a savvy student would be able to enable them again with the browser developer tools.

from phpmyadmin.

MoonE avatar MoonE commented on June 4, 2024

Why?

from phpmyadmin.

goldmont avatar goldmont commented on June 4, 2024

Thank you for the tip.

In fact I hoped there was a PHP-side solution like not outputting the buttons at all.

from phpmyadmin.

goldmont avatar goldmont commented on June 4, 2024

@MoonE Thank you for helping me. Do you think it will be possible to enable/disable via config in the future? Maybe a boolean value

from phpmyadmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.