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

Agregando grupos a new datasets #31

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Agregando grupos a new datasets #31

wants to merge 7 commits into from

Conversation

germankay
Copy link
Collaborator

@germankay germankay commented Dec 10, 2024

fixes #29

Se agrega la funsión para que alcrear un datases a traves del superset se pueda agregar a un grupo determinado o a varios.

image

@germankay germankay requested a review from avdata99 December 10, 2024 14:49
@germankay germankay self-assigned this Dec 10, 2024
Comment on lines 28 to 32
</select>
</div>

<!-- Grup list -->
{% set groups_available = h.groups_available('create_dataset') %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

groups_available ya fue definido en la vista. Esta disponible en el contexto

Suggested change
</select>
</div>
<!-- Grup list -->
{% set groups_available = h.groups_available('create_dataset') %}
</select>
</div>
<!-- Grup list -->

Comment on lines 38 to 39
<input class="form-check-input" type="checkbox" id="group_{{ group.id }}" name="ckan_group_id" value="{{ group.id }}"
{% if group.id in selected_groups %}checked{% endif %}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<input class="form-check-input" type="checkbox" id="group_{{ group.id }}" name="ckan_group_id" value="{{ group.id }}"
{% if group.id in selected_groups %}checked{% endif %}>
<input class="form-check-input" type="checkbox" id="group_{{ group.id }}" name="ckan_group_id" value="{{ group.id }}">

Nunca va a haber grupos preseleccionados. Siempre vamos a estar creando un dataset nuevo. Hay que sacar tambien selected_groups de la vista que llama a este templata

@germankay germankay requested a review from avdata99 December 12, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permitir agregar grupos de CKAN a nuevos datasets
2 participants