46 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			PHTML
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			PHTML
		
	
	
		
			Executable File
		
	
	
<div class="custombanner-body">
 | 
						|
	<form class="form-add-banner" method="POST" action="<?php echo $this->getUrl("*/*/edit"); ?>" autocomplete="off" enctype="multipart/form-data" data-mage-init='{"validation":{}}'>
 | 
						|
		<?= $block->getBlockHtml('formkey') ?>
 | 
						|
		<div class="width-100 div-button-update">
 | 
						|
			<button type="submit" title="Submit" class="button-update">
 | 
						|
                <span>Save</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">
 | 
						|
			<input type="hidden" name="id" value="<?= $block->getData("bannerID"); ?>"/>
 | 
						|
			<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" value="<?= $block->getData("bannerTitle"); ?>" 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" value="<?= $block->getData("bannerDescription"); ?>" 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>
 | 
						|
				<!-- <input type="text" name="status" class="input-text" /> -->
 | 
						|
				<label class="switch">
 | 
						|
					<?php if($block->getData("bannerStatus") == "active"): ?>
 | 
						|
						<input type="checkbox" name="status[]" value="active" checked>
 | 
						|
					<?php else: ?>
 | 
						|
						<input type="checkbox" name="status[]" value="active">
 | 
						|
					<?php endif; ?>
 | 
						|
				    <span class="slider round"></span>
 | 
						|
				</label>
 | 
						|
			</div>
 | 
						|
		</div>
 | 
						|
	</form>
 | 
						|
</div>
 |