Add badget for page types
This commit is contained in:
parent
7dae1725bb
commit
ada0b61ee1
@ -41,7 +41,7 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
var clippy = $("#jsclippy").select2({
|
||||
placeholder: "<?php $L->p('Start typing to see a list of suggestions.') ?>",
|
||||
placeholder: "<?php $L->p('Start typing to see a list of suggestions') ?>",
|
||||
allowClear: true,
|
||||
width: "100%",
|
||||
theme: "bootstrap4",
|
||||
@ -64,7 +64,7 @@
|
||||
html += '<span class="fa fa-'+data.icon+'"></span>'+data.text+'</div></a>';
|
||||
} else {
|
||||
html += '<div class="search-suggestion">';
|
||||
html += '<div class="search-suggestion-item">'+data.text+'</div>';
|
||||
html += '<div class="search-suggestion-item">'+data.text+' <span class="badge badge-pill badge-light">'+data.type+'</span></div>';
|
||||
html += '<div class="search-suggestion-options">';
|
||||
html += '<a target="_blank" href="http://localhost:8000/testt">View</a>';
|
||||
html += '<a class="ml-2" href="http://localhost:8000/admin/edit-content/testt">Edit</a>';
|
||||
|
@ -238,7 +238,7 @@ echo Bootstrap::formOpen(array(
|
||||
templateResult: function(data) {
|
||||
var html = data.text
|
||||
if (data.type=="static") {
|
||||
html += " [" + data.type + "]"
|
||||
html += '<span class="badge badge-pill badge-light">'+data.type+'</span>';
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
@ -207,9 +207,9 @@ echo Bootstrap::formOpen(array(
|
||||
return markup;
|
||||
},
|
||||
templateResult: function(data) {
|
||||
var html = data.text
|
||||
var html = data.text;
|
||||
if (data.type=="static") {
|
||||
html += " [" + data.type + "]"
|
||||
html += '<span class="badge badge-pill badge-light">'+data.type+'</span>';
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
@ -389,5 +389,7 @@
|
||||
"preview": "Preview",
|
||||
"author-can-write-and-edit-their-own-content": "Author: Can write and edit their own content. Editor: Can write and edit the content of others.",
|
||||
"custom-fields": "Custom fields",
|
||||
"define-custom-fields-for-the-content": "Define custom fields for the content. Learn more about custom fields in the <a href='https://docs.bludit.com/en/content/custom-fields'>documentation</a>."
|
||||
"define-custom-fields-for-the-content": "Define custom fields for the content. Learn more about custom fields in the <a href='https://docs.bludit.com/en/content/custom-fields'>documentation</a>.",
|
||||
"start-typing-to-see-a-list-of-suggestions": "Start typing to see a list of suggestions.",
|
||||
"view": "View"
|
||||
}
|
Loading…
Reference in New Issue
Block a user