added open exercise
This commit is contained in:
parent
494cbfdf5c
commit
828cbdf2be
Binary file not shown.
27
code/code/exercise08/app/scripts/Patientlist.js
Normal file
27
code/code/exercise08/app/scripts/Patientlist.js
Normal file
@ -0,0 +1,27 @@
|
||||
class PatientList extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {}
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
this.getPatientList();
|
||||
}
|
||||
|
||||
getPatientList() {
|
||||
$.ajax({
|
||||
}
|
||||
|
||||
render() {
|
||||
return <div className="container">
|
||||
<div className="cal-xs-12">
|
||||
<span className="pull-right">
|
||||
{this.currentDateString(this.props.format)}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
ReactDOM.render(<PatientList />, document.getElementById('PatientList'));
|
@ -3,43 +3,28 @@
|
||||
Patientenverwaltung
|
||||
<span id="patient-name">Patientenname</span>
|
||||
</h2>
|
||||
<script type="text/javascript">
|
||||
</div>
|
||||
<div class="row">
|
||||
<h6 class="col-xs-6">
|
||||
<p>Geschlecht:</p>
|
||||
<p>Geburstdatum:</p>
|
||||
<p>Wohnort:</p>
|
||||
<p>Land:</p>
|
||||
</h6>
|
||||
<h6 class="col-xs-6">
|
||||
<p id="patient-gender"></p>
|
||||
<p id="patient-date"></p>
|
||||
<p id="patient-home"></p>
|
||||
<p id="patient-country"></p>
|
||||
</h6>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#patient-name").html(patient.lastname())
|
||||
</script>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h6 class="col-xs-6">
|
||||
Geschlecht
|
||||
</h6>
|
||||
<h6 class="col-xs-6" id="patient-gender"></h6>
|
||||
<script type="text/javascript">
|
||||
$("#patient-gender").html(patient.gender())
|
||||
</script>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h6 class="col-xs-6">
|
||||
Geburtsdatum
|
||||
</h6>
|
||||
<h6 class="col-xs-6" id="patient-date">Geburtsdatum</h6>
|
||||
<script type="text/javascript">
|
||||
$("#patient-date").html(patient.date())
|
||||
</script>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h6 class="col-xs-6">
|
||||
Wohnort:
|
||||
</h6>
|
||||
<h6 class="col-xs-6" id="patient-home">Patientenname</h6>
|
||||
<script type="text/javascript">
|
||||
$("#patient-home").html(patient.home())
|
||||
</script>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h6 class="col-xs-6">
|
||||
Land:
|
||||
</h6>
|
||||
<h6 class="col-xs-6" id="patient-country">Land:</h6>
|
||||
<script type="text/javascript">
|
||||
$("#patient-date").html(patient.date())
|
||||
$("#patient-country").html(patient.country())
|
||||
</script>
|
||||
</div>
|
||||
$("#patient-gender").html(patient.gender())
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user