Skip to content

Commit

Permalink
feat: Add modal alert in Authors
Browse files Browse the repository at this point in the history
Thanks to this modal, users are warned to be careful with the authors, which are permanent once the dataset is uploaded.
  • Loading branch information
drorganvidez committed Feb 18, 2024
1 parent 5b76f1b commit 062b140
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
27 changes: 26 additions & 1 deletion app/dataset/templates/dataset/upload_dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,32 @@ <h1 class="h3 mb-3">Basic info</h1>

</div>

<h1 class="h3 mb-3 mt-4">Authors</h1>
<h1 class="h3 mb-3 mt-4">
Authors
<a href="#" data-toggle="modal" data-target="#infoModal">
<i data-feather="info"></i> <!-- Usamos "info" porque Feather no tiene un ícono específico llamado "feather" para más info -->
</a>
</h1>

<!-- Modal -->
<div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="infoModalLabel" aria-hidden="true" style="display: none">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="infoModalLabel">Información Importante</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
¡Cuidado! Los autores no se pueden editar una vez que el dataset se haya subido a UVLHub. Esta funcionalidad estará disponible para futuras versiones.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
</div>
</div>
</div>
</div>

<div class="row" style="padding-left: 2rem">

Expand Down
2 changes: 1 addition & 1 deletion app/public/templates/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h2 class="card-title card-title-light">

<div class="card-body card-body-slim">

What are you waiting for to upload your fantastic models?
What are you waiting for to upload your fantastic feature models in UVL format?

<div class="row mt-2">

Expand Down
2 changes: 1 addition & 1 deletion scripts/update_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pip freeze | cut -d = -f 1 | xargs -n1 pip install --upgrade
# Update requirements.txt
pip freeze > ../requirements.txt

echo "Update completed!"
echo "Update completed!"º

0 comments on commit 062b140

Please sign in to comment.