Files
2026-09-15 10:26:34 +08:00

25 lines
880 B
PHTML

<?php /* @var $block \Magento\Framework\View\Element\Template */ ?>
<form action="<?= $block->escapeUrl($block->getUrl('commerce_customer/avatr/post')) ?>" method="post" enctype="multipart/form-data">
<?= $block->getBlockHtml('formkey') ?>
<div class="fields-group">
<label for="avatr">请上传:</label>
<input type="file" name="avatr" id="avatr" required accept=".xls,.xlsx" />
</div>
<div class="fields-group" style="display: none">
<label for="evn">环境:</label>
<select name="env" id="env">
<option value="prod">正式</option>
<!-- <option value="dev">测试</option>-->
</select>
</div>
<input type="submit" value="提交">
</form>
<style>
.fields-group{
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.fields-group select{width: auto}
</style>