Conversation
43915be to
da059d4
Compare
…ents/tablesort-indicator.html.twig
rimi-itk
left a comment
There was a problem hiding this comment.
Looks good. Some comments and suggestions added.
| ``` | ||
|
|
||
| ## Delvelopment command line incantations | ||
| ## Development command line incantations |
| This ensures that, if clean URLs are off, the 'q' is added first, | ||
| as a hidden form element, so that it shows up first in the POST URL. |
There was a problem hiding this comment.
Are you sure? If you POST you don't add anything to the URL. Do you mean GET? You should always use GET to get stuff (Drupal breaks this rule in multiple places).
There was a problem hiding this comment.
I am not sure. I copy pasted this solely to add the grid classes to <form.... should I change the comment to GET?
There was a problem hiding this comment.
Can't (better) exposed filters add the css class names? And make sure that you GET?
…ents/form-element.html.twig Co-authored-by: Mikkel Ricky <rimi@aarhus.dk>
…view.html.twig Co-authored-by: Mikkel Ricky <rimi@aarhus.dk>
| <a href="/node/add/project" class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center" data-drupal-link-system-path="node/add/project"> | ||
| {% set path = path('node.add', {node_type: 'project'}) %} | ||
|
|
||
| <a href={{ path }} class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center" data-drupal-link-system-path="node/add/project"> |
There was a problem hiding this comment.
What is the data-drupal-link-system-path attribute used for? Should it be set using path?
| <a href={{ path }} class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center" data-drupal-link-system-path="node/add/project"> | |
| <a href={{ path }} class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center" data-drupal-link-system-path="{{ path }}"> |
There was a problem hiding this comment.
| <a href={{ path }} class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center" data-drupal-link-system-path="node/add/project"> | |
| <a href="{{ path }}" class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center"> |
| } | ||
|
|
||
| /* This css class is added on the projects view (admin/structure/views/view/projects) */ | ||
| .projects-view { |
| <a href="/node/add/project" class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center" data-drupal-link-system-path="node/add/project"> | ||
| {% set path = path('node.add', {node_type: 'project'}) %} | ||
|
|
||
| <a href={{ path }} class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center" data-drupal-link-system-path="node/add/project"> |
There was a problem hiding this comment.
| <a href={{ path }} class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center" data-drupal-link-system-path="node/add/project"> | |
| <a href="{{ path }}" class="font-thin bg-green-700 hover:bg-green-600 text-white py-2 px-4 rounded inline-flex items-center"> |

Link to ticket
https://leantime.itkdev.dk/dashboard/show#/tickets/showTicket/2903
Description
Screenshot of the result