Skip to content

Commit

Permalink
fix(examples): date input validation
Browse files Browse the repository at this point in the history
added regex pattern in admin edit page
+ comfort + link hover color fix
  • Loading branch information
ygatesoupe committed Jan 22, 2016
1 parent 89eb81c commit bc723d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions docs-orange/examples/orange-admin/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h1>edit a news</h1>
<div class="col-md-6">
<div class="form-group required">
<label for="PostDate">date (<span id="date-format">mm/dd/yyyy</span>): <span class="star">*</span></label>
<input name="data[Post][date]" class="form-control" type="date" id="PostDate" required="required" aria-required="true" aria-describedby="date-format" title="Enter a date with dd/mm/yyyy format">
<input pattern="(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d" class="form-control" type="date" id="PostDate" required="required" aria-required="true" aria-describedby="date-format" title="Enter a date with dd/mm/yyyy format">
</div>
</div>
</div>
Expand Down Expand Up @@ -159,10 +159,6 @@ <h1>edit a news</h1>
});
}

$('#PostDate').datepicker({
keyboardNavigation: false,
toggleActive: true
});
</script>

<script type="text/javascript" src="http://comfort.orange.com/serveur/crossdom/js/toolbar-min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion scss/_orange-css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ html {
color: $brand-orange-white !important;

@include hover-focus {
color: $brand-orange;
color: $brand-orange !important;
}
}
// Uncollapse the nav
Expand Down

0 comments on commit bc723d0

Please sign in to comment.