85 lines
3.8 KiB
XML
85 lines
3.8 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
|
||
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||
|
|
<xsl:output method="html" encoding="utf-8" indent="yes"/>
|
||
|
|
|
||
|
|
<!-- Parameters -->
|
||
|
|
|
||
|
|
<xsl:param name="VERSION">1.0</xsl:param>
|
||
|
|
<xsl:param name="PAGE-TITLE">Edit History Code</xsl:param>
|
||
|
|
<xsl:param name="PAGE-NAME">editHistoryCode</xsl:param>
|
||
|
|
|
||
|
|
<xsl:template match="/">
|
||
|
|
|
||
|
|
<script src="js/{$PAGE-NAME}.js?version={$VERSION}"/>
|
||
|
|
|
||
|
|
<div class="{$PAGE-NAME}">
|
||
|
|
|
||
|
|
<div class="card">
|
||
|
|
|
||
|
|
<div class="card-header bg-primary text-white p-1 ps-3 border-bottom-0">
|
||
|
|
<i class="bi bi-plus-lg me-2"/>
|
||
|
|
<xsl:value-of select="$PAGE-TITLE"/>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="card-body">
|
||
|
|
|
||
|
|
<form action="" name="{$PAGE-NAME}" method="post" id="{$PAGE-NAME}">
|
||
|
|
|
||
|
|
<input type="hidden" name="action" value="HistoryCodes.editHistoryCode"/>
|
||
|
|
<input type="hidden" name="step" value="update"/>
|
||
|
|
|
||
|
|
<input type="hidden" name="historycode_serial" value="{//historycodes/record/historycode_serial}"/>
|
||
|
|
|
||
|
|
<div class="col-lg-6 mb-3">
|
||
|
|
<label class="form-label" for="historycode_code">Code</label>
|
||
|
|
<input type="text" class="form-control form-control-sm" name="historycode_code" id="historycode_code" maxlength="1" autocomplete="off" autofocus="autofocus"
|
||
|
|
value="{//historycodes/record/historycode_code}"/>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-lg-6 mb-3">
|
||
|
|
<label class="form-label" for="historycode_description">Description</label>
|
||
|
|
<input type="text" class="form-control form-control-sm" name="historycode_description" id="historycode_description" maxlength="120" autocomplete="off"
|
||
|
|
value="{//historycodes/record/historycode_description}"/>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="row">
|
||
|
|
|
||
|
|
<label class="mb-1">Active Status</label>
|
||
|
|
|
||
|
|
<div class="col-auto mb-3">
|
||
|
|
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input" type="checkbox" name="historycode_active" id="historycode_active" value="true">
|
||
|
|
<xsl:if test="boolean(number(//historycodes/record/historycode_active)) = true()">
|
||
|
|
<xsl:attribute name="checked"/>
|
||
|
|
</xsl:if>
|
||
|
|
</input>
|
||
|
|
<label class="form-check-label" for="historycode_active">Active</label>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</form>
|
||
|
|
|
||
|
|
<div class="buttons mt-4 mb-2">
|
||
|
|
<button type="button" class="btn btn-sm btn-primary me-2 btnCancel">
|
||
|
|
<i class="bi bi-box-arrow-left me-2"/>Cancel</button>
|
||
|
|
<button type="button" class="btn btn-sm btn-primary me-2 btnSave">
|
||
|
|
<i class="bi bi-save me-2"/>Save</button>
|
||
|
|
<button type="button" class="btn btn-sm btn-primary me-2 btnDelete">
|
||
|
|
<i class="bi bi-trash me-2"/>Delete</button>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</xsl:template>
|
||
|
|
|
||
|
|
</xsl:stylesheet>
|