pari: trunk r693 - in /trunk/config/setup: 5.html setup.css

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Apr 18 09:29:17 MST 2007


Author: pari
Date: Wed Apr 18 11:29:16 2007
New Revision: 693

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=693
Log:
(setup wizard/Calling Rules) Add heading2 mentioning that the user is dealing with calling rules in DialPlan1

Modified:
    trunk/config/setup/5.html
    trunk/config/setup/setup.css

Modified: trunk/config/setup/5.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/5.html?view=diff&rev=693&r1=692&r2=693
==============================================================================
--- trunk/config/setup/5.html (original)
+++ trunk/config/setup/5.html Wed Apr 18 11:29:16 2007
@@ -74,13 +74,21 @@
 }
 
 function addthe_default_callingplan(){
-	t=confirm("A default Dial Plan is not found. \n" + " Do you want to create a default Dial Plan ");
-	if(t == false){ 
-		_$('status').innerHTML = "A default DialPlan is not found !! "
-		+ "<BR> <A href=\"#\" onclick=\"addthe_default_callingplan()\">click here</A> to create a default Dial plan";
-		_$('addrule').disabled = 1;
-		return true;
-	}
+	gui_feedback("A default DialPlan is not found !! ", 5000 );
+	_$('table_one').style.display="none";
+	var newRow = _$('callingRulesTable').insertRow(-1);
+	var newCell0 = newRow.insertCell(0);
+	newCell0 .align = "center";
+	newCell0 .style.fontSize = "14px";
+	newCell0 .style.padding = "15px 0px 30px 0px";
+	newCell0 .innerHTML = "the default DialPlan <B>'DialPlan1'</B> is not found !! "
+	+ "<BR><BR><A href=\"#\" class=\"splbutton\" onclick=\"addthe_default_callingplan2()\">Click here</A> to create 'DialPlan1'" ;
+	_$('addrule').disabled = 1;
+	_$('heading2').style.display = "none";
+}
+
+
+function addthe_default_callingplan2(){
 	var default_planname = 'numberplan-custom-1' ;
 	var uri = build_action('newcat', 0, default_planname ,"", "");
 	uri += build_action('append', 1, default_planname,"plancomment", "DialPlan1"); 
@@ -96,6 +104,7 @@
 	opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
 	var tmp = new Ajax.Request(rawman_url, opt);
 }
+
 
 trunkcallbacks.format = function(t) {
 	if ( t.fieldbyname['context'] != asterisk_guiTDPrefix + t.name ) {
@@ -210,6 +219,7 @@
 		var newRow = _$('callingRulesTable').insertRow(-1);
 		var newCell0 = newRow.insertCell(0);
 		newCell0 .align = "center";
+		newCell0 .style.fontSize = "13px";
 		newCell0 .innerHTML = "<BR>A <I>Calling Rule</I> is not defined<BR><BR> Please click on the 'Add a Calling Rule' button<BR> to add a Calling Rule<BR><BR>" ;
 		return true;
 	}
@@ -504,6 +514,7 @@
 <!--  this page -->
 	<select id="extensions" style="display:none"></select>
 	<div class="heading">Step 4 of <script>document.write(parent.numberofsteps);</script>&nbsp;&nbsp;-  Outbound Calling Rules</div>
+	<div id="heading2" style="font-size:13px; padding : 0px 0px 10px 0px;">List of Calling Rules in default dialplan - <B>DialPlan1</B> </div>
 	<table class="table_blacksm" cellpadding=2 cellspacing=2 border=0 align=center width=500 id="table_one">
 		<tr>	<td width=35>S.No</td>
 			<td width=90>RuleName</td>

Modified: trunk/config/setup/setup.css
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/setup.css?view=diff&rev=693&r1=692&r2=693
==============================================================================
--- trunk/config/setup/setup.css (original)
+++ trunk/config/setup/setup.css Wed Apr 18 11:29:16 2007
@@ -121,4 +121,19 @@
 	font-size: 9pt;
 	border:1px solid; 
 	padding : 0px 0px 0px 3px;
-}
+}
+
+
+.splbutton {
+	font-size:12px;
+	background:#FFFFFF none repeat scroll 0%; 
+	border:1px solid #8A8A8A; 
+	padding:1px 5px 1px 5px; text-decoration:none;
+}
+
+.splbutton:hover {
+	background:#F3640D none repeat scroll 0%;
+	color:#FFFFFF;
+	text-decoration:none;
+}
+



More information about the asterisk-gui-commits mailing list