/
addspin
/
tlss
Обзор
Документация
Войти
/
addspin
/
tlss
Код
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
main
template/add_server/addServerEntity.html
105 строк
4 KB
addspin
update: add key langht, lang fix
28 окт 2025, 15:31
28 окт 2025, 15:31
07e4515
Код
Авторство
О чём код?
<!-- SERVERS ENTITIES --> {{template "header-tpl" .}} <!-- {{template "menu-tpl" .}} --> {{template "body-tpl" .}} <!-- <div class="containers"> --> <div class="container-fluid"> <div class="row"> <!-- Левое меню --> <div class="left-menu-core"> {{template "menu-left-tpl" .}} </div> <!-- Блок формы создания сущности --> <div class="col p-1"> <div class="row"> <div class="col-2"></div> <div class="col-7"> <div><ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#" hx-get="/overview" hx-target="#body" hx-swap="innerHTML transition:true" hx-push-url="true">Overview</a></li> <li class="breadcrumb-item active" aria-current="page">Add entities</li> <li class="breadcrumb-item"><a href="#" hx-get="/add_server" hx-target="#body" hx-swap="innerHTML transition:true" hx-push-url="true">Add servers</a></li> <li class="breadcrumb-item"><a href="#" hx-get="/add_certs" hx-target="#body" hx-swap="innerHTML transition:true" hx-push-url="true">Add servers certs</a></li> <li class="breadcrumb-item"><a href="#" hx-get="/revoke_certs" hx-target="#body" hx-swap="innerHTML transition:true" hx-push-url="true">Revoke servers certs</a></li> </ol></div> <div class="core-servers"> <form class="" hx-post="/add_server_entity" hx-target="#body" hx-ext="json-enc-custom" parse-types="true" hx-on::after-request=" if (event.detail.xhr.responseText) { try { const response = JSON.parse(event.detail.xhr.responseText); if (response.status === 'error') { Swal.fire({ showClass: { popup: 'animate__animated animate__fadeInUp animate__fast' }, hideClass: { popup: 'animate__animated animate__fadeOutDown animate__fast' }, customClass: 'custom-alert', icon: 'error', title: 'Error', text: response.message, confirmButtonColor: '#3085d6' }); } } catch (e) {} } "> <label for="inputUser" id= "" class="form_lable" >Add new server entity</label> <div class="input_border color-form-servers"> <div class="row g-3 form_center_entity"> <div class="col "> <input type="text" class="c_input" id="hostname" name="hostname" placeholder="Entity name" required> </div> </div> <div class="row g-3 form_center_entity"> <div class="col "> <input type="text" class="c_input " id="description" name="description" placeholder="Entity description" required> </div> </div> <div class="row g-3 form_center"> <div class="col"> <button type="submit" class="btn-custom btn-custom-servers mt-2">Add server entity</button> </div> </div> </div> </form> </div> </div> <div class="row mt-2"> <div class="col-12"> <div id="search-servers" class="search-input-container"> <input type="text" class="search-input" name="search-servers" placeholder="Search entities"> </div> <div id="response" class="servers_table"> {{template "entityServerList-tpl" .}} </div> </div> </div> </div> </div> </div> </div> <!-- index end template --> {{template "footer-tpl" .}} <!-- </div> </body> </html> -->