Skip to content

Commit 51da85d

Browse files
authored
Merge pull request #135 from MultinetInteractive/master
1.0.22
2 parents 9a80631 + afd529c commit 51da85d

6 files changed

Lines changed: 52 additions & 16 deletions

File tree

content/script/frontendjs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ var eduBookingView = {
355355
}
356356
}
357357
}
358-
358+
var bookBtn = document.getElementById('edu-book-btn');
359+
bookBtn.disabled = true;
359360
return true;
360361
},
361362
ValidateCivicRegNo: function () {

content/style/frontendstyle.css

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ h1.courseTitle:hover,
179179
width: 100%;
180180
padding: 48px 0;
181181
text-align: center;
182-
font-size: 1.2rem;
183-
font-weight: 500px;
182+
font-size: 20px;
183+
font-weight: 500;
184184
}
185185

186186
.eduadmin.loginForm form .title .checkEmailForm {
@@ -193,7 +193,7 @@ h1.courseTitle:hover,
193193
font-weight: normal;
194194
color: hsl(0, 0%, 40%);
195195
font-style: italic;
196-
font-size: .95rem;
196+
font-size: 16px;
197197
margin: 0 0 16px 0;
198198
padding: 0;
199199
}
@@ -211,12 +211,37 @@ h1.courseTitle:hover,
211211

212212

213213
@media (min-width: 700px) {
214+
.eduadmin.loginForm form .title .checkEmailForm {
215+
width: 100%;
216+
flex-direction: row;
217+
flex-wrap: wrap;
218+
align-items: center;
219+
/* justify-content: center; */
220+
}
221+
222+
.eduadmin.loginForm form .title .checkEmailForm h3 {
223+
width: 100%;
224+
/* text-align: center; */
225+
}
226+
214227
.eduadmin.loginForm form .title .checkEmailForm .bookingLoginButton {
215228
align-self: flex-end;
216229
}
217230
.eduadmin.loginForm form .title .dateInfo {
218231
padding: 72px 0;
232+
text-align: left;
233+
}
234+
235+
.eduadmin.loginForm form .title .checkEmailForm label {
236+
margin: 0
237+
}
238+
239+
.eduadmin.loginForm form .title .checkEmailForm label .inputHolder {
240+
flex: 1;
241+
width: 350px;
242+
margin: 0 16px 0 0;
219243
}
244+
220245
}
221246

222247
/* ------------------------
@@ -242,7 +267,7 @@ h1.courseTitle:hover,
242267
padding: 48px 0 0;
243268
text-align: center;
244269
font-size: 1.2rem;
245-
font-weight: 500px;
270+
font-weight: 500;
246271
}
247272
.eduadmin.booking-page form .notUserCheck a {margin: 0 0 0 8px; color: hsl(0, 0%, 40%);}
248273
.eduadmin.booking-page form .notUserCheck {
@@ -520,7 +545,7 @@ h1.courseTitle:hover,
520545

521546
display: flex;
522547
flex-direction: column;
523-
justify-content: flex-end;
548+
justify-content: space-between;
524549
}
525550

526551
.eduadmin .objectBlock.brick .objectImage {
@@ -594,4 +619,4 @@ h1.courseTitle:hover,
594619
width: 100%;
595620
margin: auto;
596621
font-size: 14px;
597-
}
622+
}

content/template/bookingTemplate/participantView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class="contactFirstName" class="first-name"
102102
<div class="inputHolder">
103103
<select name="contactPriceName" class="edudropdown participantPriceName edu-pricename" required
104104
onchange="eduBookingView.UpdatePrice();">
105-
<option value=""><?php edu_e( "Choose price" ); ?></option>
105+
<option data-price="0" value=""><?php edu_e( "Choose price" ); ?></option>
106106
<?php foreach ( $prices as $price ) { ?>
107107
<option
108108
data-price="<?php echo esc_attr( $price->Price ); ?>"
@@ -228,7 +228,7 @@ class="participantFirstName first-name" name="participantFirstName[]"
228228
<select name="participantPriceName[]" required
229229
class="edudropdown participantPriceName edu-pricename"
230230
onchange="eduBookingView.UpdatePrice();">
231-
<option value=""><?php edu_e( "Choose price" ); ?></option>
231+
<option data-price="0" value=""><?php edu_e( "Choose price" ); ?></option>
232232
<?php foreach ( $prices as $price ) { ?>
233233
<option
234234
data-price="<?php echo esc_attr( $price->Price ); ?>"

content/template/bookingTemplate/template_A.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
<?php edu_e( "Price name" ); ?>
303303
<select id="edu-pricename" name="edu-pricename" required class="edudropdown edu-pricename"
304304
onchange="eduBookingView.UpdatePrice();">
305-
<option value=""><?php edu_e( "Choose price" ); ?></option>
305+
<option data-price="0" value=""><?php edu_e( "Choose price" ); ?></option>
306306
<?php foreach ( $prices as $price ): ?>
307307
<option
308308
data-price="<?php echo esc_attr( $price->Price ); ?>"
@@ -368,7 +368,7 @@
368368
</label>
369369
</div>
370370
<?php endif; ?>
371-
<input type="submit" class="bookButton cta-btn"
371+
<input type="submit" class="bookButton cta-btn" id="edu-book-btn"
372372
onclick="var validated = eduBookingView.CheckValidation(); return validated;"
373373
<?php if ( $event->MaxParticipantNr > 0 && $event->TotalParticipantNr >= $event->MaxParticipantNr ) : ?>
374374
disabled title="<?php esc_attr( edu_e( 'No free spots left on this event' ) ); ?>"

eduadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin URI: http://www.eduadmin.se
99
* Description: EduAdmin plugin to allow visitors to book courses at your website
1010
* Tags: booking, participants, courses, events, eduadmin, lega online
11-
* Version: 1.0.21
11+
* Version: 1.0.22
1212
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1313
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1414
* Requires at least: 4.7

readme.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Requires at least: 4.7
88

99
Tested up to: 4.9.2
1010

11-
Stable tag: 1.0.21
11+
Stable tag: 1.0.22
1212

1313
Requires PHP: 5.0.1 (with SoapClient)
1414

@@ -39,20 +39,30 @@ Requires at least PHP 5.0.1 (with [SoapClient](http://php.net/manual/en/book.soa
3939

4040
== Upgrade Notice ==
4141

42-
### [1.0.21]
42+
= 1.0.22 =
43+
If you are using an older version than 1.0.21, please test this version on a development server before deploying live.
44+
Since version 1.0.21, there are a lot of design changes in the CSS, that might require you to reset style settings,
45+
and redo your own customization.
46+
47+
= 1.0.21 =
4348
- LOTS of design changes, please update to a development server to see if anything breaks
4449

45-
### [1.0.11]
50+
= 1.0.11 =
4651
- Bugfix with REST API, we don't need to pass the token now, so we can always get a valid token when needed.
4752

48-
### [1.0.10]
53+
= 1.0.10 =
4954
- Changing to REST API instead, hopefully this will increase the speed again.
5055

5156
### [1.0.9]
5257
- We changed to admin-ajax here (It will be slow)
5358

5459
== Changelog ==
5560

61+
### [1.0.22]
62+
- Disabling the book-button when the form is valid and the booking is under way
63+
- Fixes some styles to use `px` instead of `rem`
64+
- Adding `data-price` to the fields that were missing, that (for some reason) the price-calculation wanted
65+
5666
### [1.0.21]
5767
- Lots of design fixes and changes, to make the plugin more mobile friendly
5868
- Login widget bug fixed

0 commit comments

Comments
 (0)