add registered-only checkbox option to widgets

v1.18.x
psychobunny 11 years ago
parent 126260a027
commit 0be414dab9

@ -131,7 +131,8 @@ adminController.themes.get = function(req, res, next) {
}, function(err) { }, function(err) {
for (var w in widgetData.widgets) { for (var w in widgetData.widgets) {
if (widgetData.widgets.hasOwnProperty(w)) { if (widgetData.widgets.hasOwnProperty(w)) {
widgetData.widgets[w].content += "<br /><label>Title:</label><input type=\"text\" class=\"form-control\" name=\"title\" placeholder=\"Title (only shown on some containers)\" /><br /><label>Container:</label><textarea rows=\"4\" class=\"form-control container-html\" name=\"container\" placeholder=\"Drag and drop a container or enter HTML here.\"></textarea>"; // if this gets anymore complicated, it needs to be a template
widgetData.widgets[w].content += "<br /><label>Title:</label><input type=\"text\" class=\"form-control\" name=\"title\" placeholder=\"Title (only shown on some containers)\" /><br /><label>Container:</label><textarea rows=\"4\" class=\"form-control container-html\" name=\"container\" placeholder=\"Drag and drop a container or enter HTML here.\"></textarea><div class=\"checkbox\"><label><input name=\"registered-only\" type=\"checkbox\"> Hide from anonymous users?</label></div>";
} }
} }

Loading…
Cancel
Save