added newsletter listing

This commit is contained in:
Anand Doshi 2012-08-24 14:47:10 +05:30
parent 3f8277b6bb
commit c6800106fb
2 changed files with 36 additions and 4 deletions

View File

@ -5,7 +5,7 @@
{
u'creation': '2012-08-23 18:49:12',
u'docstatus': 0,
u'modified': '2012-08-24 13:39:53',
u'modified': '2012-08-24 14:45:00',
u'modified_by': u'Administrator',
u'owner': u'Administrator'
},
@ -99,6 +99,7 @@
# DocField
{
'colour': u'White:FFF',
u'doctype': u'DocField',
'fieldname': u'contacts',
'fieldtype': u'Check',
@ -109,7 +110,6 @@
# DocField
{
'colour': u'White:FFF',
'default': u'0',
u'doctype': u'DocField',
'fieldname': u'customer_contacts',
'fieldtype': u'Check',
@ -120,7 +120,6 @@
# DocField
{
'colour': u'White:FFF',
'default': u'0',
u'doctype': u'DocField',
'fieldname': u'leads',
'fieldtype': u'Check',
@ -190,7 +189,6 @@
# DocField
{
'colour': u'White:FFF',
'default': u'0',
u'doctype': u'DocField',
'fieldname': u'email_sent',
'fieldtype': u'Check',

View File

@ -0,0 +1,34 @@
// ERPNext - web based ERP (http://erpnext.com)
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
wn.doclistviews['Newsletter'] = wn.views.ListView.extend({
init: function(doclistview) {
this._super(doclistview);
this.fields = this.fields.concat([
"`tabNewsletter`.subject",
"`tabNewsletter`.email_sent",
]);
},
columns: [
{width: '3%', content: 'check'},
{width: '5%', content: 'avatar'},
{width: '15%', content: 'name'},
{width: '55%', content: 'subject+tags'},
{width: '22%', content:'modified',
css: {'text-align': 'right', 'color':'#777'}}
],
});