def get(self, alert_id): alert = alerts_model.get_by_id(alert_id) server = server_model.get_one() errors = self.session.get('errors',None) form_data = self.session.get('form_data',None) email_recepients = email_recepient_model.get_all() sms_recepients = sms_recepient_model.get_all() self.delete_session_key('errors') self.delete_session_key('form_data') self.render('alerts/edit_server_alert.html', alert=alert, email_recepients=email_recepients, sms_recepients=sms_recepients, process_metrics=process_metrics, server_metrics=server_metrics, common_metrics=common_metrics, errors=errors, form_data=form_data, server=server )
def get(self): server = server_model.get_one() errors = self.session.get('errors', None) form_data = self.session.get('form_data', None) email_recepients = email_recepient_model.get_all() sms_recepients = sms_recepient_model.get_all() self.delete_session_key('errors') self.delete_session_key('form_data') self.render('alerts/add_process_alert.html', email_recepients=email_recepients, sms_recepients=sms_recepients, process_metrics=process_metrics, errors=errors, form_data=form_data, server=server)
def get(self, alert_id): alert = alerts_model.get_by_id(alert_id) errors = self.session.get('errors', None) form_data = self.session.get('form_data', None) email_recepients = email_recepient_model.get_all() sms_recepients = sms_recepient_model.get_all() self.delete_session_key('errors') self.delete_session_key('form_data') self.render('alerts/edit_process_alert.html', alert=alert, email_recepients=email_recepients, sms_recepients=sms_recepients, process_metrics=process_metrics, server_metrics=server_metrics, common_metrics=common_metrics, errors=errors, form_data=form_data)
def get(self): server = server_model.get_one() errors = self.session.get('errors',None) form_data = self.session.get('form_data',None) email_recepients = email_recepient_model.get_all() sms_recepients = sms_recepient_model.get_all() self.delete_session_key('errors') self.delete_session_key('form_data') self.render('alerts/add_process_alert.html', email_recepients=email_recepients, sms_recepients=sms_recepients, process_metrics=process_metrics, errors=errors, form_data=form_data, server=server )
def get(self, param=None): recepients = sms_recepient_model.get_all() self.render('settings/sms/test.html', recepients=recepients)
def get(self, param=None): details = sms_model.get() recepients = sms_recepient_model.get_all() self.render('settings/sms/sms.html', details=details, recepients=recepients)