Created
October 29, 2012 18:38
-
-
Save sangramanand/3975598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- | |
Document : manageHomePageFeeds | |
Created on : 26 Oct, 2012, 3:39:31 PM | |
Author : anand | |
--%> | |
<%@ taglib prefix="gs" uri="/struts-tags" %> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
<title> Admin - manage home page feeds(raisin)</title> | |
<link rel="stylesheet" href="<gs:url value="/js/libs/datatables/1.9.4/css/jquery.dataTables.css"/>" /> | |
</head> | |
<body> | |
<style> | |
table.feeds-details { | |
height: 450px; | |
} | |
.details-container { | |
margin-left: -40px; | |
} | |
.header-class { | |
margin-left:0px; | |
margin-bottom:20px; | |
margin-top:10px; | |
} | |
</style> | |
<section> | |
<div class="row header-class"> | |
<div> | |
<h2>Managing Home Page Feeds</h2> | |
</div> | |
</div> | |
<div class="row"> | |
<div id="org-account-management-container" class="span13 org-info-content"><br/> | |
<div class="tabbable"> | |
<ul id="tab-list" class="nav nav-tabs"> | |
<li id="tvshows" class="org-account-mgmt-tabs active"> | |
<a href="#org-renew-date-container" data-toggle="tab">TV & Variety</a></li> | |
<li id="actors" class="org-account-mgmt-tabs" > | |
<a href="#org-current-package-container" data-toggle="tab">Actors</a></li> | |
<li id="actresses" class="org-account-mgmt-tabs" > | |
<a href="#org-upgrade-package-container" data-toggle="tab">Actresses</a></li> | |
<li id="brands" class="org-account-mgmt-tabs" > | |
<a href="#org-add-custom-dictionary-container" data-toggle="tab">Brands</a></li> | |
</ul> | |
</div> | |
</div> | |
<div class="row span13"> | |
<form class="form-search"> | |
<input | |
id="bbitems-search-input" | |
class="span4 search-query" | |
type="text" | |
placeholder="Search feeds"/> | |
<i id="bbitems-search-reset" class="icon-remove reset-search"></i> | |
<i id="bbitems-action-notifier"></i> | |
</form> | |
<div id="tvshows-feeds-list"> | |
</div> | |
<div id="actors-feeds-list"> | |
</div> | |
<div id="actresses-feeds-list"> | |
</div> | |
<div id="brands-feeds-list"> | |
</div> | |
</div> | |
</div> | |
</section> | |
<script type="text/javascript"> | |
var jsonifiedFeedList = $.parseJSON('<gs:property value="jsonifiedFeedList" | |
escapeJavaScript="true" escape="false"/>'); | |
$LAB | |
.script("<gs:url value="/js/json2.js" namespace="/"/>") | |
.script("<gs:url value="/js/libs/datatables/1.9.4/jquery.dataTables.min.js" namespace="/"/>") | |
.script("<gs:url value="/js/jquery-plugins/jquery.mustache.js" namespace="/"/>") | |
.script("<gs:url value="/js/util/DataTableWidget.js" namespace="/"/>").wait() | |
.script("<gs:url value="/js/apps/FormCreator.js" namespace="/"/>").wait() | |
.script("<gs:url value="/js/jquery-plugins/validate/jquery.validate.min.js" namespace="/"/>") | |
.script("<gs:url value="/js/admin/misc/ManageHomePageFeedsWidget.js" namespace="/"/>") | |
.script("<gs:url value="/js/jquery-plugins/validate/additional-methods.js" namespace="/"/>") | |
.script("<gs:url value="/js/jquery-plugins/datatables/datatables-utils.js" namespace="/"/>") | |
.wait(function() { | |
/* | |
This will make sure that all the scripts are loaded and only then proceed. | |
*/ | |
$.when(ROOT_APP.scriptLoader.promise()).then(function (response) { | |
var manageHomePageFeedsWidget = new ManageHomePageFeedsWidget({ | |
dom: { | |
container: $("#org-account-management-container"), | |
table: { | |
containerId: "home-page-feeds-list", | |
id: "home-page-feeds-list-table", | |
table: $("#home-page-feeds-list-table") | |
}, | |
search: { | |
input: $("#bbitems-search-input"), | |
reset: $("#bbitems-search-reset") | |
} | |
}, | |
data: { | |
jsonifiedDefaultFeedList:jsonifiedFeedList | |
}, | |
ui: { | |
rowClass: 'bbitems-row', | |
rowId: 'bbitems-row-', | |
nameCellClass: 'list-name-cell' | |
}, | |
model:{ | |
} | |
}); | |
manageHomePageFeedsWidget.show(); | |
}); | |
}); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment