Skip to content

Commit 49c1e65

Browse files
authored
Add trapsCount field to formHerptiles (#477)
1 parent a75d606 commit 49c1e65

File tree

6 files changed

+36
-0
lines changed

6 files changed

+36
-0
lines changed

app/src/main/java/org/bspb/smartbirds/pro/forms/convert/HerptileConverter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public HerptileConverter(Context context) {
3737
addBool(R.string.tag_confidential, "confidential");
3838
addMulti(R.string.tag_threats, "threats");
3939
addBool(R.string.tag_moderator_review, "moderatorReview");
40+
add(R.string.tag_traps_count, "trapsCount");
4041
}
4142

4243
}

app/src/main/res/layout-land/fragment_monitoring_form_new_herptile_required_entry.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,23 @@
191191
</com.google.android.material.textfield.TextInputLayout>
192192
</TableRow>
193193

194+
<TableRow>
195+
196+
<com.google.android.material.textfield.TextInputLayout
197+
style="@style/TextInputLayout"
198+
android:layout_width="match_parent"
199+
android:layout_height="wrap_content"
200+
android:layout_span="10">
201+
202+
<org.bspb.smartbirds.pro.ui.views.PositiveDecimalNumberFormInput
203+
android:id="@+id/form_herptiles_traps_count"
204+
android:layout_width="match_parent"
205+
android:layout_height="wrap_content"
206+
android:hint="@string/monitoring_herptiles_traps_count"
207+
android:tag="@string/tag_traps_count" />
208+
</com.google.android.material.textfield.TextInputLayout>
209+
</TableRow>
210+
194211
<TableRow>
195212

196213
<com.google.android.material.textfield.TextInputLayout

app/src/main/res/layout/fragment_monitoring_form_new_herptile_required_entry.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,21 @@
187187

188188
<View style="@style/FieldSeparator" />
189189

190+
<com.google.android.material.textfield.TextInputLayout
191+
style="@style/TextInputLayout"
192+
android:layout_width="match_parent"
193+
android:layout_height="wrap_content">
194+
195+
<org.bspb.smartbirds.pro.ui.views.PositiveDecimalNumberFormInput
196+
android:id="@+id/form_herptiles_traps_count"
197+
android:layout_width="match_parent"
198+
android:layout_height="wrap_content"
199+
android:hint="@string/monitoring_herptiles_traps_count"
200+
android:tag="@string/tag_traps_count" />
201+
</com.google.android.material.textfield.TextInputLayout>
202+
203+
<View style="@style/FieldSeparator" />
204+
190205
<com.google.android.material.textfield.TextInputLayout
191206
style="@style/TextInputLayout"
192207
android:layout_width="match_parent"

app/src/main/res/values-bg/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,4 +504,5 @@
504504
<string name="settings_show_current_location_circle">"Текуща зона на местоположение"</string>
505505
<string name="notifications_permission_rationale">"Показването на нотификаций е необходимо за стартирането на мониторинг"</string>
506506
<string name="monitoring_fish_total_length">"Обща дължина на тялото (TL) в категории, cm"</string>
507+
<string name="monitoring_herptiles_traps_count">Брой капани</string>
507508
</resources>

app/src/main/res/values/headers.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,5 @@
211211
<string name="tag_tragus" translatable="false">tragus</string>
212212
<string name="tag_upper_molar" translatable="false">upperMolar</string>
213213
<string name="tag_total_length" translatable="false">totalLength</string>
214+
<string name="tag_traps_count" translatable="false">trapsCount</string>s
214215
</resources>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,4 +511,5 @@ Do you really want to cancel the monitoring?"</string>
511511
<string name="delete_account_dialog_error_message">Failed to delete account</string>
512512
<string name="deleting_account_progress">Deleting account...</string>
513513
<string name="dialog_delete_account_btn_yes">Yes, delete account.</string>
514+
<string name="monitoring_herptiles_traps_count">Traps count</string>
514515
</resources>

0 commit comments

Comments
 (0)