mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Renamed feedback to comments
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39904 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1e02df02f9
commit
3d5d9200ca
@ -9,7 +9,7 @@ Director::addRules(50, array(
|
||||
'admin/newsletter/$Action/$ID' => 'NewsletterAdmin',
|
||||
'admin/reports/$Action/$ID' => 'ReportAdmin',
|
||||
'admin/assets/$Action/$ID' => 'AssetAdmin',
|
||||
'admin/feedback/$Action' => 'FeedbackAdmin',
|
||||
'admin/comments/$Action' => 'CommentAdmin',
|
||||
'admin/ReportField/$Action/$ID/$Type/$OtherID' => 'ReportField_Controller',
|
||||
'admin/bulkload/$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
|
||||
'admin/$Action/$ID/$OtherID' => 'CMSMain',
|
||||
|
@ -1,19 +1,19 @@
|
||||
<?php
|
||||
|
||||
class FeedbackAdmin extends LeftAndMain {
|
||||
class CommentAdmin extends LeftAndMain {
|
||||
|
||||
public function init() {
|
||||
parent::init();
|
||||
|
||||
Requirements::javascript("cms/javascript/FeedbackAdmin_right.js");
|
||||
Requirements::javascript("cms/javascript/CommentAdmin_right.js");
|
||||
}
|
||||
|
||||
public function Link($action = null) {
|
||||
return "admin/feedback/$action";
|
||||
return "admin/comments/$action";
|
||||
}
|
||||
|
||||
public function showtable($params) {
|
||||
return $this->getLastFormIn($this->renderWith('FeedbackAdmin_right'));
|
||||
return $this->getLastFormIn($this->renderWith('CommentAdmin_right'));
|
||||
}
|
||||
|
||||
public function Section() {
|
@ -154,7 +154,7 @@ abstract class LeftAndMain extends Controller {
|
||||
"Newsletters" => array("newsletter", "admin/newsletter/", "NewsletterAdmin"),
|
||||
"Reports" => array("report", "admin/reports/", "ReportAdmin"),
|
||||
"Security" => array("security", "admin/security/", "SecurityAdmin"),
|
||||
"Feedback" => array("feedback", "admin/feedback/", "FeedbackAdmin"),
|
||||
"Comments" => array("comments", "admin/comments/", "CommentAdmin"),
|
||||
"Help" => array("help", "http://userhelp.silverstripe.com"),
|
||||
);
|
||||
|
||||
|
@ -201,7 +201,7 @@ html>body #top #MainMenu li {
|
||||
#top #MainMenu #Menu-report { background-image: url(../images/mainmenu/reports.gif); }
|
||||
#top #MainMenu #Menu-newsletter { background-image: url(../images/mainmenu/emails.gif); }
|
||||
#top #MainMenu #Menu-files { background-image: url(../images/mainmenu/files.gif); }
|
||||
#top #MainMenu #Menu-feedback { background-image: url(../images/mainmenu/feedback.gif); }
|
||||
#top #MainMenu #Menu-comments { background-image: url(../images/mainmenu/comments.gif); }
|
||||
|
||||
#top #MainMenu #Menu-help { background-image: url(../images/mainmenu/help.gif);
|
||||
float: right;
|
||||
|
Before Width: | Height: | Size: 743 B After Width: | Height: | Size: 743 B |
@ -3,7 +3,7 @@ Behaviour.register({
|
||||
getPageFromServer : function(id) {
|
||||
statusMessage("loading...");
|
||||
|
||||
var requestURL = 'admin/feedback/showtable/' + id;
|
||||
var requestURL = 'admin/comments/showtable/' + id;
|
||||
|
||||
this.loadURLFromServer(requestURL);
|
||||
|
@ -2,13 +2,13 @@
|
||||
<li id="$ID" class="Root"><a>Comments</a>
|
||||
<ul>
|
||||
<li id="record-approved" <% if Section=approved %>class="current"<% end_if %>>
|
||||
<a href="$baseURL/admin/feedback/showtable/approved" title="Approved">Approved</a>
|
||||
<a href="$baseURL/admin/comments/showtable/approved" title="Approved">Approved</a>
|
||||
</li>
|
||||
<li id="record-unmoderated" <% if Section=unmoderated %>class="current"<% end_if %>>
|
||||
<a href="$baseURL/admin/feedback/showtable/unmoderated" title="Awaiting Moderation">Awaiting Moderation</a>
|
||||
<a href="$baseURL/admin/comments/showtable/unmoderated" title="Awaiting Moderation">Awaiting Moderation</a>
|
||||
</li>
|
||||
<li id="record-spam">
|
||||
<a href="$baseURL/admin/feedback/showtable/spam" title="Spam" <% if Section=spam %>class="current"<% end_if %>>Spam</a>
|
||||
<a href="$baseURL/admin/comments/showtable/spam" title="Spam" <% if Section=spam %>class="current"<% end_if %>>Spam</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
7
templates/Includes/CommentAdmin_left.ss
Normal file
7
templates/Includes/CommentAdmin_left.ss
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="title"><div>Comments</div></div>
|
||||
|
||||
<div id="treepanes">
|
||||
<div id="sitetree_holder">
|
||||
<% include CommentAdmin_SiteTree %>
|
||||
</div>
|
||||
</div>
|
14
templates/Includes/CommentAdmin_right.ss
Normal file
14
templates/Includes/CommentAdmin_right.ss
Normal file
@ -0,0 +1,14 @@
|
||||
<div class="title"><div>Comment Management</div></div>
|
||||
|
||||
<div id="form_actions_right" class="ajaxActions">
|
||||
</div>
|
||||
|
||||
<% if EditForm %>
|
||||
$EditForm
|
||||
<% else %>
|
||||
<form id="Form_EditForm" action="admin/comments?executeForm=EditForm" method="post" enctype="multipart/form-data">
|
||||
<p>Welcome to the $ApplicationName comment management. Please select a folder in the tree on the left.</p>
|
||||
</form>
|
||||
<% end_if %>
|
||||
|
||||
<p id="statusMessage" style="visibility:hidden"></p>
|
@ -1,7 +0,0 @@
|
||||
<div class="title"><div>Feedback</div></div>
|
||||
|
||||
<div id="treepanes">
|
||||
<div id="sitetree_holder">
|
||||
<% include FeedbackAdmin_SiteTree %>
|
||||
</div>
|
||||
</div>
|
@ -1,14 +0,0 @@
|
||||
<div class="title"><div>Feedback Management</div></div>
|
||||
|
||||
<div id="form_actions_right" class="ajaxActions">
|
||||
</div>
|
||||
|
||||
<% if EditForm %>
|
||||
$EditForm
|
||||
<% else %>
|
||||
<form id="Form_EditForm" action="admin/feedback?executeForm=EditForm" method="post" enctype="multipart/form-data">
|
||||
<p>Welcome to the $ApplicationName feedback management. Please select a folder in the tree on the left.</p>
|
||||
</form>
|
||||
<% end_if %>
|
||||
|
||||
<p id="statusMessage" style="visibility:hidden"></p>
|
Loading…
Reference in New Issue
Block a user