Changeset 1641783
- Timestamp:
- 04/20/2017 09:22:31 PM (9 years ago)
- Location:
- redi-restaurant-reservation/branches/newDesign
- Files:
-
- 3 edited
-
css/restaurant.css (modified) (19 diffs)
-
js/restaurant.js (modified) (5 diffs)
-
templates/frontend.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
redi-restaurant-reservation/branches/newDesign/css/restaurant.css
r1640064 r1641783 289 289 text-align: left; 290 290 color: #fa9090; 291 display: inline-block;291 display: inline-block; 292 292 max-width: 400px; 293 293 margin: 0 auto; … … 723 723 text-align: left; 724 724 max-width: 400px; 725 margin: 0 auto; 725 min-width: 290px; 726 margin: 0 auto; 727 height: 30px; 726 728 } 727 729 … … 731 733 color: #888; 732 734 width: 100%; 735 min-width: 290px; 736 max-width: 400px; 737 position: relative; 733 738 } 734 739 … … 749 754 750 755 span.selectArrow2 { 751 position: relative;756 position: absolute; 752 757 float: left; 753 758 height: 32px; 754 759 left: 0; 755 } 760 z-index: 10; 761 top:-1px; 762 } 763 756 764 /* end on name field */ 757 765 … … 763 771 border-bottom-left-radius: 3px; 764 772 text-align: center; 765 background: #f3f3f3; 766 background-image: url(../img/f_phone.png); 767 background-repeat: no-repeat; 768 background-position: center; 773 background: #f3f3f3 url(../img/f_phone.png) no-repeat center; 769 774 } 770 775 … … 774 779 775 780 span.selectArrow3 { 776 position: relative;781 position: absolute; 777 782 float: left; 778 783 height: 32px; 784 left: 0; 785 z-index: 10; 786 top:-1px; 779 787 } 780 788 … … 794 802 795 803 span.selectArrow4 { 796 position: relative;804 position: absolute; 797 805 float: left; 798 806 height: 32px; 807 left: 0; 808 z-index: 10; 809 top:-1px; 799 810 } 800 811 … … 808 819 font-family: 'PT Sans Narrow', verdana; 809 820 font-size: 16px; 810 color: rgb(142, 142, 142); 811 text-indent: 20px; 821 text-indent: 70px; 812 822 background: #ffffff; 813 823 overflow: hidden; … … 819 829 border-bottom-right-radius: 3px; 820 830 border-image: none; 821 border-style: solid solid solid none;822 831 border-top-right-radius: 3px; 823 border-width: 1px 1px 1px medium;824 832 color: rgb(142, 142, 142); 833 border: 1px solid #bbb; 825 834 } 826 835 … … 848 857 849 858 span.selectArrow5 { 850 position: relative;859 position: absolute; 851 860 float: left; 852 height: 149px; 853 margin: 1px 0 0 0; 861 height: 32px; 862 left: 0; 863 z-index: 10; 854 864 } 855 865 … … 872 882 873 883 span.selectArrow6, span.selected2 { 874 position: relative;884 position: absolute; 875 885 float: left; 876 886 height: 32px; 887 left: 0; 877 888 z-index: 10; 878 889 } … … 921 932 922 933 span.selectArrow7, span.selected2 { 923 position: relative;934 position: absolute; 924 935 float: left; 925 936 height: 32px; 937 left: 0; 926 938 z-index: 10; 927 939 } … … 1019 1031 padding: 0; 1020 1032 } 1021 .checkbox_field{ 1033 1034 .checkbox_field { 1022 1035 line-height: 32px; 1023 1036 color: rgb(142, 142, 142); … … 1025 1038 font-family: "PT Sans Narrow", verdana; 1026 1039 font-size: 16px; 1027 margin-left: 20px; 1028 } 1040 margin-left: 70px; 1041 } 1042 1029 1043 .text_field { 1030 1044 -moz-border-bottom-colors: none; … … 1044 1058 height: 31px; 1045 1059 overflow: hidden; 1046 text-indent: 20px;1060 text-indent: 70px; 1047 1061 width: 69%; 1048 1062 } … … 1057 1071 .required { 1058 1072 border-top: 2px solid #fa9999 !important; 1073 top:-1px; 1059 1074 } 1060 1075 … … 1187 1202 max-width: 400px; 1188 1203 margin: 0 auto; 1204 min-width: 290px; 1189 1205 } 1190 1206 … … 1224 1240 box-shadow: none !important; 1225 1241 color: #888 !important; 1226 margin: 1px 0 0 0; 1227 width:87%; 1242 margin: auto 0; 1243 width: 100%; 1244 position: absolute; 1245 left: 0; 1246 min-width: 290px; 1247 max-width: 400px; 1248 z-index: 0; 1228 1249 } 1229 1250 … … 1247 1268 } 1248 1269 1249 #step2{ 1250 min-width:290px; 1251 } 1252 #redi-booking-buttons table tr td{ 1270 #step2 { 1271 min-width: 290px; 1272 } 1273 1274 #redi-booking-buttons table tr td { 1253 1275 margin: 0; 1254 1276 padding: 0; 1255 1277 } 1256 #redi-booking-buttons table{ 1257 width:100%; 1258 text-align:center; 1259 } 1260 #buttons_first_step{ 1261 height:40px; 1278 1279 #redi-booking-buttons table { 1280 width: 100%; 1281 text-align: center; 1282 } 1283 1284 #buttons_first_step { 1285 height: 40px; 1262 1286 max-width: 400px; 1263 1287 margin: 0 auto; 1264 1288 } 1265 #redi-booking-buttons{ 1266 height:40px; 1289 1290 #redi-booking-buttons { 1291 height: 40px; 1267 1292 max-width: 400px; 1268 1293 margin: 0 auto; 1269 1294 } 1270 #step2errors{ 1295 1296 #step2errors { 1271 1297 margin: 15px; 1272 1298 } 1273 #step2load{ 1299 1300 #step2load { 1274 1301 margin-left: 140px; 1275 1302 } 1303 1304 #redi-booking-div .f_text_selection_step2 table tr, #redi-booking-div .f_text_selection_step2 table td{ 1305 padding: 0.1em 1em; 1306 } 1307 .text_field.form_validation_error { 1308 border-color: #fa9090; 1309 } 1310 .field_required.form_validation_error{ 1311 outline: 1px solid #fa9090; 1312 } -
redi-restaurant-reservation/branches/newDesign/js/restaurant.js
r1609965 r1641783 209 209 if ($('#UserEmail').val() === '' || !validateEmail($('#UserEmail').val())) { 210 210 $('#email_validation_error').show(); 211 $('# email_validation_ok').hide();211 $('#UserEmail').addClass('form_validation_error'); 212 212 $('#incorrect_email').show(); 213 213 $('#UserEmail').focus(); … … 216 216 else { 217 217 $('#email_validation_error').hide(); 218 $('# email_validation_ok').show();218 $('#UserEmail').removeClass('form_validation_error'); 219 219 $('#incorrect_email').hide(); 220 220 } 221 221 if ($('#UserPhone').val() === '') { 222 222 $('#phone_validation_error').show(); 223 $('# phone_validation_ok').hide();223 $('#UserPhone').addClass('form_validation_error'); 224 224 $('#incorrect_phone').show(); 225 225 $('#UserPhone').focus(); … … 228 228 else { 229 229 $('#phone_validation_error').hide(); 230 $('# phone_validation_ok').show();230 $('#UserPhone').removeClass('form_validation_error'); 231 231 $('#incorrect_phone').hide(); 232 232 } 233 233 if ($('#UserName').val() === '') { 234 234 $('#name_validation_error').show(); 235 $('# name_validation_ok').hide();235 $('#UserName').addClass('form_validation_error'); 236 236 $('#incorrect_name').show(); 237 237 $('#UserName').focus(); … … 240 240 else { 241 241 $('#name_validation_error').hide(); 242 $('# name_validation_ok').show();242 $('#UserName').removeClass('form_validation_error'); 243 243 $('#incorrect_name').hide(); 244 244 } … … 247 247 if ($(this).attr('type') === 'checkbox' && $(this).attr('checked') !== 'checked' || $(this).attr('type') === 'textbox' && $(this).val() === '') { 248 248 $('#' + this.id + '_message').show(); 249 $('#' + this.id).addClass('form_validation_error'); 249 250 error = true; 250 251 } else { 251 252 $('#' + this.id + '_message').hide(); 253 $('#' + this.id).removeClass('form_validation_error'); 252 254 } 253 255 }); -
redi-restaurant-reservation/branches/newDesign/templates/frontend.php
r1640064 r1641783 275 275 </div> 276 276 <br/> 277 <div class="f_select2">277 <div class="f_select2"> 278 278 <div class="f_input_box"> 279 279 <span class="selectArrow4 required"></span> … … 287 287 </div> 288 288 <br/> 289 <div class="f_select2">289 <div style="height: 150px;" class="f_select2"> 290 290 <div class="f_input_box"> 291 <span class="selectArrow5"></span> 292 <textarea class="textarea_field" placeholder="<?php _e( 'comment', 'redi-booking' ); ?>" id="UserComments"></textarea> 293 </div> 294 </div> 291 <span style="height: 150px;" class="selectArrow5"></span> 292 <textarea style="height: 151px;" class="textarea_field" placeholder="<?php _e( 'comment', 'redi-booking' ); ?>" id="UserComments"></textarea> 293 </div> 294 </div> 295 <br/> 295 296 <!-- custom fields --> 296 297 <?php for ( $i = 1; $i != 6; $i ++ ): ?> … … 331 332 <?php endif; ?> 332 333 </div> 334 <br/> 333 335 <?php endif; ?> 334 336 <?php endfor; ?>
Note: See TracChangeset
for help on using the changeset viewer.