2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

Add File control

This commit is contained in:
Faris Ansari 2018-03-30 00:21:24 +05:30
parent 4d9b9ecd5b
commit 3e5c6fec43
5 changed files with 14 additions and 0 deletions

View File

@ -448,6 +448,7 @@ module.exports = class Database extends Observable {
, 'Password': 'text'
, 'Select': 'text'
, 'Read Only': 'text'
, 'File': 'text'
, 'Attach': 'text'
, 'Attach Image': 'text'
, 'Signature': 'text'

View File

@ -135,6 +135,7 @@ module.exports = class HTTPClient extends Observable {
, 'Password': true
, 'Select': true
, 'Read Only': true
, 'File': true
, 'Attach': true
, 'Attach Image': true
, 'Signature': true

View File

@ -197,6 +197,7 @@ module.exports = class mysqlDatabase extends Database{
, 'Password': 'varchar(140)'
, 'Select': 'VARCHAR(140)'
, 'Read Only': 'varchar(140)'
, 'File': 'text'
, 'Attach': 'text'
, 'Attach Image': 'text'
, 'Signature': 'text'

View File

@ -236,6 +236,7 @@ module.exports = class sqliteDatabase extends Database {
, 'Password': 'text'
, 'Select': 'text'
, 'Read Only': 'text'
, 'File': 'text'
, 'Attach': 'text'
, 'Attach Image': 'text'
, 'Signature': 'text'

View File

@ -0,0 +1,10 @@
const BaseControl = require('./base');
class FileControl extends BaseControl {
make() {
super.make();
this.input.setAttribute('type', 'file');
}
};
module.exports = FileControl;