Browse Source
Merge pull request #468 from ateshuseyin/assets-placeholder
AssetsView input placeholder text from configuration
pull/483/head
Artur Arseniev
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
2 deletions
-
src/asset_manager/config/config.js
-
src/asset_manager/view/AssetsView.js
|
|
@ -1,4 +1,4 @@ |
|
|
module.exports = { |
|
|
module.exports = { |
|
|
// Default assets
|
|
|
// Default assets
|
|
|
// eg. [
|
|
|
// eg. [
|
|
|
// 'https://...image1.png',
|
|
|
// 'https://...image1.png',
|
|
|
@ -76,4 +76,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
// Default title for the asset manager modal
|
|
|
// Default title for the asset manager modal
|
|
|
modalTitle: 'Select Image', |
|
|
modalTitle: 'Select Image', |
|
|
|
|
|
|
|
|
|
|
|
//Default placeholder for input
|
|
|
|
|
|
inputPlaceholder: 'http://path/to/the/image.jpg' |
|
|
}; |
|
|
}; |
|
|
|
|
|
@ -16,7 +16,7 @@ module.exports = Backbone.View.extend({ |
|
|
<div class="${pfx}assets-header"> |
|
|
<div class="${pfx}assets-header"> |
|
|
<form class="${pfx}add-asset"> |
|
|
<form class="${pfx}add-asset"> |
|
|
<div class="${ppfx}field ${pfx}add-field"> |
|
|
<div class="${ppfx}field ${pfx}add-field"> |
|
|
<input placeholder="http://path/to/the/image.jpg"/> |
|
|
<input placeholder="${view.config.inputPlaceholder}"/> |
|
|
</div> |
|
|
</div> |
|
|
<button class="${ppfx}btn-prim">${view.config.addBtnText}</button> |
|
|
<button class="${ppfx}btn-prim">${view.config.addBtnText}</button> |
|
|
<div style="clear:both"></div> |
|
|
<div style="clear:both"></div> |
|
|
|