Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table component built-in edit_link, delete_link and view_link #657

Open
lovasoa opened this issue Oct 30, 2024 Discussed in #656 · 0 comments
Open

Table component built-in edit_link, delete_link and view_link #657

lovasoa opened this issue Oct 30, 2024 Discussed in #656 · 0 comments
Labels
enhancement New feature or request

Comments

@lovasoa
Copy link
Collaborator

lovasoa commented Oct 30, 2024

Discussed in #656

Originally posted by xylle October 30, 2024
Hello,
I've started using SQLPage, which is very good. Would it be possible to add edit_link, delete_link and view_link functions to the table component, same as the list component ? You can sort and filter table, not list

How do I use the icons provided by SQLPage in my Markdown links?

I tried that, but it's not elegant :

SELECT 
    'table'                 AS component,
    'action'                AS markdown,
    'Listes des serveurs'   AS description,
    TRUE                    AS sort,
    TRUE                    AS small,
    TRUE                    AS striped_rows,
    TRUE                    AS search;
SELECT 
    *,
    '[![](./icons/edit.svg "Édition")](formulaire_serveur.sql?serveur_id='|| id || ')' AS action,
    '[![](./icons/trash.svg "Suppression")](suppression_serveur.sql?serveur_id='|| id || ')' AS action
FROM serveurs;
```</div>
@lovasoa lovasoa added the enhancement New feature or request label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant