Skip to content

Commit

Permalink
Added placeholders for Integer editor template. #110, #111
Browse files Browse the repository at this point in the history
  • Loading branch information
rozay committed Apr 18, 2017
1 parent 109a414 commit 51cf73b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class AnswerCreateInputModel : IMapTo<Answer>, IMapFrom<Answer>
public bool IsHidden { get; set; }

[UIHint("Integer")]
[PlaceHolder("Подредба")]
public int OrderBy { get; set; }

[HiddenInput(DisplayValue = false)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ input, input[type="text"], input[type="password"], input[type="email"], select,
box-shadow: none;
}

input[type="number"], input[type="number"].form-control {
width: 15%;
}

.chosen-container .chosen-results li.highlighted {
background-image: none;
background: #FF8A5C;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
@model int

<input type="number" value="" class="form-control"/>
@{
var placeholder = string.Empty;
if (ViewData.ModelMetadata.AdditionalValues.ContainsKey("placeholder"))
{
placeholder = ViewData.ModelMetadata.AdditionalValues["placeholder"] as string;
}
}

<input type="number" value="" class="form-control" placeholder="@placeholder"/>

0 comments on commit 51cf73b

Please sign in to comment.