diff --git a/application/classes/ORM.php b/application/classes/ORM.php index 3d0ff2bb..8bfbc44d 100644 --- a/application/classes/ORM.php +++ b/application/classes/ORM.php @@ -221,7 +221,7 @@ abstract class ORM extends Kohana_ORM { public function save(Validation $validation=NULL) { parent::save(); - if ($this->saved() AND $this->_save_message) + if ($this->saved() AND $this->_save_message AND (PHP_SAPI !== 'cli')) SystemMessage::factory() ->title('Record Updated') ->type('success') diff --git a/modules/adsl/classes/Task/Adsl/Trafficalert.php b/modules/adsl/classes/Task/Adsl/Trafficalert.php index 32ba9a24..51b416d5 100644 --- a/modules/adsl/classes/Task/Adsl/Trafficalert.php +++ b/modules/adsl/classes/Task/Adsl/Trafficalert.php @@ -20,7 +20,7 @@ class Task_Adsl_Trafficalert extends Minion_Task { // @todo Pick up services that are no longer active, but were inactive < 30 days ago. foreach (ORM::factory('Service')->list_byplugin('ADSL') as $so) { - if ($params['verbose']) + if (Minion_CLI::options('verbose')) echo $so->service_name()."\n"; if (! $data=$so->plugin()->traffic_report()) diff --git a/modules/adsl/classes/Task/Adsl/Trafficcharge.php b/modules/adsl/classes/Task/Adsl/Trafficcharge.php index d4c5d7c5..11c1b6e2 100644 --- a/modules/adsl/classes/Task/Adsl/Trafficcharge.php +++ b/modules/adsl/classes/Task/Adsl/Trafficcharge.php @@ -20,7 +20,7 @@ class Task_Adsl_Trafficcharge extends Minion_Task { // @todo Pick up services that are no longer active, but were inactive < 30 days ago. foreach (ORM::factory('Service')->list_byplugin('ADSL') as $so) { - if ($params['verbose']) + if (Minion_CLI::options('verbose')) echo $so->service_name()."\n"; if ($x=$so->plugin()->traffic_excess($date)) { diff --git a/modules/adsl/classes/Task/Adsl/Trafficget.php b/modules/adsl/classes/Task/Adsl/Trafficget.php index b2cf7d41..df08b4a4 100644 --- a/modules/adsl/classes/Task/Adsl/Trafficget.php +++ b/modules/adsl/classes/Task/Adsl/Trafficget.php @@ -22,8 +22,8 @@ class Task_Adsl_Trafficget extends Minion_Task { protected function _execute(array $params) { foreach ($this->_traffic_suppliers(TRUE) as $aso) { - if ($params['verbose']) - echo $aso->name."\n"; + if (Minion_CLI::options('verbose')) + printf("%s: %s\n",$aso->id,$aso->name); Service_Traffic_Adsl::instance($aso->name)->update_traffic(); } diff --git a/modules/adsl/views/adsl/reseller/billing/exetelvisp.php b/modules/adsl/views/adsl/reseller/billing/exetelvisp.php index 2ee19f12..62ef272f 100644 --- a/modules/adsl/views/adsl/reseller/billing/exetelvisp.php +++ b/modules/adsl/views/adsl/reseller/billing/exetelvisp.php @@ -6,5 +6,10 @@ 'Invoice File','required')); ?> - 'btn btn-primary')); ?> +
+
+ + +
+
diff --git a/modules/cart/classes/Cart.php b/modules/cart/classes/Cart.php index b8f14bb2..0c6dbb72 100644 --- a/modules/cart/classes/Cart.php +++ b/modules/cart/classes/Cart.php @@ -16,10 +16,6 @@ class Cart { $this->id = is_null($id) ? Session::instance()->id() : $id; } - public static function instance($id=NULL) { - return new Cart($id); - } - /** * Return a list of items in the cart */ @@ -29,6 +25,20 @@ class Cart { ->find_all(); } + public function checkout() { + $result = array(); + + $checkout = ORM::factory('Checkout')->where_active()->find_all()->as_array(); + + foreach ($this->contents() as $cio) + $checkout = array_intersect($checkout,$cio->checkout()->as_array()); + + foreach ($checkout as $cko) + $result[$cko->id] = $cko->name; + + return $result; + } + public function delete() { foreach (ORM::factory('Cart')->where('session_id','=',$this->id)->find_all() as $co) $co->delete(); @@ -46,6 +56,10 @@ class Cart { return $this->id; } + public static function instance($id=NULL) { + return new Cart($id); + } + public function total($format=FALSE) { $total = 0; @@ -54,43 +68,5 @@ class Cart { return $format ? Currency::display($total) : $total; } - - /** - * Print an HTML cart list - * - * @param bool $detail List a detailed cart or a summary cart - */ - public function cart_block() { - // @todo To implement. - return ''; - // If the cart is empty, we'll return here. - if (! count($this->contents())) - return 'The cart is empty.'; - - Style::add(array( - 'type'=>'file', - 'data'=>'css/cart_blocklist.css', - )); - - $output = ''; - foreach ($this->contents() as $item) { - $ppa = $item->product->get_price_array(); - $pdata = Period::details($item->recurr_schedule,$item->product->price_recurr_weekday,time(),TRUE); - - $output .= View::factory('cart/block_list') - ->set('item',$item) - ->set('price_setup',$item->quantity*$ppa[$item->recurr_schedule]['price_setup']) - ->set('price_firstinvoice',$item->quantity*$ppa[$item->recurr_schedule]['price_base']*$pdata['prorata']); - } - - $output .= ''; - $output .= sprintf('', - Form::button('checkout','Checkout',array('type' => 'submit')), - Form::button('empty','Empty',array('type' => 'submit'))); - $output .= ''; - $output .= '
%s %s
'; - - return $output; - } } ?> diff --git a/modules/cart/classes/Controller/Cart.php b/modules/cart/classes/Controller/Cart.php index 24820d1e..5b1cb193 100644 --- a/modules/cart/classes/Controller/Cart.php +++ b/modules/cart/classes/Controller/Cart.php @@ -16,52 +16,21 @@ class Controller_Cart extends Controller_TemplateDefault { * List the cart contents */ public function action_index() { - $output = ''; $co = Cart::instance(); // If the cart is empty, we'll return here. - if (! count($co->contents())) - Block::add(array( - 'title'=>_('Empty Cart'), - 'body'=>_('The cart is empty') - )); + if (! $co->contents()->count()) + $this->template->content = _('Cart is Empty'); else { - Block::add(array( - 'title'=>_('Cart Items'), - 'body'=>Table::display( - $co->contents(), - NULL, - array( - 'item()->q'=>array('label'=>'Quantity'), - 'item()->i'=>array('label'=>'Item'), - 'item()->t'=>array('label'=>'Total','class'=>'right'), - ), - array( - 'type'=>'list', - ) - ), - )); + $output = View::factory('cart/view')->set('o',$co); - $checkout = ORM::factory('Checkout')->where_active()->find_all()->as_array(); - - foreach ($co->contents() as $cio) - $checkout = array_intersect($checkout,$cio->checkout()->as_array()); - - $payopt = array(); - foreach ($checkout as $cko) - $payopt[$cko->id] = $cko->name; - - $output .= _('Total amount due for payment').' '.$co->total(TRUE); $output .= Form::open('checkout/before'); - $output .= Form::select('checkout_id',$payopt); - $output .= Form::submit('submit',_('Checkout')); + $output .= View::factory('cart/payment')->set('o',$co); $output .= Form::close(); - Block::add(array( - 'title'=>_('Payment'), - 'body'=>$output, - )); + Block::factory() + ->body($output); } } @@ -69,24 +38,19 @@ class Controller_Cart extends Controller_TemplateDefault { * Add an item to the cart */ public function action_add() { - $cart = ORM::factory('Cart'); + $co = ORM::factory('Cart'); - $cart->session_id = Session::instance()->id(); + $co->values(Request::current()->post()); + $co->session_id = Session::instance()->id(); - if ($cart->values(Request::current()->post())->check()) - $cart->save(); - else - throw new Kohana_Exception('Unable to add to cart'); + if (! $this->save($co)) + throw HTTP_Exception::factory(501,_('There was a problem adding the item to the cart.')); - if ($cart->saved()) - HTTP::redirect('cart/index'); - else - throw new Kohana_Exception(_('There was a problem adding the item to the cart.')); + HTTP::redirect('cart/index'); } public function action_empty() { - foreach (ORM::factory('Cart')->where('session_id','=',Session::instance()->id())->find_all() as $co) - $co->delete(); + Cart::instance()->delete(); $this->template->content = _('Cart Emptied'); } diff --git a/modules/cart/classes/Model/Cart.php b/modules/cart/classes/Model/Cart.php index 427129ee..50505521 100644 --- a/modules/cart/classes/Model/Cart.php +++ b/modules/cart/classes/Model/Cart.php @@ -10,13 +10,14 @@ * @license http://dev.osbill.net/license.html */ class Model_Cart extends ORM_OSB { - protected $_belongs_to = array( - 'product'=>array(), - ); - // Cart doesnt use the update column protected $_updated_column = FALSE; + protected $_belongs_to = array( + 'product'=>array(), + 'module'=>array(), + ); + protected $_serialize_column = array( 'module_data', ); @@ -30,46 +31,26 @@ class Model_Cart extends ORM_OSB { ), ); - private $mo; - - public function __construct($id = NULL) { - // Load our Model - parent::__construct($id); - - // Autoload our Sub Items - if ($this->loaded()) - $this->_load_sub_items(); - - return $this; - } - - private function _load_sub_items() { - $this->mo = ORM::factory('Module',$this->module_id)->instance($this->module_item); - - if (! $this->mo->loaded()) - throw new Kohana_Exception('Item :item not loaded?',array(':item'=>$this->module_item)); - } - public function checkout() { - if (! method_exists($this->mo,'checkout')) + if (! method_exists($this->mo(),'checkout')) throw new Kohana_Exception('Module :module doesnt implement checkout?',array(':module'=>get_class($this->mo))); - return $this->mo->checkout(); + return $this->mo()->checkout(); } public function item() { - if (! method_exists($this->mo,'cart_item')) + if (! method_exists($this->mo(),'cart_item')) throw new Kohana_Exception('Module :module doesnt implement cart_item?',array(':module'=>get_class($this->mo))); - return $this->mo->cart_item(); + return $this->mo()->cart_item(); } public function mo() { - return $this->mo; + return $this->module->instance($this->module_item); } public function motype() { - return strtolower(preg_replace('/^Model_/','',get_class($this->mo))); + return strtolower(preg_replace('/^Model_/','',get_class($this->mo()))); } } ?> diff --git a/modules/cart/views/cart/payment.php b/modules/cart/views/cart/payment.php new file mode 100644 index 00000000..93b96233 --- /dev/null +++ b/modules/cart/views/cart/payment.php @@ -0,0 +1,24 @@ +
+
+ Payment + +
+
Payment By
+
checkout(),NULL,array('class'=>'small','nocg'=>TRUE)); ?>
+ +
Total Due
+
total(TRUE); ?>
+
+
+ +
 
+ +
+
+ + Clear +
+
+
+ +
 
diff --git a/modules/cart/views/cart/view.php b/modules/cart/views/cart/view.php new file mode 100644 index 00000000..4d19155a --- /dev/null +++ b/modules/cart/views/cart/view.php @@ -0,0 +1,13 @@ +
+
+ Cart Contents + + data($o->contents()) + ->columns(array( + 'item()->q'=>'Quantity', + 'item()->i'=>'Item', + 'item()->t'=>'Total', + )); ?> +
+
diff --git a/modules/charge/views/charge/reseller/add_edit.php b/modules/charge/views/charge/reseller/add_edit.php index 0acdf12d..0a5a7a19 100644 --- a/modules/charge/views/charge/reseller/add_edit.php +++ b/modules/charge/views/charge/reseller/add_edit.php @@ -24,5 +24,10 @@ endfor ?> - 'btn btn-primary')); ?> +
+
+ + +
+
diff --git a/modules/checkout/classes/Checkout/Plugin/Paypal/Cart.php b/modules/checkout/classes/Checkout/Plugin/Paypal/Cart.php index b0c544cd..fe111afa 100644 --- a/modules/checkout/classes/Checkout/Plugin/Paypal/Cart.php +++ b/modules/checkout/classes/Checkout/Plugin/Paypal/Cart.php @@ -18,11 +18,12 @@ class Checkout_Plugin_Paypal_Cart extends Checkout_Plugin_Paypal { public function before(Cart $co) { $output = ''; + $output .= Form::open(sprintf('https://%s/cgi-bin/webscr',$this->test_mode ? $this->url_test : $this->url_prod),array('method'=>'POST')); + $output .= View::factory('checkout/plugin/paypal/before') ->set('checkout',$this->co) ->set('cart',$co); - $output .= Form::open(sprintf('https://%s/cgi-bin/webscr',$this->test_mode ? $this->url_test : $this->url_prod),array('method'=>'POST')); $output .= Form::hidden('cmd','_cart'); $output .= Form::hidden('business',$this->test_mode ? 'deon_1260578114_biz@graytech.net.au' : 'deon@graytech.net.au'); $output .= Form::hidden('bn','Graytech_BuyNow_WPS_AU'); @@ -46,7 +47,6 @@ class Checkout_Plugin_Paypal_Cart extends Checkout_Plugin_Paypal { $output .= Form::hidden('item_name_'.$c,'Paypal Fee'); $output .= Form::hidden('amount_'.$c,$this->co->fee($co->total())); - $output .= Form::submit('submit','Pay Now'); $output .= Form::close(); return $output; diff --git a/modules/checkout/classes/Controller/Admin/Checkout.php b/modules/checkout/classes/Controller/Admin/Checkout.php new file mode 100644 index 00000000..07091aad --- /dev/null +++ b/modules/checkout/classes/Controller/Admin/Checkout.php @@ -0,0 +1,16 @@ + diff --git a/modules/checkout/classes/Controller/Checkout.php b/modules/checkout/classes/Controller/Checkout.php index 014a8ae4..ea1ae6c4 100644 --- a/modules/checkout/classes/Controller/Checkout.php +++ b/modules/checkout/classes/Controller/Checkout.php @@ -28,13 +28,8 @@ class Controller_Checkout extends Controller_TemplateDefault { $co = ORM::factory('Checkout',$cid); - Block::add(array( - 'title'=>'Checkout', - 'body'=>$co->plugin()->before(Cart::instance()), - )); - - // Suppress our right hand tab - $this->template->right = ' '; + Block::factory() + ->body($co->plugin()->before(Cart::instance())); } public function action_after() { @@ -71,6 +66,7 @@ class Controller_Checkout extends Controller_TemplateDefault { $cno->status = 1; $cno->data = Request::current()->post(); $cno->save(); + } else { $cno->where('id','=',$test_id)->find(); } diff --git a/modules/checkout/views/checkout/payment_option.php b/modules/checkout/views/checkout/payment_option.php deleted file mode 100644 index d3402716..00000000 --- a/modules/checkout/views/checkout/payment_option.php +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/checkout/views/checkout/plugin/paypal/before.php b/modules/checkout/views/checkout/plugin/paypal/before.php index 94cc7c5a..bc49a33b 100644 --- a/modules/checkout/views/checkout/plugin/paypal/before.php +++ b/modules/checkout/views/checkout/plugin/paypal/before.php @@ -1,32 +1,30 @@ -

Paypal will be used to pay for the following items:

-
-contents(), - NULL, - array( - 'item()->q'=>array('label'=>'Quantity'), - 'item()->i'=>array('label'=>'Item'), - 'item()->t'=>array('label'=>'Total','class'=>'right'), - ), - array( - 'type'=>'list', - ) - ); -?> -
-

Please Note: Paypal charges a fee to receive payments, and that fee will be added to your payment.

- - - - - - - - - - - - - -
Cart Totaltotal(TRUE); ?>
Payment Feefee($t)); ?>
Total
+set('o',$cart); ?> + +
+
+ Payment by Paypal + +

Please Note: Paypal charges a fee to receive payments, and that fee will be added to your payment.

+
+
Cart Total
+
total(TRUE); ?>
+ +
Payment Fee
+
fee($t)); ?>
+ +
Total
+
+
+
+ +
 
+ +
+
+ + Clear +
+
+
+ +
 
diff --git a/modules/payment/classes/Controller/Admin/Payment.php b/modules/payment/classes/Controller/Admin/Payment.php index a4b5d0d4..c07e222a 100644 --- a/modules/payment/classes/Controller/Admin/Payment.php +++ b/modules/payment/classes/Controller/Admin/Payment.php @@ -95,7 +95,9 @@ class Controller_Admin_Payment extends Controller_Payment { private function add_edit($id=NULL,$output='') { $po = ORM::factory('Payment',$id); - if ($_POST) { + if ($this->request->post()) { + $po->values($this->request->post()); + // Update our invoice payment items if (isset($_POST['payment_item']) AND count($_POST['payment_item'])) foreach ($_POST['payment_item'] as $k=>$v) { diff --git a/modules/payment/views/payment/admin/add_edit.php b/modules/payment/views/payment/admin/add_edit.php index ae53371f..3665920a 100644 --- a/modules/payment/views/payment/admin/add_edit.php +++ b/modules/payment/views/payment/admin/add_edit.php @@ -15,7 +15,14 @@ notes,array('class'=>'span5','label'=>'Notes','placeholder'=>'Any notes about this payment?')); ?> -
+
+
+
- 'btn btn-primary')); ?> +
+
+ + +
+
diff --git a/modules/payment/views/payment/admin/addbulk/ezypay.php b/modules/payment/views/payment/admin/addbulk/ezypay.php index 48537db8..907be0a6 100644 --- a/modules/payment/views/payment/admin/addbulk/ezypay.php +++ b/modules/payment/views/payment/admin/addbulk/ezypay.php @@ -7,5 +7,10 @@ 'Payment File','required','help-block'=>'BillDetails')); ?> - 'btn btn-primary')); ?> +
+
+ + +
+
diff --git a/modules/ssl/classes/Controller/Reseller/Ssl.php b/modules/ssl/classes/Controller/Reseller/Ssl.php index fea423d1..2f076395 100644 --- a/modules/ssl/classes/Controller/Reseller/Ssl.php +++ b/modules/ssl/classes/Controller/Reseller/Ssl.php @@ -127,8 +127,18 @@ class Controller_Reseller_SSL extends Controller_SSL { private function add_edit($id=NULL,$output='') { $sco = ORM::factory('SSL_CA',$id); - if ($_POST AND $sco->values($_POST)->changed() AND ! ($this->save($sco))) - $sco->reload(); + if ($this->request->post()) { + if (! $sco->account_id) + $sco->account_id = (string)Auth::instance()->get_user(); + + // Set our values, so that our filters have data + $sco->values($this->request->post()); + // To trigger our filter to get the correct parent + $sco->parent_ssl_ca_id = -1; + + if ($sco->changed() AND ! $this->save($sco)) + $sco->reload(); + } return View::factory('ssl/reseller/add_edit') ->set('o',$sco); diff --git a/modules/ssl/classes/Model/SSL/CA.php b/modules/ssl/classes/Model/SSL/CA.php index d65f5480..caae5ff7 100644 --- a/modules/ssl/classes/Model/SSL/CA.php +++ b/modules/ssl/classes/Model/SSL/CA.php @@ -36,15 +36,16 @@ class Model_SSL_CA extends ORM_OSB { } public function rules() { - return array( + return Arr::merge(parent::rules(),array( 'sign_cert'=>array( + array('not_empty'), array(array($this,'isCert')), array(array($this,'isCA')), ), 'parent_ssl_ca_id'=>array( array(array($this,'rule_parentExist')), ), - ); + )); } private $_so = NULL; @@ -120,10 +121,30 @@ class Model_SSL_CA extends ORM_OSB { return $this; } + /** + * Filter to find the parent SSL_CA + * + * @notes This filter only runs when the value passed is -1 + */ public function filter_getParent() { - foreach (ORM::factory($this->_object_name)->find_all() as $sco) - if ($sco->aki_keyid() == $this->aki_keyid()) + // This cannot be an array + if (count(func_get_args()) != 1) + return NULL; + + $x = func_get_args(); + $x = array_pop($x); + + // This filter only runs when our value is -1 + if ($x != -1) + return $x; + + foreach (ORM::factory($this->_object_name)->find_all() as $sco) { + if ($sco->ski() == $this->aki_keyid()) return $sco->id; + } + + // If we got here, we couldnt find it + return $this->isRoot() ? NULL : $x; } public function list_childca() { @@ -136,7 +157,7 @@ class Model_SSL_CA extends ORM_OSB { public function rule_parentExist() { // Our parent_ssl_ca_id should have been populated by filter_GetParent(). - return $this->parent_ssl_ca_id OR $this->isRoot(); + return ($this->parent_ssl_ca_id > 0) OR $this->isRoot(); } } ?> diff --git a/modules/ssl/classes/Model/Service/Plugin/Ssl.php b/modules/ssl/classes/Model/Service/Plugin/Ssl.php index 689dd5fc..0cd248fe 100644 --- a/modules/ssl/classes/Model/Service/Plugin/Ssl.php +++ b/modules/ssl/classes/Model/Service/Plugin/Ssl.php @@ -72,36 +72,20 @@ class Model_Service_Plugin_Ssl extends Model_Service_Plugin { return $this; } - public function validCA() { - return $this->ca->validParent(); - } - - // If we change the SSL certificate, we need to reload our SSL object - public function values(array $values, array $expected = NULL) { - parent::values($values,$expected); - - if (array_key_exists('cert',$values)) - $this->_so = SSL::instance($this->cert); - - return $this; - } - /** - * Get specific service details for use in other modules - * For Example: Invoice - * - * @todo Make the rendered items configurable - * @todo Change this method name, now that it is public + * Return all our CA Certs for this certificate */ - // @todo This needs to be validated for this model - public function _details($type) { - switch ($type) { - case 'invoice_detail_items': - return array(); - break; - default: - return parent::$_details($type); + public function cacerts() { + $result = array(); + + $x = $this->ssl_ca_id; + while ($x) { + $sco = ORM::factory('SSL_CA',$x); + array_push($result,$sco->sign_cert); + $x = $sco->parent_ssl_ca_id; } + + return $result; } public function download_button() { @@ -119,19 +103,6 @@ class Model_Service_Plugin_Ssl extends Model_Service_Plugin { return $output; } - public function cacerts() { - $result = array(); - - $x = $this->ssl_ca_id; - while ($x) { - $sco = ORM::factory('SSL_CA',$x); - array_push($result,$sco->sign_cert); - $x = $sco->parent_ssl_ca_id; - } - - return $result; - } - /** * Renew an SSL Certificate */ @@ -171,5 +142,37 @@ class Model_Service_Plugin_Ssl extends Model_Service_Plugin { throw new Kohana_Exception('Error Creating SSL Certificate :error',array(':error'=>openssl_error_string())); } } + + public function validCA() { + return $this->ca->validParent(); + } + + // If we change the SSL certificate, we need to reload our SSL object + public function values(array $values, array $expected = NULL) { + parent::values($values,$expected); + + if (array_key_exists('cert',$values)) + $this->_so = SSL::instance($this->cert); + + return $this; + } + + /** + * Get specific service details for use in other modules + * For Example: Invoice + * + * @todo Make the rendered items configurable + * @todo Change this method name, now that it is public + */ + // @todo This needs to be validated for this model + public function _details($type) { + switch ($type) { + case 'invoice_detail_items': + return array(); + break; + default: + return parent::$_details($type); + } + } } ?> diff --git a/modules/ssl/classes/SSL.php b/modules/ssl/classes/SSL.php index 9031edb8..01a13f4b 100644 --- a/modules/ssl/classes/SSL.php +++ b/modules/ssl/classes/SSL.php @@ -150,11 +150,11 @@ class SSL { } public function get_isCA() { - return preg_match('/CA:TRUE/',$this->_bc()); + return preg_match('/CA:TRUE/',$this->_bc()) ? TRUE : FALSE; } public function get_isCert() { - return is_array($this->_details()); + return is_array($this->_details()) ? TRUE : FALSE; } public function get_isRoot() { diff --git a/modules/ssl/messages/models/ssl_ca.php b/modules/ssl/messages/models/ssl_ca.php index 42c62ea0..a023fab5 100644 --- a/modules/ssl/messages/models/ssl_ca.php +++ b/modules/ssl/messages/models/ssl_ca.php @@ -16,7 +16,7 @@ return array( 'isCA'=>'This is certificate is not a Certificate Authority certificate', ), 'parent_ssl_ca_id'=>array( - 'Rule_ParentExists'=>'The parent certificate doesnt exist, please define it first', + 'rule_parentExist'=>'The parent certificate doesnt exist, please define it first', ), ); ?> diff --git a/modules/ssl/views/service/user/plugin/ssl/view.php b/modules/ssl/views/service/user/plugin/ssl/view.php index 228de39d..def554ba 100644 --- a/modules/ssl/views/service/user/plugin/ssl/view.php +++ b/modules/ssl/views/service/user/plugin/ssl/view.php @@ -46,6 +46,7 @@
Certificate +
cert; ?>
'btn btn-primary')); endif ?> -
diff --git a/modules/ssl/views/ssl/reseller/add_edit.php b/modules/ssl/views/ssl/reseller/add_edit.php index 4e295148..6242ec8f 100644 --- a/modules/ssl/views/ssl/reseller/add_edit.php +++ b/modules/ssl/views/ssl/reseller/add_edit.php @@ -52,5 +52,10 @@ sign_pk,array('class'=>'span6','label'=>'Private Key','placeholder'=>'Private Key','style'=>'font-family: monospace;','rows'=>Form::textarea_rows($o->sign_pk))); ?> sign_cert,array('class'=>'span6','label'=>'Public Certificate','placeholder'=>'Public Certificate','style'=>'font-family: monospace;','rows'=>Form::textarea_rows($o->sign_cert))); ?> - 'btn btn-primary')); ?> +
+
+ + +
+