aboutsummaryrefslogtreecommitdiff
path: root/app/views/fragments/forms
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/fragments/forms')
-rw-r--r--app/views/fragments/forms/inputField.scala.html1
-rw-r--r--app/views/fragments/forms/inputLabel.scala.html3
-rw-r--r--app/views/fragments/forms/labeledField.scala.html4
3 files changed, 8 insertions, 0 deletions
diff --git a/app/views/fragments/forms/inputField.scala.html b/app/views/fragments/forms/inputField.scala.html
index 7de0e3b..41b6656 100644
--- a/app/views/fragments/forms/inputField.scala.html
+++ b/app/views/fragments/forms/inputField.scala.html
@@ -7,4 +7,5 @@ placeholder="@label"
7name="@field.name" 7name="@field.name"
8id="@field.name" 8id="@field.name"
9value="@field.value" 9value="@field.value"
10required
10> 11>
diff --git a/app/views/fragments/forms/inputLabel.scala.html b/app/views/fragments/forms/inputLabel.scala.html
new file mode 100644
index 0000000..d03a23b
--- /dev/null
+++ b/app/views/fragments/forms/inputLabel.scala.html
@@ -0,0 +1,3 @@
1@(field: Field, label: String)
2
3<label for="@field.name">@label</label>
diff --git a/app/views/fragments/forms/labeledField.scala.html b/app/views/fragments/forms/labeledField.scala.html
new file mode 100644
index 0000000..6a2c697
--- /dev/null
+++ b/app/views/fragments/forms/labeledField.scala.html
@@ -0,0 +1,4 @@
1@(field: Field, inputType: String, label: String)
2
3@views.html.fragments.forms.inputLabel(field, label)
4@views.html.fragments.forms.inputField(field, inputType, label)