Skip to content

Commit

Permalink
继续修改datepicker,未完成
Browse files Browse the repository at this point in the history
继续修改datepicker,未完成
  • Loading branch information
layman44 committed Nov 29, 2017
1 parent 8673317 commit 3c49d87
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3.1.2/src/Birthday.Web/Views/Birthday/Create.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
</div>
<div class="form-group">
<label for="Birthday_Lunar">@L("Add-PersonBirthday_Lunar")</label>
<input type="text" name="Birthday_Lunar" class="form-control" placeholder="@L("Add-PersonBirthday_Lunar")" required />
<input type="text" name="Birthday_Lunar" class="form-control" placeholder="@L("Add-PersonBirthday_Lunar")" required readonly/>
</div>
<div class="form-group">
<label for="Birthday_Solar">@L("Add-PersonBirthday_Solar")</label>
<input type="text" name="Birthday_Solar" class="form-control" placeholder="@L("Add-PersonBirthday_Solar")" required />
<input type="text" name="Birthday_Solar" class="form-control" placeholder="@L("Add-PersonBirthday_Solar")" required readonly/>
</div>
<div class="form-group">
<label for="PhoneNum">@L("Add-PersonPhoneNum")</label>
Expand Down
5 changes: 5 additions & 0 deletions 3.1.2/src/Birthday.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<environment names="Development">
<link rel="stylesheet" href="~/lib/bootstrap-paper/bootstrap.css" />
<link rel="stylesheet" href="~/lib/bootstrap-datepicker-master/dist/css/bootstrap-datepicker3.css" />
<link rel="stylesheet" href="~/lib/toastr/toastr.css" />
<link rel="stylesheet" href="~/lib/sweetalert/dist/sweetalert.css" />
<link rel="stylesheet" href="~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css" />
Expand Down Expand Up @@ -89,6 +90,8 @@
<script src="~/lib/json2/json2.js"></script>
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
<script src="~/lib/bootstrap-datepicker-master/dist/js/bootstrap-datepicker.js"></script>
<script src="~/lib/bootstrap-datepicker-master/dist/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script src="~/lib/moment/min/moment-with-locales.js"></script>
<script src="~/lib/jquery-validation/dist/jquery.validate.js"></script>
<script src="~/lib/jquery-validation/src/localization/messages_zh.js"></script>
Expand All @@ -105,6 +108,8 @@
<script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js"></script>

<script src="~/js/jquery-extensions.js"></script>
<script src="~/js/permanentcalendar.js"></script>

</environment>

<environment names="Staging,Production">
Expand Down
2 changes: 2 additions & 0 deletions 3.1.2/src/Birthday.Web/bundleconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"outputFileName": "wwwroot/view-resources/Views/_Bundles/layout-libs.min.css",
"inputFiles": [
"wwwroot/lib/bootstrap-paper/bootstrap.css",
"wwwroot/lib/bootstrap-datepicker-master/dist/css/bootstrap-datepicker3.css",
"wwwroot/lib/toastr/toastr.css",
"wwwroot/lib/sweetalert/dist/sweetalert.css",
"wwwroot/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css",
Expand All @@ -23,6 +24,7 @@
"wwwroot/lib/jquery/dist/jquery.js",
"wwwroot/lib/bootstrap/dist/js/bootstrap.js",
"wwwroot/lib/bootstrap-datepicker-master/dist/js/bootstrap-datepicker.js",
"wwwroot/lib/bootstrap-datepicker-master/dist/locales/bootstrap-datepicker.zh-CN.js",
"wwwroot/lib/moment/min/moment-with-locales.js",
"wwwroot/lib/jquery-validation/dist/jquery.validate.js",
"wwwroot/lib/blockUI/jquery.blockUI.js",
Expand Down
12 changes: 12 additions & 0 deletions 3.1.2/src/Birthday.Web/wwwroot/js/views/person/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@
$(function () {

$('input[name=Birthday_Lunar]').datepicker({
language: "zh-CN",
autoclose: true,
clearBtn: true,
orientation: "bottom auto",
format: "yyyy-mm-dd"
}).on("changeDate", function (e) {

});

$('input[name=Birthday_Solar]').datepicker({
language: "zh-CN",
autoclose: true,
clearBtn: true,
orientation: "bottom auto",
format: "yyyy-mm-dd"
});
var _$form = $('#PersonCreationForm');

Expand Down

0 comments on commit 3c49d87

Please sign in to comment.