Skip to content

Commit 0fa9030

Browse files
Merge pull request #226 from D10S0VSkY-OSS/hotfix/schedule-edit
Hotfix/schedule edit
2 parents b90ce40 + 949b28f commit 0fa9030

8 files changed

Lines changed: 20 additions & 22 deletions

File tree

play-with-sld/kubernetes/k8s/sld-dashboard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
subdomain: primary
1818
containers:
1919
- name: sld-dashboard
20-
image: d10s0vsky/sld-dashboard:v3.4.0
20+
image: d10s0vsky/sld-dashboard:v3.4.1
2121
env:
2222
- name: PATH
2323
value: "/home/sld/.asdf/shims:/home/sld/.asdf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

sld-dashboard/app/base/static/assets/js/pagination.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ $(document).ready(function(){
2929
displayPage(1);
3030
}
3131

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

3733
// Existing search functionality
3834
$("#myInput").on("keyup", function() {

sld-dashboard/app/home/routes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,8 +1325,6 @@ def list_activity(limit):
13251325

13261326

13271327
# Users
1328-
1329-
13301328
@blueprint.route("/users-new", methods=["GET", "POST"])
13311329
@login_required
13321330
def new_user():
@@ -1580,7 +1578,7 @@ def delete_aws_account(aws_account_id):
15801578

15811579
if response.get("status_code") == 200:
15821580
flash(
1583-
f"Account Deleted"
1581+
"Account Deleted"
15841582
)
15851583
elif response.get("status_code") == 409:
15861584
flash(response["json"].get("detail"), "error")

sld-dashboard/app/home/templates/aws-list.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ <h2 class="h4">All aws accounts</h2>
134134
<div class="font-weight-bold small"><b></b><b></b></div>
135135
</div>
136136
</div>
137-
<!-- Pagination -->
137+
<!-- Pagination
138138
<nav>
139139
<ul class="pagination">
140140
<li class="page-item" id="previous-page"><a class="page-link" href="#">Previous</a></li>
141-
<!-- Page numbers will be dynamically inserted here -->
142141
<li class="page-item" id="next-page"><a class="page-link" href="#">Next</a></li>
143142
</ul>
144-
</nav>
143+
</nav>
144+
-->
145145
{% include 'includes/footer.html' %}
146146

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

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

sld-dashboard/app/home/templates/azure-list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ <h2 class="h4">All azure accounts</h2>
130130
<div class="font-weight-bold small"><b></b><b></b></div>
131131
</div>
132132
</div>
133-
<!-- Pagination -->
133+
<!-- Pagination
134134
<nav>
135135
<ul class="pagination">
136136
<li class="page-item" id="previous-page"><a class="page-link" href="#">Previous</a></li>
137-
<!-- Page numbers will be dynamically inserted here -->
138137
<li class="page-item" id="next-page"><a class="page-link" href="#">Next</a></li>
139138
</ul>
140139
</nav>
140+
-->
141141
{% include 'includes/footer.html' %}
142142

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

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

sld-dashboard/app/home/templates/custom-provider-list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ <h2 class="h4">All custom providers accounts</h2>
126126
<div class="font-weight-bold small"><b></b> <b></b></div>
127127
</div>
128128
</div>
129-
<!-- Pagination -->
129+
<!-- Pagination
130130
<nav>
131131
<ul class="pagination">
132132
<li class="page-item" id="previous-page"><a class="page-link" href="#">Previous</a></li>
133-
<!-- Page numbers will be dynamically inserted here -->
134133
<li class="page-item" id="next-page"><a class="page-link" href="#">Next</a></li>
135134
</ul>
136135
</nav>
136+
-->
137137

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

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

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

sld-dashboard/app/home/templates/deploys-list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ <h2 class="h4">All Deploys</h2>
216216
</td>
217217
<td>
218218
<div>
219-
<span style="font-size: 12px; font-weight: bold;">Start:</span>
219+
<span style="font-size: 12px; font-weight: bold;">Apply:</span>
220220
<span class="font-weight-bold">{{ deploy.start_time }}</span>
221221
</div>
222222
<div>
@@ -260,6 +260,10 @@ <h2 class="h4">All Deploys</h2>
260260
<span class="fas fa-clone mr-2"></span>
261261
Clone
262262
</a>
263+
<a title="Edit Schedule" class="dropdown-item" href="{{ url_for('.edit_schedule',deploy_id=deploy.id)}}">
264+
<span class="far fa-clock mr-0"></span>
265+
Schedule
266+
</a>
263267
<a class="dropdown-item text-danger" data-toggle="modal" data-target="#DestroyModalCenter-{{deploy.id}}">
264268
<span class="fas fa-trash-alt mr-2"></span>
265269
Destroy

sld-dashboard/app/home/templates/gcp-list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ <h2 class="h4">All gcp accounts</h2>
126126
<div class="font-weight-bold small"><b></b> <b></b></div>
127127
</div>
128128
</div>
129-
<!-- Pagination -->
129+
<!-- Pagination
130130
<nav>
131131
<ul class="pagination">
132132
<li class="page-item" id="previous-page"><a class="page-link" href="#">Previous</a></li>
133-
<!-- Page numbers will be dynamically inserted here -->
134133
<li class="page-item" id="next-page"><a class="page-link" href="#">Next</a></li>
135134
</ul>
136135
</nav>
136+
-->
137137
{% include 'includes/footer.html' %}
138138

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

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

0 commit comments

Comments
 (0)