diff options
Diffstat (limited to 'app/views/fragments/forms/inputField.scala.html')
-rw-r--r-- | app/views/fragments/forms/inputField.scala.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/fragments/forms/inputField.scala.html b/app/views/fragments/forms/inputField.scala.html new file mode 100644 index 0000000..7de0e3b --- /dev/null +++ b/app/views/fragments/forms/inputField.scala.html | |||
@@ -0,0 +1,10 @@ | |||
1 | @(field: Field, inputType: String, label: String) | ||
2 | |||
3 | <input | ||
4 | class="pure-input-1 @if(field.hasErrors) {input-invalid}" | ||
5 | type="@inputType" | ||
6 | placeholder="@label" | ||
7 | name="@field.name" | ||
8 | id="@field.name" | ||
9 | value="@field.value" | ||
10 | > | ||