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

Hidden Class on Change View #5

Open
dowitsch opened this issue Nov 7, 2023 · 0 comments
Open

Hidden Class on Change View #5

dowitsch opened this issue Nov 7, 2023 · 0 comments

Comments

@dowitsch
Copy link

dowitsch commented Nov 7, 2023

There are a lot of hidden type in the history.html.twig:

                                        <div class="hidden md:block">
                                            <div>
                                                <p class="mt-2 flex items-center text-sm text-gray-500">
                                                    {% for audit in transaction %}
                                                        {% if audit.entry.type == 'insert' %}
                                                            {{ bootstrap_icon('plus-circle') }}
                                                        {% elseif audit.entry.type == 'update' %}
                                                            {{ bootstrap_icon('pencil-square') }}
                                                        {% elseif audit.entry.type == 'remove' %}
                                                            {{ bootstrap_icon('x-circle') }}
                                                        {% elseif audit.entry.type == 'associate' %}
                                                            {{ bootstrap_icon('link-45deg') }}
                                                        {% elseif audit.entry.type == 'dissociate' %}
                                                            {{ bootstrap_icon('dash-circle-fill') }}
                                                        {% endif %}
                                                        &nbsp; {{ ('wwd.'~audit.class|wwd_crud_entity_alias~'.title')|trans }} {{ ('whatwedo_crud_history.type.'~audit.entry.type)|trans }}
                                                    {% endfor %}
                                                </p>
                                            </div>
                                        </div>
                                        <div class="hidden md:block">
                                            <div>
                                                <p class="mt-2 flex items-center text-sm text-gray-500">
                                                <ul>
                                                    {% for audit in transaction %}
                                                        {% if audit.entry.type == 'insert' %}
                                                            {{ _self.insert(audit) }}
                                                        {% elseif audit.entry.type == 'update' %}
                                                            {{ _self.update(audit) }}
                                                        {% elseif audit.entry.type == 'remove' %}
                                                            {{ _self.remove(audit) }}
                                                        {% elseif audit.entry.type == 'associate' %}
                                                            {{ _self.associate(audit) }}
                                                        {% elseif audit.entry.type == 'dissociate' %}
                                                            {{ _self.dissociate(audit) }}
                                                        {% endif %}
                                                    {% endfor %}
                                                </ul>
                                                </p>
                                            </div>
                                        </div>

There is no reason for them to be there so far I can see and in the Demo Application it is only visible because somewhere there is in the css definied:

.md\:block {
  display: block
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant