40 lines
1.9 KiB
PHTML
Executable File
40 lines
1.9 KiB
PHTML
Executable File
<div class="custombanner-body">
|
|
<form class="form-add-banner" method="POST" action="<?php echo $this->getUrl('*/*/new'); ?>" autocomplete="off" enctype="multipart/form-data" data-mage-init='{"validation":{}}'>
|
|
<?= $block->getBlockHtml('formkey') ?>
|
|
<div class="width-100 div-button-create">
|
|
<button type="submit" title="Submit" class="button-create">
|
|
<span>Add New Banner</span>
|
|
</button>
|
|
<a class="button-back" href="<?php echo $this->getUrl('*/*/'); ?>">
|
|
<img class="img-arrow-left" src="<?= $this->getViewFileUrl('IpSupply_CustomBanner::images/left-arrow.png'); ?>" />Back
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Body form -->
|
|
<div class="width-60 div-body-form">
|
|
<div class="width-100 input-line">
|
|
<label class="label" for="title"><span>Title (<span style="color: red;">*</span>)</span></label>
|
|
<input type="text" name="title" class="input-text" />
|
|
</div>
|
|
<div class="width-100 input-line">
|
|
<label class="label" for="image"><span>Image (<span style="color: red;">*</span>)</span></label>
|
|
<input type="file" name="image" class="input-text" />
|
|
</div>
|
|
<div class="width-100 input-line">
|
|
<label class="label" for="description"><span>Description (<span style="color: red;">*</span>)</span></label>
|
|
<input type="text" name="description" class="input-text" />
|
|
</div>
|
|
<div class="width-100 input-line">
|
|
<label class="label" for="url_redirect"><span>URL Redirect</span></label>
|
|
<input type="text" name="url_redirect" value="<?= $block->getData("bannerUrlRedirect"); ?>" class="input-text" />
|
|
</div>
|
|
<div class="width-100 input-line">
|
|
<label class="label" for="status"><span>Status (<span style="color: red;">*</span>)</span></label>
|
|
<label class="switch">
|
|
<input type="checkbox" name="status[]" value="active" checked>
|
|
<span class="slider round"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|