Commit 420e5903 authored by Adam Niedzielski's avatar Adam Niedzielski

Initialize the datepicker - the ugly way :(

parent 6d92cd3e
...@@ -15,9 +15,16 @@ ...@@ -15,9 +15,16 @@
%strong= link_to "here", help_page_path("user/permissions"), class: "vlink" %strong= link_to "here", help_page_path("user/permissions"), class: "vlink"
.form-group .form-group
= f.label :expires_at, "Membership expires at", class: 'control-label' = f.label :expires_at, "Access expiration date", class: 'control-label'
.col-sm-10 .col-sm-10
= text_field_tag :expires_at, nil, class: "datepicker form-control", placeholder: "Select expires at" = text_field_tag :expires_at, nil, class: "datepicker form-control", placeholder: "Select access expiration date"
.help-block
Leave it empty if you do not want this user's access to expire.
.form-actions .form-actions
= f.submit 'Add users to project', class: "btn btn-create" = f.submit 'Add users to project', class: "btn btn-create"
:javascript
$(".datepicker").datepicker({
dateFormat: "yy-mm-dd"
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment