Commit graph

269 commits

Author SHA1 Message Date
Andrew Kvalheim
514ea1efbd
Fix bug in initial scheduling of events
Resolves inability to schedule a nonscheduled event:

    ActionController::RoutingError: No route matches [PUT] "/admin/conferences/…/event_schedules"

`event_schedule_id` represents the absence of a schedule as either an
empty string or undefined, not as null.
2025-01-30 14:37:55 +01:00
Henne Vogelsang
7190867f21
Drop bootstrap3-datetimepicker-rails
We are using the browser for date inputs now...
2024-06-07 14:09:13 +02:00
Henne Vogelsang
07bfff8fa1
Replace registration-period datepickers with date input
Nowadays all browsers have reasonable date input support...
2024-06-07 13:16:44 +02:00
Henne Vogelsang
30bc21c96a
Move word counting javascript to the page
It really does not need to run on every page load...
2024-03-05 15:41:53 +01:00
Henne Vogelsang
f533dd6d38
Merge pull request #3093 from differentreality/remove_datepicker_limits
Remove datepicker date limits
2023-04-19 13:29:05 +02:00
Andrew Kvalheim
6ed1725b01 Server-side render initial visibility of select help text
Resolves failure to display initial help text of difficulty level.
2023-03-11 13:50:51 -08:00
Stella Rouzi
7b92754f29 Remove datepicker date limits 2022-10-19 16:24:48 +03:00
Sasi Olin
9fb26f880d Minor fixes 2022-05-20 16:09:31 +02:00
Sasi Olin
882bc0807a Make the static analysis happy 2022-05-18 06:50:57 +02:00
Sasi Olin
45cf9249a9 Remove the fonts directory in the sprockets manifest 2022-05-18 06:41:53 +02:00
Sasi Olin
d31233c033 Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
Andrew Kvalheim
9de2cba061 Remove excessive word counts
Resolves:

  - Duplicate event listeners are registered during every word count,
    increasing the number of word counts until the browser becomes
    unresponsive.
  - The word count is triggered multiple times on input due to listening
    to redundant events.
2022-03-18 20:52:33 -07:00
Henne Vogelsang
81853d1ef9
Retire semantic_form_for
Also a buttload of form cleanups...
2022-02-24 15:52:34 +01:00
Henne Vogelsang
800bb28c34
Drop formtastic
formtastic-bootstrap is unmaintained since years, formtastic is
just syntactic sugar, ActionView grew up to be beautiful.
2022-02-23 14:36:07 +01:00
Henne Vogelsang
e79cfe0f91
Drop jquery.mobile
All that code, just for swipe. Nah...
2022-02-23 14:36:07 +01:00
Henne Vogelsang
f3a54ee82d
Fix main assets location
Some OBSisms sneaked into my copy and paste job.
2022-02-23 14:36:06 +01:00
Henne Vogelsang
7c1d3ce1c4
Run rails upgrade task
next bundle exec rails app:update
2021-08-18 15:36:54 +02:00
Stella Rouzi
780d37eb41
Enable datepicker for readonly fields
Remove minDate definition, so that value appears in readonly input
2021-03-06 12:48:50 +01:00
James Mason
7a04f3582f
Remove travel schedule from registration
(cherry picked from commit d18cc02f0185df39bb4213d8a63a955dfb433dcb)
Re: https://github.com/openSUSE/osem/issues/2333
2021-03-06 04:09:02 +01:00
Thomas Schmidt
588884bace
update jquery-ui-rails 2020-09-29 00:41:18 +02:00
Ana María Martínez Gómez
b2e6c1b701
Merge pull request #2462 from Ana06/carrousel
Fix overlay of carousel controls
2019-04-06 10:06:37 +02:00
cyrille
e669b37dfa Fixes datetime pickers
- some read only attributes that deny pick a date/date-time
- typos in haml and in JS
- undefined methods in JS

Fixes https://github.com/openSUSE/osem/issues/2455
2019-03-27 23:04:42 +01:00
Ana María Martínez Gómez
6926990fea
Fix overlay of carousel controls
Events on the last column where not clickable because the carousel
controls where render on top. Make them narrower to solve it.

This bug was a side effect of using a carousel for rendering the
schedule. There are strong arguments to think this is not the best
design and a better solution is being discussed:

https://github.com/openSUSE/osem/issues/2421

Fixes https://github.com/openSUSE/osem/issues/2434

Co-authored-by: @sncarnera
2019-03-26 13:40:38 +01:00
Rahul
9959b1853b Remove picktime
Fixes https://github.com/openSUSE/osem/issues/2347 picktime is deprecated so removing it fixes the issue.
2019-03-09 00:34:26 +05:30
Henne Vogelsang
1e5558660f
Merge pull request #2354 from Ana06/datepickers
Fix Datepickers in Call for Content
2019-03-08 14:31:57 +01:00
Ana María Martínez Gómez
1a3e3f433d
Fix Datepickers in Call for Content
Datapickers in Call for Events/Booths/Tracks were broken which made impossible
to create them (as the date is required).

Those are not the only Datepickers broken and a similar solution should work
for the rest as well.

Fixes https://github.com/openSUSE/osem/issues/2349
2019-03-06 15:04:22 +01:00
Henne Vogelsang
6ec905b666 Fix scheduling
Can't cache the event as the data is changed the scheduling js.

We also can't verify the token in the EventSchedules controller
as we are making susequent ajax calls and have no means to refresh
the token for the second request.

Make draggables scrollable.

There also is no need to spam the console with debug code...

Partly fixes #2353
2019-02-22 10:45:19 +01:00
Henne Vogelsang
ae9430dfb8 Revert "Add rails-ujs"
This reverts commit b846df30f9.
2019-02-22 02:04:57 +01:00
Henne Vogelsang
b846df30f9 Add rails-ujs 2019-02-21 23:57:07 +01:00
James Mason
516e53d9df Use chartkick globally
* Clean up legacy charting imports
* Update existing donut and line charts
* Create helpers for parsing out existing chart data
* Move chart partials to a more common path
2018-12-30 16:57:22 -08:00
James Mason
1241d21f93 Provide an opportunity for including conference-specific CSS
There is currently no top-level selector for views that is conference-specific,
so all conferences on one OSEM instance end up sharing all the same CSS.

In order to allow individual conferences to have unique CSS, a class for the
current conference is applied to the <body> tag, and an scss template provided with
an example of conference-specific CSS.
2018-11-06 08:19:01 -08:00
James Mason
b11001cdba Every campaign has an end.
Drop ahoy, because it's more trouble than it's worth. This means dropping
visits, campaigns, targets.

Campaigns are better run to analytics, such as:
* https://matomo.org/docs/tracking-campaigns/
* https://matomo.org/docs/tracking-goals-web-analytics/
* https://support.google.com/analytics/answer/1012040?hl=en
2018-10-16 21:34:04 +02:00
James Mason
988803b601 Shuffle splashpage highlights
(cherry picked from commit 1101c3c9497766a498422ce5c5bfe797a52cf840)
2018-10-11 00:51:46 +02:00
James Mason
d7a0936dd7 Convert admin/registrations datatable to AJAX-backed
Supercedes https://github.com/openSUSE/osem/pull/2031 .

Note:

* "Questions" modals have been dropped from this view; questions are no
  longer asked on registration, since Surveys(PR#1100)  were added.
2018-10-10 21:57:22 +02:00
James Mason
3af4dd5aac Move big statistics to a partial 2018-09-27 15:42:08 +02:00
James Mason
c524f8cc65 Add an option for shorter datatable pages 2018-08-30 16:50:42 +02:00
James Mason
7541f5818c Require >=3 chars for datatable search
Performing a search with < 3 chars is not generally fruitful
2018-08-30 16:50:42 +02:00
James Mason
64ceaf50f4 Update Admin user datatables to use AJAX 2018-08-30 16:50:42 +02:00
Tyrant Davis
1333641a5f Change css id #publicorprivate to a class id. Upate splashpages/show.html.haml 2018-08-29 21:28:20 -07:00
Tyrant Davis
d3ce401cba Indicate if spalshpage is marked as public or not. 2018-08-29 21:28:20 -07:00
Stella Rouzi
e1adf28081 Show charts for survey replies 2018-07-03 08:46:15 +03:00
Stella Rouzi
9f3c0eff5d Add surveys; custom generated by admins
Available during registration or after conference

Co-authored-by: Shyukri <shshyukriev@suse.com>
Co-authored-by: Henne <hvogel@opensuse.org>
Co-authored-by: Moises <mdeniz@suse.com>
2018-07-03 08:46:15 +03:00
James Mason
4ecf078db6 Consistent, concise styling of datables
Add a semantic class to aggregate bootstrap classes and consistently
applyt them to all datatables.
2018-07-02 09:56:51 -06:00
James Mason
1e9765c163 DRY up bootstrapSwitches with default values 2018-06-26 07:10:08 -07:00
James Mason
d703dad496 Add a function for initing boostrapSwitch outside of $() 2018-06-26 07:10:08 -07:00
Astradeni
7fa007d621 resolving conflict in conferences/_tickets
Added in css .word_break and applied it in conferences/_tickets
2018-06-14 11:42:58 -07:00
Stella Rouzi
cf251515f4 Fix toggle of version changes in all pages of datatable 2018-04-16 20:41:07 +03:00
James Mason
9e10678542 Clean up rating partials 2018-03-14 18:00:37 -07:00
James Mason
f062f7f4ee Reduce deprecation warnings 2018-03-15 01:20:57 +01:00
AnkushMalik
ed21986cf1 Fix oauth btn alignment
Use flex for alignment of btn grp

Closes #1931
2018-01-31 09:56:05 -08:00