def get(self, param=None): server_details = email_model.get_email_details() recepients = email_recepient_model.get_all() self.render('settings/email/email.html', server_details=server_details, recepients=recepients)
def get(self): message = self.get_session_key_and_delete('message') recepients = email_recepient_model.get_all() self.render('settings/email/test.html', message=message, recepients=recepients)
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 )