This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getConsultantDataFromServer(){ | |
this.DataWebService.getConsultantsFromServer().subscribe(data => { | |
this.data = data; | |
console.log(data); | |
this.dataSource = new MyDataSource(this.data, this.paginator, this.sort, this.firstname, this.lastname); | |
this.data_length = data.length;` | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checked_ids: Array<number> = [40, 50]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total: number = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<i class="material-icons" (click)="setEditConsultant(element)">edit</i> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* START setup tabs in side nav*/ | |
.nav-tabs li.active > a, | |
.nav-tabs li.active > a:hover, | |
.nav-tabs li.active > a:focus { | |
color: #555555; | |
cursor: default; | |
background-color: #ffffff; | |
border: 1px solid #ffffff; | |
border-bottom-color: transparent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base_instance.html" %} | |
{% load i18n staticfiles %} | |
{% load templatetag_generic %} | |
{% block meta_title %}{% trans "Consultants" %}{% endblock %} | |
{% block title %} | |
{{ affiliation }} : | |
Consultant(s) List | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Gyro(models.Model): | |
device = models.ForeignKey(Device) | |
ts = models.DateTimeField() | |
x = models.DecimalField(max_digits=18, decimal_places=18) | |
y = models.DecimalField(max_digits=18, decimal_places=18) | |
z = models.DecimalField(max_digits=18, decimal_places=18) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_resultfile_upload_destination(instance, filename): | |
return "complaint/00_generic/farmerid_{farmerid}/{file}".format(farmerid=instance.farmer.id, file=filename) | |
class Complaint(models.Model): | |
farmer = models.ForeignKey(Farmer) | |
file = models.FileField(blank=True, default='', upload_to=get_resultfile_upload_destination) | |
text = models.TextField(blank=True, default='') | |
timestamp = models.DateTimeField(auto_now=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.state('tab.referral-registration-form', { | |
url: '/register/referral/form', | |
views: { | |
'tab-dash': { | |
templateUrl: 'templates/dash-referral-registration/dash-referral_form.html', | |
controller: 'RegisterReferralFormCtrl' | |
} | |
} | |
}) | |
.state('tab.referral-registration-ack', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import plivo | |
def send_sms_plivo(to, message): | |
""" | |
Send message via plivo service 0.0037 USD/sms; only outgoing | |
:return: | |
""" | |
auth_id = "....." | |
auth_token="..........." |
NewerOlder