Skip to content

Commit

Permalink
Merge pull request #603 from xuwei-k/symbol-literal
Browse files Browse the repository at this point in the history
fix Symbol literal warnings
  • Loading branch information
mkurz authored Jan 23, 2022
2 parents 285ac58 + 93e5ec3 commit a624066
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions samples/computer-database/app/views/createForm.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ <h1>Add a computer</h1>

<fieldset>

@inputText(computerForm("name"), '_label -> "Computer name")
@inputText(computerForm("introduced"), '_label -> "Introduced date")
@inputText(computerForm("discontinued"), '_label -> "Discontinued date")
@inputText(computerForm("name"), Symbol("_label") -> "Computer name")
@inputText(computerForm("introduced"), Symbol("_label") -> "Introduced date")
@inputText(computerForm("discontinued"), Symbol("_label") -> "Discontinued date")

@select(
computerForm("company"),
companies,
'_label -> "Company", '_default -> "-- Choose a company --",
'_showConstraints -> false
Symbol("_label") -> "Company", Symbol("_default") -> "-- Choose a company --",
Symbol("_showConstraints") -> false
)


Expand Down
12 changes: 6 additions & 6 deletions samples/computer-database/app/views/editForm.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ <h1>Edit computer</h1>

<fieldset>

@inputText(computerForm("name"), '_label -> "Computer name")
@inputText(computerForm("introduced"), '_label -> "Introduced date")
@inputText(computerForm("discontinued"), '_label -> "Discontinued date")
@inputText(computerForm("name"), Symbol("_label") -> "Computer name")
@inputText(computerForm("introduced"), Symbol("_label") -> "Introduced date")
@inputText(computerForm("discontinued"), Symbol("_label") -> "Discontinued date")

@select(
computerForm("company"),
companies,
'_label -> "Company", '_default -> "-- Choose a company --",
'_showConstraints -> false
Symbol("_label") -> "Company", Symbol("_default") -> "-- Choose a company --",
Symbol("_showConstraints") -> false
)

</fieldset>
Expand All @@ -32,7 +32,7 @@ <h1>Edit computer</h1>

}

@form(routes.Application.delete(id), 'class -> "topRight") {
@form(routes.Application.delete(id), Symbol("class") -> "topRight") {
<input type="submit" value="Delete this computer" class="btn danger">
}

Expand Down

0 comments on commit a624066

Please sign in to comment.