- Implemented test scripts for vTiger account retrieval, contact data, and modules. - Created a detailed test suite for the ticket module, covering database schema validation, ticket number generation, prepaid card constraints, and service logic. - Added tests for vTiger field inspection and various queries related to accounts and sales orders. - Introduced SQL migration scripts for the ALSO Cloud Billing foundation, including import jobs, lines, and mapping tables with necessary constraints and indices. - Enhanced workflow columns in the import lines table to support matching and validation timestamps.
11 lines
565 B
Python
11 lines
565 B
Python
with open("app/modules/hardware/templates/detail.html", "r") as f:
|
|
content = f.read()
|
|
|
|
target = ' <a href="/hardware/{{ hardware.id }}/edit" class="btn btn-sm btn-outline-primary" style="opacity: 0.8;">'
|
|
replacement = ' <button onclick="openManualHelp(\'Hardware\')" class="btn btn-sm btn-outline-info" title="Hjælp til Hardware"><i class="bi bi-question-lg"></i></button>\n' + target
|
|
|
|
content = content.replace(target, replacement)
|
|
|
|
with open("app/modules/hardware/templates/detail.html", "w") as f:
|
|
f.write(content)
|