Added receipts list

This commit is contained in:
alexey
2025-02-20 23:56:47 +03:00
parent 895fb918b5
commit 0e894fafd6
7 changed files with 101 additions and 4 deletions

View File

@@ -139,10 +139,11 @@
title: 'Подтвердите удаление репозитория!',
content: '' +
'<div class="container">' +
'<form action="/gitdelete" class="formName" method="post">' +
'<form action="/gitdelete/<%= ERB::Util.url_encode(@page_name) %>" class="formName" method="post">' +
'<div class="text-danger mx-auto p-2">' +
'<label>Введите имя удаляемого репозитория</label>' +
'<input type="text" class="frmchk form-control" required name="reponamedup"/>' +
'<input type="hidden" class="frmchk form-control" id="repohid" name="repohid" value="<%= @page_name %>"/>' +
'</div>' +
'</form>' +
'</div>',
@@ -154,7 +155,7 @@
titleClass: 'text-danger mx-auto p-2',
btnClass: 'btn btn-danger',
action: function () {
var correct_name = $("#reponame").val();
var correct_name = this.$content.find("#repohid").val();
var name = this.$content.find('.frmchk').val();
if(!name){
$.alert({