[cleanup] started responsive layouts and removed tinymce

This commit is contained in:
Rushabh Mehta 2013-04-15 17:02:20 +05:30
parent edfeade5a6
commit ac118c8822
9 changed files with 5 additions and 224 deletions

View File

@ -1,4 +1,4 @@
<div class="layout-wrapper layout-wrapper-background">
<div class="appframe span12">
<div class="appframe-area"></div>
<div class="layout-main">
<div class="tree-area"></div>

View File

@ -1,28 +1,5 @@
<div class="layout_wrapper">
<div class="appframe span12">
<div id="fs_header"></div>
<!-- table.statement td { vertical-align: middle; } table.statement td select { width: 100px; } table.stmt_table { table-layout: fixed; border-collapse: collapse; } table.stmt_table td { vertical-align: middle; padding: 2px; } td.stmt_level0 { font-weight: bold; font-size: 14px; border-bottom: 1px solid #AAA; } td.stmt_level1 { font-weight: bold; font-size: 12px; } td.stmt_level2 { font-size: 11px; } td.stmt_level3 { font-size: 11px; } td.stmt_level4 { font-size: 12px; font-weight: bold; border-bottom: 1px solid #000; } td.stmt_level5 { color: BLUE; font-size: 11px; } --> <!--
<div style="border: 1px solid #cccccc; padding: 4px; margin-top: 8px; background-color: #eeeeee; width: 98%;">
<table class="statement" border="0" cellspacing="2px">
<tbody>
<tr>
<td>Statement:</td>
<td style="padding-right: 8px;" mce_style="padding-right: 8px;"><select id="stmt_type"></select></td>
<td>Company:</td>
<td style="padding-right: 8px;" mce_style="padding-right: 8px;"><select id="stmt_company"></select></td>
<td>Period Type:</td>
<td style="padding-right: 8px;" mce_style="padding-right: 8px;"><select id="stmt_period"></select></td>
<td>Fiscal Year:</td>
<td style="padding-right: 8px;" mce_style="padding-right: 8px;"><select id="stmt_fiscal_year"></select></td>
<td style="padding-right: 8px;" mce_style="padding-right: 8px;">
<div id="stmt_new"></div>
</td>
</tr>
</tbody>
</table>
</div>
--> <!--
<div style="margin:10px 0px 10px 0px" mce_style="margin:10px 0px 10px 0px"><button class="button" onclick="pscript.print_statement();">Print</button></div>
-->
<div id="print_html">
<div id="stmt_title1" style="margin:16px 0px 4px 0px; font-size: 16px; font-weight: bold; color: #888;"></div>
<div id="stmt_title2" style="margin:0px 0px 8px 0px; font-size: 16px; font-weight: bold;"></div>

View File

@ -3,7 +3,7 @@
cur_frm.cscript = {
onload: function(doc, dt, dn) {
if(in_list(user_roles,'System Manager')) {
cur_frm.page_layout.footer.help_area.innerHTML = '<hr>\
cur_frm.footer.help_area.innerHTML = '<hr>\
<p><a href="#Form/Jobs Email Settings">Jobs Email Settings</a><br>\
<span class="help">Automatically extract Job Applicants from a mail box e.g. "jobs@example.com"</span></p>';
}

View File

@ -50,7 +50,7 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) {
}
if(in_list(user_roles,'System Manager')) {
cur_frm.page_layout.footer.help_area.innerHTML = '<hr>\
cur_frm.footer.help_area.innerHTML = '<hr>\
<p><a href="#Form/Sales Email Settings">Sales Email Settings</a><br>\
<span class="help">Automatically extract Leads from a mail box e.g. "sales@example.com"</span></p>';
}

View File

@ -19,7 +19,7 @@ cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
$.extend(cur_frm.cscript, {
onload: function(doc, dt, dn) {
if(in_list(user_roles,'System Manager')) {
cur_frm.page_layout.footer.help_area.innerHTML = '<hr>\
cur_frm.footer.help_area.innerHTML = '<hr>\
<p><a href="#Form/Email Settings/Email Settings">Email Settings</a><br>\
<span class="help">Integrate incoming support emails to Support Ticket</span></p>';
}

View File

@ -1 +0,0 @@
from __future__ import unicode_literals

View File

@ -1,4 +0,0 @@
<div class="layout_wrapper">
<div id="trash_header"></div>
<div id="trash_div" style="margin: 0px;"></div>
</div>

View File

@ -1,144 +0,0 @@
// 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/>.
pscript['onload_Trash'] = function() {
// header and toolbar
var h = new PageHeader('trash_header','Trash Bin','Restore the documents that you have trashed')
if(!pscript.trash_bin) pscript.trash_bin = new pscript.Trash();
}
pscript.Trash = function() {
// create UI elements
this.wrapper = $i('trash_div');
this.head = $a(this.wrapper, 'div');
this.body = $a(this.wrapper, 'div');
$y(this.body, {margin:'8px'})
this.make_head();
this.load_masters();
}
// Make Button
// ------------
pscript.Trash.prototype.make_button = function(label, area){
var me = this;
var w = $a(area, 'div', '', {margin:'8px'});
var t = make_table(w,1,1,'400px',['50%','50%']);
var s = $a($td(t,0,0),'button');
s.innerHTML = label;
s.wrapper = w;
return s;
}
// Make Head
// -------------
pscript.Trash.prototype.make_head = function() {
var me = this;
var make_select = function(label) {
var w = $a(me.head, 'div', '', {margin:'8px'});
var t = make_table(w,1,2,'400px',['50%','50%']);
$td(t,0,0).innerHTML = label;
var s = $a($td(t,0,1),'select','',{width:'140px'});
s.wrapper = w;
return s;
}
// Select Master Name
this.master_select = make_select('Select Master');
var me = this;
// Get Records
this.get_records_button = me.make_button('Get Records', me.head);
this.get_records_button.onclick = function() {
me.get_records();
}
}
// Load Masters
// -------------
pscript.Trash.prototype.load_masters = function(){
var me = this;
var callback = function(r, rt){
// Masters
empty_select(me.master_select);
add_sel_options(me.master_select,add_lists(['All'], r.message), 'All');
}
$c_obj('Trash Control','get_masters','',callback);
}
// Get Records
// -----------
pscript.Trash.prototype.get_records = function(){
var me = this;
me.body.innerHTML = '';
var callback = function(r, rt){
if(r.message) me.generate_trash_records(r.message);
else msgprint("No Records Found");
}
$c_obj('Trash Control','get_trash_records',sel_val(me.master_select),callback);
}
// Generate Trash Records
// -----------------------
pscript.Trash.prototype.generate_trash_records = function(rec_dict){
var me = this;
pscript.all_checkboxes = [];
mnames = keys(rec_dict).sort();
for(var i = 0; i < mnames.length; i ++){
var head = $a(me.body, 'h3'); head.innerHTML = mnames[i];
var rec_table = make_table(me.body,rec_dict[mnames[i]].length,2,'375px',['350px','25px'],{border:'1px solid #AAA',padding:'2px'});
for(var j = 0; j < rec_dict[mnames[i]].length; j++){
$a_input($td(rec_table,j,0), 'data');
$td(rec_table,j,0).innerHTML = rec_dict[mnames[i]][j];
var chk = $a_input($td(rec_table,j,1), 'checkbox');
chk.master = mnames[i];
chk.record = rec_dict[mnames[i]][j];
pscript.all_checkboxes.push(chk);
}
}
this.restore_button = me.make_button('Restore Selected', me.body);
this.restore_button.onclick = function() {
me.restore_records(0);
}
this.restore_all_button = me.make_button('Restore All', me.body);
this.restore_all_button.onclick = function() {
me.restore_records(1);
}
}
// Restore Records
// ---------------
pscript.Trash.prototype.restore_records = function(restore_all){
var me = this;
var out = {};
for(i in pscript.all_checkboxes) {
c = pscript.all_checkboxes[i];
if (restore_all || (!restore_all && c.checked)) {
if(!out[c.master]) out[c.master] = [c.record];
else {out[c.master].push(c.record);}
}
}
$c_obj('Trash Control','restore_records',JSON.stringify(out),function(r, rt){me.get_records();})
}

View File

@ -1,47 +0,0 @@
[
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2010-10-12 15:19:32",
"modified_by": "Administrator",
"modified": "2010-12-30 11:44:36"
},
{
"name": "__common__",
"module": "Utilities",
"page_name": "Trash",
"doctype": "Page",
"standard": "Yes"
},
{
"name": "__common__",
"parent": "Trash",
"doctype": "Page Role",
"parenttype": "Page",
"parentfield": "roles"
},
{
"name": "Trash",
"doctype": "Page"
},
{
"role": "Administrator",
"doctype": "Page Role"
},
{
"role": "Sales Master Manager",
"doctype": "Page Role"
},
{
"role": "Material Master Manager",
"doctype": "Page Role"
},
{
"role": "Purchase Master Manager",
"doctype": "Page Role"
},
{
"role": "Accounts Manager",
"doctype": "Page Role"
}
]