moved directory structure
This commit is contained in:
1
setup/page/webforms/__init__.py
Normal file
1
setup/page/webforms/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from __future__ import unicode_literals
|
||||
13
setup/page/webforms/webforms.html
Normal file
13
setup/page/webforms/webforms.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<div class="layout_wrapper">
|
||||
<div id="webform_div"></div>
|
||||
<p><strong>Note : </strong>Copy and paste code provided below in your website wherever you want to show the form to capture details</p>
|
||||
<p> </p>
|
||||
<p><span style="font-size: medium;"><strong>Lead</strong></span></p>
|
||||
<div id="lead_div"></div>
|
||||
<p><span style="font-size: medium;"><strong>Customer Issue</strong></span></p>
|
||||
<div id="cust_issue_div"></div>
|
||||
<p><span style="font-size: medium;"><strong>Job Application</strong></span></p>
|
||||
<div id="job_div"></div>
|
||||
<p><span style="font-size: medium;"><strong>Ticket</strong></span></p>
|
||||
<div id="ticket_div"></div>
|
||||
</div>
|
||||
42
setup/page/webforms/webforms.js
Normal file
42
setup/page/webforms/webforms.js
Normal file
@@ -0,0 +1,42 @@
|
||||
// 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_Webforms = function(){
|
||||
|
||||
$c_obj('Home Control','get_acc_id','', function(r,rt) {
|
||||
if(r.message) {
|
||||
var acc_id = r.message;
|
||||
var parent = $i('webform_div');
|
||||
new PageHeader(parent,'Web Forms','');
|
||||
|
||||
var lead_dv = $a('lead_div','div', '', {border:'1px solid #AAA', padding:'8px', width:'90%'});
|
||||
var cust_issue_dv = $a('cust_issue_div','div', '', {border:'1px solid #AAA', padding:'8px', width:'95%'});
|
||||
var job_dv = $a('job_div','div', '', {border:'1px solid #AAA', padding:'8px', width:'95%'});
|
||||
var ticket_dv = $a('ticket_div','div', '', {border:'1px solid #AAA', padding:'8px', width:'95%'});
|
||||
|
||||
// url
|
||||
if(window.location.href.indexOf('?')!=-1)
|
||||
var url = window.location.href.split('?')[0];
|
||||
else
|
||||
var url = window.location.href.split('#')[0];
|
||||
|
||||
lead_dv.innerHTML = '<iframe src ="'+url+'?ac_name='+acc_id+'&embed=Lead" width ="400" height="800" frameborder="0"></iframe>';
|
||||
cust_issue_dv.innerHTML = '<iframe src ="'+url+'?ac_name='+acc_id+'&embed=Customer Issue" width ="400" height="500" frameborder="0"></iframe>';
|
||||
job_dv.innerHTML = '<iframe src ="'+url+'?ac_name='+acc_id+'&embed=Job Application" width ="400" height="800" frameborder="0""></iframe>';
|
||||
ticket_dv.innerHTML = '<iframe src ="'+url+'?ac_name='+acc_id+'&embed=Support Ticket" width ="400" height="800" frameborder="0""></iframe>';
|
||||
}
|
||||
});
|
||||
}
|
||||
51
setup/page/webforms/webforms.txt
Normal file
51
setup/page/webforms/webforms.txt
Normal file
@@ -0,0 +1,51 @@
|
||||
# Page, Webforms
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-10-14 11:15:59',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-01-04 13:19:54',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'ashwini@webnotestech.com'
|
||||
},
|
||||
|
||||
# These values are common for all Page
|
||||
{
|
||||
'doctype': 'Page',
|
||||
'module': 'Setup',
|
||||
'name': '__common__',
|
||||
'page_name': 'Webforms',
|
||||
'show_in_menu': 1,
|
||||
'standard': 'Yes'
|
||||
},
|
||||
|
||||
# These values are common for all Page Role
|
||||
{
|
||||
'doctype': 'Page Role',
|
||||
'name': '__common__',
|
||||
'parent': 'Webforms',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Page'
|
||||
},
|
||||
|
||||
# Page, Webforms
|
||||
{
|
||||
'doctype': 'Page',
|
||||
'name': 'Webforms'
|
||||
},
|
||||
|
||||
# Page Role
|
||||
{
|
||||
'doctype': 'Page Role',
|
||||
'idx': 1,
|
||||
'role': 'Administrator'
|
||||
},
|
||||
|
||||
# Page Role
|
||||
{
|
||||
'doctype': 'Page Role',
|
||||
'idx': 2,
|
||||
'role': 'System Manager'
|
||||
}
|
||||
]
|
||||
1
setup/page/webforms/webforms_static.html
Normal file
1
setup/page/webforms/webforms_static.html
Normal file
@@ -0,0 +1 @@
|
||||
webforms
|
||||
Reference in New Issue
Block a user