Implementing label management.

This commit is contained in:
takezoe
2013-06-25 02:56:25 +09:00
parent b69a3d3622
commit f5f408fb55
3 changed files with 107 additions and 15 deletions

View File

@@ -13,8 +13,8 @@ trait LabelsControllerBase extends ControllerBase {
case class LabelForm(labelName: String, color: String)
val labelForm = mapping(
"labelName" -> trim(label("Label name", text(required, maxlength(100)))),
"color" -> trim(label("Color", text(required, maxlength(7))))
"newLabelName" -> trim(label("Label name", text(required, maxlength(100)))),
"newColor" -> trim(label("Color", text(required, maxlength(7))))
)(LabelForm.apply)
post("/:owner/:repository/issues/label/new", labelForm)(writableRepository { form =>