Skip to content

Add proper date-picker fields.#1207

Merged
josepjaume merged 17 commits intomasterfrom
update/admin/datepicker
Apr 10, 2017
Merged

Add proper date-picker fields.#1207
josepjaume merged 17 commits intomasterfrom
update/admin/datepicker

Conversation

@lastpotion
Copy link
Copy Markdown
Contributor

@lastpotion lastpotion commented Mar 30, 2017

🎩 What? Why?

This PR updates all the date_fields, and adds a new datetime_field to use the specific
styled foundation datepicker.

📌 Related Issues

📷 Screenshots (optional)

screen shot 2017-04-05 at 10 52 20
screen shot 2017-04-05 at 10 55 24

👻 GIF

@lastpotion lastpotion self-assigned this Mar 30, 2017
@lastpotion lastpotion changed the title Add proper date-picker fields. [WIP] Add proper date-picker fields. Mar 30, 2017
@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 3, 2017

Codecov Report

Merging #1207 into master will decrease coverage by <.01%.
The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1207      +/-   ##
==========================================
- Coverage   97.05%   97.04%   -0.01%     
==========================================
  Files         424      424              
  Lines        7124     7147      +23     
==========================================
+ Hits         6914     6936      +22     
- Misses        210      211       +1
Impacted Files Coverage Δ
decidim-core/lib/decidim/form_builder.rb 98.03% <100%> (+0.22%) ⬆️
...in/app/helpers/decidim/admin/application_helper.rb 94.44% <66.66%> (-5.56%) ⬇️
...controllers/decidim/devise/passwords_controller.rb 100% <0%> (ø) ⬆️
decidim-core/app/models/decidim/user.rb 97.05% <0%> (ø) ⬆️
decidim-core/app/commands/decidim/invite_user.rb 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60afaea...c5c45b4. Read the comment docs.

@lastpotion lastpotion force-pushed the update/admin/datepicker branch from cc33de9 to 0bf5719 Compare April 5, 2017 09:00
@lastpotion lastpotion force-pushed the update/admin/datepicker branch from 55b1ac2 to 8c268e6 Compare April 6, 2017 09:53
@lastpotion lastpotion changed the title [WIP] Add proper date-picker fields. Add proper date-picker fields. Apr 6, 2017
@mention-bot
Copy link
Copy Markdown

@lastpotion, thanks for your PR! By analyzing the history of the files in this pull request, we identified @mrcasals and @josepjaume to be potential reviewers.

# Public: Generates a timepicker field using foundation
# datepicker library
def datetime_field(attribute, options = {})
value = object.send(attribute)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have some unit tests for this method.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1,4 +1,4 @@
//@import compass
//@import compass
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the whole comment.

@josepjaume josepjaume merged commit dca7d4f into master Apr 10, 2017
@josepjaume josepjaume deleted the update/admin/datepicker branch April 10, 2017 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants