PHP Classes

File: aksara/Views/components/form/image.twig

Recommend this page to a friend!
  Classes of Aby Dahana   Aksara   aksara/Views/components/form/image.twig   Download  
File: aksara/Views/components/form/image.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change:
Date: 1 month ago
Size: 744 bytes
 

Contents

Class file image Download
<div data-provides="fileupload" class="fileupload fileupload-new text-sm-center w-100"> <span class="btn btn-file d-block"> <input type="file" name="{{ name }}" accept="{{ accept }}" role="image-upload" id="{{ name }}_input"{{ readonly }} /> <div class="fileupload-new text-center"> <img class="img-fluid upload_preview" src="{{ content }}" /> </div> <button type="button" class="btn btn-sm btn-danger rounded-circle position-absolute top-0 end-0" onclick="jExec($(this).closest('.fileupload').find('input[type=file]').val(''), $(this).closest('.fileupload').find('img').attr('src', '{{ placeholder }}'))"> <i class="mdi mdi-delete"></i> </button> </span> </div>