PHP Classes

File: themes/backend/components/form/image.twig

Recommend this page to a friend!
  Packages of Aby Dahana   Aksara   themes/backend/components/form/image.twig   Download  
File: themes/backend/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: Development (#663)

* feat: custom format callback on set_field, refine app stats and necessary things

* fix: prevent builder build existing components on develompent environment
chore: awokawok
Date: 3 months ago
Size: 889 bytes
 

Contents

Class file image Download
<div data-provides="fileupload" class="fileupload fileupload-new text-sm-center {% if content and '/thumbs/' not in content %}w-100{% endif %}"> <span class="btn btn-file d-block"> <input type="file" name="{{ name }}" accept="{{ accept }}" role="image-upload" id="{{ name }}_input" {{ attribution | raw }} {{ readonly }} /> <div class="fileupload-new text-center {% if content and '/thumbs/' not in content %}w-100{% endif %}"> <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>