OSDN Git Service

0cd31117e4abf643cd451e466f65378c0d1f440a
[open-pdm-light/PartList.git] / PartsList / PartsList / app / views / createRelationForm.scala.html
1 @(relationForm: Form[beans.PartsListBean], error:String)(implicit lang: Lang)
2 @import helper._
3 @implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f) } 
4 @main("Create relation by Play 2.1") {
5         <h1>@Messages("title2")</h1>
6         @error
7         @form(routes.PartsListController.relationRegistration()) {
8                 <fieldset>
9                         @inputText(relationForm("parent"), '_label -> Messages("list.header1"), 'readonly -> "readonly")
10                         @inputText(relationForm("child"), '_label -> Messages("list.header2"))
11
12                         @inputText(relationForm("quantity"), '_label -> Messages("list.header3"))
13                 </fieldset>
14                 <div class="action">
15                         <input type="submit" class="btn primary" value=@Messages("list.link3") >
16                 </div>
17         }       
18         <a href="/single_partslist?page=0&key=">@Messages("list.link2")</a>
19         <br />
20         <a href="/list?page=0&key=">@Messages("list.link5")</a>
21 }