mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 16:46:57 +00:00
WIP update.py
This commit is contained in:
parent
32d562e0b0
commit
efbe85bb12
@ -296,7 +296,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</form>></div>
|
||||
</form></div>
|
||||
<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
|
||||
<script>
|
||||
$(document).ready(function($) {
|
||||
@ -327,13 +327,17 @@
|
||||
$('.runner button.forUpdate').click(function(e) {
|
||||
e.preventDefault();
|
||||
let runner = $(this).parent().parent().parent();
|
||||
let atm_attribute_id = $(runner).find('.atm_attribute_id').attr("value");
|
||||
console.log(atm_attribute_id)
|
||||
let name = $(runner).find('.atm_attribute_name').val();
|
||||
let type = $(runner).find('.atm_attribute_type').val();
|
||||
let value = $(runner).find('.atm_attribute_value').val();
|
||||
console.log(name, type, value, bank_id, atm_id)
|
||||
$('.runner button.forUpdate').attr("disabled","disabled");
|
||||
$('.runner button.forSave').attr("disabled","disabled");
|
||||
$('.runner button.forDelete').attr("disabled","disabled");
|
||||
$.post('updateattribute/attribute', {
|
||||
'atm_attribute_id': atm_attribute_id,
|
||||
'name': name,
|
||||
'type': type,
|
||||
'value': value,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user