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:
parent
4d9b9ecd5b
commit
3e5c6fec43
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
10
client/view/controls/file.js
Normal file
10
client/view/controls/file.js
Normal file
@ -0,0 +1,10 @@
|
||||
const BaseControl = require('./base');
|
||||
|
||||
class FileControl extends BaseControl {
|
||||
make() {
|
||||
super.make();
|
||||
this.input.setAttribute('type', 'file');
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = FileControl;
|
Loading…
Reference in New Issue
Block a user