Skip to content

Commit

Permalink
🐛fix: disbale pagination cloud accounts and add edit schedule when de…
Browse files Browse the repository at this point in the history
…stroy
  • Loading branch information
D10S0VSkY-OSS committed Dec 28, 2023
1 parent b90ce40 commit de314a4
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
4 changes: 0 additions & 4 deletions sld-dashboard/app/base/static/assets/js/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ $(document).ready(function(){
displayPage(1);
}

// Event Delegation for edit buttons and other interactive elements
$(document).on('click', '.edit-button', function() {
// Aquí iría el código para manejar la edición
});

// Existing search functionality
$("#myInput").on("keyup", function() {
Expand Down
4 changes: 1 addition & 3 deletions sld-dashboard/app/home/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,6 @@ def list_activity(limit):


# Users


@blueprint.route("/users-new", methods=["GET", "POST"])
@login_required
def new_user():
Expand Down Expand Up @@ -1580,7 +1578,7 @@ def delete_aws_account(aws_account_id):

if response.get("status_code") == 200:
flash(
f"Account Deleted"
"Account Deleted"
)
elif response.get("status_code") == 409:
flash(response["json"].get("detail"), "error")
Expand Down
8 changes: 4 additions & 4 deletions sld-dashboard/app/home/templates/aws-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ <h2 class="h4">All aws accounts</h2>
<div class="font-weight-bold small"><b></b><b></b></div>
</div>
</div>
<!-- Pagination -->
<!-- Pagination
<nav>
<ul class="pagination">
<li class="page-item" id="previous-page"><a class="page-link" href="#">Previous</a></li>
<!-- Page numbers will be dynamically inserted here -->
<li class="page-item" id="next-page"><a class="page-link" href="#">Next</a></li>
</ul>
</nav>
</nav>
-->
{% include 'includes/footer.html' %}

</main>
Expand All @@ -150,6 +150,6 @@ <h2 class="h4">All aws accounts</h2>

<!-- Specific Page JS goes HERE -->
{% block javascripts %}
<script src="/static/assets/js/pagination.js"></script>
<!-- <script src="/static/assets/js/pagination.js"></script> -->
{% endblock javascripts %}

6 changes: 3 additions & 3 deletions sld-dashboard/app/home/templates/azure-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ <h2 class="h4">All azure accounts</h2>
<div class="font-weight-bold small"><b></b><b></b></div>
</div>
</div>
<!-- Pagination -->
<!-- Pagination
<nav>
<ul class="pagination">
<li class="page-item" id="previous-page"><a class="page-link" href="#">Previous</a></li>
<!-- Page numbers will be dynamically inserted here -->
<li class="page-item" id="next-page"><a class="page-link" href="#">Next</a></li>
</ul>
</nav>
-->
{% include 'includes/footer.html' %}

</main>
Expand All @@ -146,5 +146,5 @@ <h2 class="h4">All azure accounts</h2>

<!-- Specific Page JS goes HERE -->
{% block javascripts %}
<script src="/static/assets/js/pagination.js"></script>
<!-- <script src="/static/assets/js/pagination.js"></script> -->
{% endblock javascripts %}
6 changes: 3 additions & 3 deletions sld-dashboard/app/home/templates/custom-provider-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ <h2 class="h4">All custom providers accounts</h2>
<div class="font-weight-bold small"><b></b> <b></b></div>
</div>
</div>
<!-- Pagination -->
<!-- Pagination
<nav>
<ul class="pagination">
<li class="page-item" id="previous-page"><a class="page-link" href="#">Previous</a></li>
<!-- Page numbers will be dynamically inserted here -->
<li class="page-item" id="next-page"><a class="page-link" href="#">Next</a></li>
</ul>
</nav>
-->

{% include 'includes/footer.html' %}

Expand All @@ -143,5 +143,5 @@ <h2 class="h4">All custom providers accounts</h2>

<!-- Specific Page JS goes HERE -->
{% block javascripts %}
<script src="/static/assets/js/pagination.js"></script>
<!-- <script src="/static/assets/js/pagination.js"></script> -->
{% endblock javascripts %}
6 changes: 5 additions & 1 deletion sld-dashboard/app/home/templates/deploys-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ <h2 class="h4">All Deploys</h2>
</td>
<td>
<div>
<span style="font-size: 12px; font-weight: bold;">Start:</span>
<span style="font-size: 12px; font-weight: bold;">Apply:</span>
<span class="font-weight-bold">{{ deploy.start_time }}</span>
</div>
<div>
Expand Down Expand Up @@ -260,6 +260,10 @@ <h2 class="h4">All Deploys</h2>
<span class="fas fa-clone mr-2"></span>
Clone
</a>
<a title="Edit Schedule" class="dropdown-item" href="{{ url_for('.edit_schedule',deploy_id=deploy.id)}}">
<span class="far fa-clock mr-0"></span>
Schedule
</a>
<a class="dropdown-item text-danger" data-toggle="modal" data-target="#DestroyModalCenter-{{deploy.id}}">
<span class="fas fa-trash-alt mr-2"></span>
Destroy
Expand Down
6 changes: 3 additions & 3 deletions sld-dashboard/app/home/templates/gcp-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ <h2 class="h4">All gcp accounts</h2>
<div class="font-weight-bold small"><b></b> <b></b></div>
</div>
</div>
<!-- Pagination -->
<!-- Pagination
<nav>
<ul class="pagination">
<li class="page-item" id="previous-page"><a class="page-link" href="#">Previous</a></li>
<!-- Page numbers will be dynamically inserted here -->
<li class="page-item" id="next-page"><a class="page-link" href="#">Next</a></li>
</ul>
</nav>
-->
{% include 'includes/footer.html' %}

</main>
Expand All @@ -142,5 +142,5 @@ <h2 class="h4">All gcp accounts</h2>

<!-- Specific Page JS goes HERE -->
{% block javascripts %}
<script src="/static/assets/js/pagination.js"></script>
<!-- <script src="/static/assets/js/pagination.js"></script> -->
{% endblock javascripts %}

0 comments on commit de314a4

Please sign in to comment.