Skip to content

Commit

Permalink
#183 fixed signal flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony4m committed Nov 18, 2024
1 parent a1e5773 commit 235f053
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

<data>
<import type="android.view.View" />
<import type="de.symeda.sormas.api.utils.YesNo"/>
<import type="de.symeda.sormas.api.ebs.SignalOutcome"/>
<variable name="data" type="de.symeda.sormas.app.backend.ebs.signalVerification.SignalVerification"/>
<variable name="yesNoClass" type="Class" />
Expand Down Expand Up @@ -74,6 +75,8 @@
<de.symeda.sormas.app.component.controls.ControlSwitchField
android:id="@+id/signalVerification_verified"
style="@style/ControlFirstOfTwoColumnsStyle"
app:dependencyParentField="@{signalVerificationVerificationSent}"
app:dependencyParentValue="@{YesNo.YES}"
app:enumClass="@{signalOutcomeClass}"
app:value="@={data.verified}"/>
</LinearLayout>
Expand All @@ -91,20 +94,25 @@
<de.symeda.sormas.app.component.controls.ControlDateField
android:id="@+id/signalVerification_verificationCompleteDate"
style="@style/ControlFirstOfTwoColumnsStyle"
app:dependencyParentField="@{signalVerificationVerified}"
app:dependencyParentValue="@{SignalOutcome.EVENT}"
app:required="true"
app:allowedDaysInFuture="0"
app:value="@={data.verificationCompleteDate}" />
</LinearLayout>

<!-- Caption TextView -->
<TextView
android:layout_width="wrap_content"
<de.symeda.sormas.app.component.controls.ControlTextReadField
android:id="@+id/event_details"
android:layout_width="154dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:text="@string/event_details"
android:textSize="20dp"
android:textStyle="bold"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp" />
app:dependencyParentField="@{signalVerificationVerified}"
app:dependencyParentValue="@{SignalOutcome.EVENT}" />

<LinearLayout
android:layout_width="match_parent"
Expand Down

0 comments on commit 235f053

Please sign in to comment.