Add input fields (email, name) in Calculator (Pricing page) and Sucess page
This commit is contained in:
		
					parent
					
						
							
								ccfa36bdd7
							
						
					
				
			
			
				commit
				
					
						2ead42bd1a
					
				
			
		
					 7 changed files with 206 additions and 15 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							|  | @ -8,7 +8,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: PACKAGE VERSION\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2017-05-23 17:26-0500\n" | ||||
| "POT-Creation-Date: 2017-06-05 15:23-0500\n" | ||||
| "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||||
| "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||||
| "Language-Team: LANGUAGE <LL@li.org>\n" | ||||
|  | @ -67,6 +67,7 @@ msgstr "Vielen Dank!" | |||
| 
 | ||||
| #: templates/datacenterlight/index.html:62 | ||||
| #: templates/datacenterlight/pricing.html:62 | ||||
| #: templates/datacenterlight/success.html:62 | ||||
| msgid "What is it" | ||||
| msgstr "Was ist es?" | ||||
| 
 | ||||
|  | @ -74,7 +75,8 @@ msgstr "Was ist es?" | |||
| #: templates/datacenterlight/index.html:171 | ||||
| #: templates/datacenterlight/index.html:331 | ||||
| #: templates/datacenterlight/pricing.html:65 | ||||
| #: templates/datacenterlight/pricing.html:188 | ||||
| #: templates/datacenterlight/pricing.html:198 | ||||
| #: templates/datacenterlight/success.html:65 | ||||
| msgid "Scale out" | ||||
| msgstr "Skalierung" | ||||
| 
 | ||||
|  | @ -82,19 +84,22 @@ msgstr "Skalierung" | |||
| #: templates/datacenterlight/index.html:197 | ||||
| #: templates/datacenterlight/index.html:334 | ||||
| #: templates/datacenterlight/pricing.html:68 | ||||
| #: templates/datacenterlight/pricing.html:191 | ||||
| #: templates/datacenterlight/pricing.html:201 | ||||
| #: templates/datacenterlight/success.html:68 | ||||
| msgid "Reliable and light" | ||||
| msgstr "Zuverlässig und leicht" | ||||
| 
 | ||||
| #: templates/datacenterlight/index.html:71 | ||||
| #: templates/datacenterlight/pricing.html:71 | ||||
| #: templates/datacenterlight/success.html:71 | ||||
| msgid "Buy VM" | ||||
| msgstr "VM Kaufen" | ||||
| 
 | ||||
| #: templates/datacenterlight/index.html:74 | ||||
| #: templates/datacenterlight/index.html:341 | ||||
| #: templates/datacenterlight/pricing.html:74 | ||||
| #: templates/datacenterlight/pricing.html:198 | ||||
| #: templates/datacenterlight/pricing.html:208 | ||||
| #: templates/datacenterlight/success.html:74 | ||||
| msgid "Contact" | ||||
| msgstr "Kontakt" | ||||
| 
 | ||||
|  | @ -112,7 +117,7 @@ msgstr "Das will ich haben!" | |||
| 
 | ||||
| #: templates/datacenterlight/index.html:142 | ||||
| #: templates/datacenterlight/index.html:328 | ||||
| #: templates/datacenterlight/pricing.html:185 | ||||
| #: templates/datacenterlight/pricing.html:195 | ||||
| msgid "How it works" | ||||
| msgstr "Wie es funktioniert" | ||||
| 
 | ||||
|  | @ -177,11 +182,13 @@ msgid "Based in Switzerland" | |||
| msgstr "Standort des Datacenters ist in der Schweiz" | ||||
| 
 | ||||
| #: templates/datacenterlight/index.html:243 | ||||
| msgid "15 GB Storage (SSD)" | ||||
| #, fuzzy | ||||
| #| msgid "15 GB Storage (SSD)" | ||||
| msgid "10 GB Storage (SSD)" | ||||
| msgstr "15 GB Storage (SSD)" | ||||
| 
 | ||||
| #: templates/datacenterlight/index.html:246 | ||||
| #: templates/datacenterlight/pricing.html:156 | ||||
| #: templates/datacenterlight/pricing.html:166 | ||||
| msgid "Order Now!" | ||||
| msgstr "Bestelle jetzt!" | ||||
| 
 | ||||
|  | @ -202,12 +209,12 @@ msgid "Contact us!" | |||
| msgstr "Kontaktiere uns!" | ||||
| 
 | ||||
| #: templates/datacenterlight/index.html:324 | ||||
| #: templates/datacenterlight/pricing.html:181 | ||||
| #: templates/datacenterlight/pricing.html:191 | ||||
| msgid "Home" | ||||
| msgstr "Home" | ||||
| 
 | ||||
| #: templates/datacenterlight/index.html:337 | ||||
| #: templates/datacenterlight/pricing.html:194 | ||||
| #: templates/datacenterlight/pricing.html:204 | ||||
| msgid "Pricing" | ||||
| msgstr "Preise" | ||||
| 
 | ||||
|  | @ -217,14 +224,22 @@ msgstr "Preise" | |||
| msgid "Hosted in Switzerland" | ||||
| msgstr "Standort des Datacenters ist in der Schweiz" | ||||
| 
 | ||||
| #: templates/datacenterlight/pricing.html:136 | ||||
| #: templates/datacenterlight/pricing.html:139 | ||||
| msgid "GB Storage (SSD)" | ||||
| msgstr "GB Storage (SSD)" | ||||
| 
 | ||||
| #: templates/datacenterlight/pricing.html:163 | ||||
| #: templates/datacenterlight/pricing.html:173 | ||||
| msgid "Simple and affordable: Try our virtual machine with featherlight price." | ||||
| msgstr "" | ||||
| 
 | ||||
| #: templates/datacenterlight/success.html:101 | ||||
| msgid "Thank you for order! Our team will contact you via email" | ||||
| msgstr "Vielen Dank für die Bestellung. Unser Team setzt sich sobald wie möglich mit Ihnen via E-Mail in Verbindung." | ||||
| 
 | ||||
| #: templates/datacenterlight/success.html:102 | ||||
| msgid "as soon as possible!" | ||||
| msgstr "" | ||||
| 
 | ||||
| #~ msgid "Buy Now!" | ||||
| #~ msgstr "Kaufe jetzt!" | ||||
| 
 | ||||
|  |  | |||
|  | @ -243,6 +243,10 @@ h6 { | |||
|     align-items: center; | ||||
|     position: relative; | ||||
| } | ||||
| .intro-pricing.success-pricing{ | ||||
|     height: 100vh; | ||||
|     max-height: 100vh; | ||||
| } | ||||
| .intro-pricing::before{ | ||||
|     content: ""; | ||||
|     position: absolute; | ||||
|  | @ -631,12 +635,32 @@ h6 { | |||
|     height: 40px; | ||||
|     width: 200px; | ||||
|     text-align: center; | ||||
|     font-size: 18px; | ||||
|     font-size: 16px; | ||||
|     margin-left: 10px; | ||||
| } | ||||
| .price-calc-section .card .check-ip{ | ||||
|     font-size: 18px; | ||||
| } | ||||
| 
 | ||||
| .price-calc-section .card .description.input{ | ||||
|     justify-content: center; | ||||
| } | ||||
| .price-calc-section .card .description.input label{ | ||||
|     font-size: 15px; | ||||
|     font-weight: 800; | ||||
|     font-family: 'Montserrat-Regular'; | ||||
|     margin-bottom: 0; | ||||
|     width: 40px; | ||||
| } | ||||
| .price-calc-section .card .description.input input{ | ||||
|      width: 200px; | ||||
|     font-size: 14px; | ||||
|     text-align: left; | ||||
|     padding: 5px 10px; | ||||
|     border-radius: 4px; | ||||
|     border: 1px solid #d0d0d0; | ||||
|     background: #fff; | ||||
|     margin-left: 10px; | ||||
| } | ||||
| .price-calc-section .card .check-ip input[type=checkbox]{ | ||||
|     font-size: 17px; | ||||
|     margin: 0 8px; | ||||
|  | @ -736,6 +760,10 @@ h6 { | |||
|         transform: translate(-50%, 0); | ||||
|     } | ||||
| 
 | ||||
|     .intro-pricing .intro-message .section-heading { | ||||
|         font-size: 30px; | ||||
|     } | ||||
|      | ||||
| } | ||||
| 
 | ||||
| @media(max-width:540px) { | ||||
|  |  | |||
|  | @ -141,7 +141,8 @@ | |||
|                   </div> | ||||
|                   | ||||
| 
 | ||||
|                   <div class="description select-configuration"> | ||||
|                   <div class="description select-configuration input"> | ||||
|                     <label for="config">OS</label> | ||||
|                   	<select name="config" id=""> | ||||
| 						{% for template in templates %} | ||||
|                                 <option value="{{template.id}}">{{template.name}} </option> | ||||
|  | @ -152,6 +153,15 @@ | |||
|                    <!--<div class="description check-ip"> | ||||
|                   	<input type="checkbox" name="ipv6"> Ipv6 Only<br> | ||||
| 				   </div>--> | ||||
| 
 | ||||
|                   <div class="description input"> | ||||
|                     <label for="name">Name</label> | ||||
|                     <input type="text" name="name" placeholder="Your Name"> | ||||
|                   </div> | ||||
|                   <div class="description input"> | ||||
|                     <label for="email">Email</label> | ||||
|                     <input type="email" name="email" placeholder="Your Email"> | ||||
|                   </div> | ||||
|               </div> | ||||
|               <input type="submit" class="btn btn-primary" value="{% trans 'Order Now!' %}"></input> | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										134
									
								
								datacenterlight/templates/datacenterlight/success.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										134
									
								
								datacenterlight/templates/datacenterlight/success.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,134 @@ | |||
| {% load staticfiles i18n%} | ||||
| {% get_current_language as LANGUAGE_CODE %} | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| 
 | ||||
| <head> | ||||
| 
 | ||||
|     <meta charset="utf-8"> | ||||
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
|     <meta name="description" content=""> | ||||
|     <meta name="author" content=""> | ||||
| 
 | ||||
|     <title>datacenterlight.ch - Featherlight Swiss VM</title> | ||||
| 
 | ||||
|     <!-- Bootstrap Core CSS --> | ||||
|     <link href="{% static 'datacenterlight/css/bootstrap.min.css' %}" rel="stylesheet"> | ||||
| 
 | ||||
| 
 | ||||
|      | ||||
| 
 | ||||
|     <!-- Custom Fonts --> | ||||
|     <!--Import Google Icon Font--> | ||||
|      <link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||||
|     <link href="{% static 'datacenterlight/font-awesome/css/font-awesome.min.css' %}" rel="stylesheet" type="text/css"> | ||||
|     <link href="//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css"> | ||||
|     <link rel="shortcut icon" href="{% static 'datacenterlight/img/favicon.ico' %}" type="image/x-icon" /> | ||||
|     <link href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.min.css" rel="stylesheet"> | ||||
| 
 | ||||
|     <!-- Custom CSS --> | ||||
|     <link href="{% static 'datacenterlight/css/landing-page.css' %}" rel="stylesheet"> | ||||
| 
 | ||||
|     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||||
|     <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||||
|     <!--[if lt IE 9]> | ||||
|         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | ||||
|         <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | ||||
|     <![endif]--> | ||||
| 
 | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
| 
 | ||||
|     <!-- Navigation --> | ||||
|     <nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation"> | ||||
|         <div class="topnav"> | ||||
|             <!-- Brand and toggle get grouped for better mobile display --> | ||||
|             <div class="navbar-header"> | ||||
|                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> | ||||
|                     <span class="sr-only">Toggle navigation</span> | ||||
|                     <span class="icon-bar"></span> | ||||
|                     <span class="icon-bar"></span> | ||||
|                     <span class="icon-bar"></span> | ||||
|                 </button> | ||||
|                 <a id="logoBlack" class="navbar-brand topnav url" href="{% url 'datacenterlight:index' %}" ><img src="{% static 'datacenterlight/img/logo_black.svg' %}"></a> | ||||
|                 <a id="logoWhite" class="navbar-brand topnav url" href="{% url 'datacenterlight:index' %}" ><img src="{% static 'datacenterlight/img/logo_white.svg' %}"></a> | ||||
|             </div> | ||||
|             <!-- Collect the nav links, forms, and other content for toggling --> | ||||
|             <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||||
|                 <ul class="nav navbar-nav navbar-right"> | ||||
|                  <!--    <li> | ||||
|                         <a class="url" href="javascript:void(0)" data-url="#how" >{% trans "What is it" %}</a> | ||||
|                     </li> | ||||
|                     <li> | ||||
|                         <a class="url" href="javascript:void(0)" data-url="#your"  >{% trans "Scale out" %}</a> | ||||
|                     </li> | ||||
|                    <li> | ||||
|                         <a class="url" href="javascript:void(0)" data-url="#our">{% trans "Reliable and light" %}</a> | ||||
|                     </li> | ||||
|                     <li> | ||||
|                         <a class="url" href="javascript:void(0)" data-url="#price" >{% trans "Buy VM" %}</a> | ||||
|                     </li> | ||||
|                     <li> | ||||
|                         <a class="url" href="javascript:void(0)" data-url="#contact"  >{% trans "Contact" %}</a> | ||||
|                      </li> --> | ||||
| 
 | ||||
|                     <select class="selectpicker" data-width="fit" onchange="location = this.value;" style="margin-top:10px;"> | ||||
|                         {% if LANGUAGE_CODE == 'en-us'%}  | ||||
|                             <option selected="selected" value="{{base_url}}/en-us/datacenterlight/pricing-success/">English</option> | ||||
|                         {% else %} | ||||
|                             <option value="{{base_url}}/en-us/datacenterlight/pricing-success/">English</option> | ||||
|                         {% endif %} | ||||
|                         {% if LANGUAGE_CODE == 'de'%}  | ||||
|                             <option selected="selected" value="{{base_url}}/de/datacenterlight/pricing-success/">Deutsch</option> | ||||
|                         {% else %} | ||||
|                             <option value="{{base_url}}/de/datacenterlight/pricing-success/">Deutsch</option> | ||||
|                         {% endif %}          | ||||
|                          | ||||
|                       </select>  | ||||
|                 </ul> | ||||
| 
 | ||||
| 
 | ||||
|             </div> | ||||
|             <!-- /.navbar-collapse --> | ||||
|         </div> | ||||
|         <!-- /.container --> | ||||
|     </nav> | ||||
| 	<div class="intro-pricing success-pricing"> | ||||
| 
 | ||||
| 		<div class="intro-message"> | ||||
| 			<h2 class="section-heading">{% trans "Thank you for order! Our team will contact you via email" %}</h2> | ||||
| 			{% if LANGUAGE_CODE == 'en-us'%}  | ||||
| 			<h2 class="section-heading">{% trans "as soon as possible!" %}</h2> | ||||
| 			{% endif %}  | ||||
| 		</div> | ||||
| 		 | ||||
| 	</div> | ||||
|     <script src="{% static 'datacenterlight/js/jquery.js' %}"></script> | ||||
| 
 | ||||
| <script type="text/javascript"> | ||||
|       window.onload=function(){ | ||||
|         $('.selectpicker').selectpicker({ | ||||
|              style: 'btn-link', | ||||
|              windowPadding: 10, | ||||
|         }); | ||||
| 
 | ||||
|         var hash = window.location.hash.substr(1); | ||||
|         console.log(hash); | ||||
|         if (hash == 'requestform'){ | ||||
|             $('#reques-success-message').modal('show'); | ||||
|         } | ||||
| 
 | ||||
|        }; | ||||
| </script> | ||||
| 
 | ||||
|     <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.js"></script> | ||||
| 
 | ||||
|     <!-- Bootstrap Core JavaScript --> | ||||
|     <script src="{% static 'datacenterlight/js/bootstrap.min.js' %}"></script> | ||||
|     <script src="{% static 'datacenterlight/js/main.js' %}"></script> | ||||
| 
 | ||||
| </body> | ||||
| 
 | ||||
| </html> | ||||
|  | @ -1,6 +1,6 @@ | |||
| from django.conf.urls import url | ||||
| 
 | ||||
| from .views import IndexView, BetaProgramView, LandingProgramView, BetaAccessView, PricingView | ||||
| from .views import IndexView, BetaProgramView, LandingProgramView, BetaAccessView, PricingView, SuccessView | ||||
| 
 | ||||
| 
 | ||||
| urlpatterns = [ | ||||
|  | @ -8,5 +8,6 @@ urlpatterns = [ | |||
|     url(r'^/beta-program/?$', BetaProgramView.as_view(), name='beta'), | ||||
|     url(r'^/landing/?$', LandingProgramView.as_view(), name='landing'), | ||||
|     url(r'^/pricing/?$', PricingView.as_view(), name='pricing'), | ||||
|     url(r'^/pricing-success/?$', SuccessView.as_view(), name='success'), | ||||
|     url(r'^/beta_access?$', BetaAccessView.as_view(), name='beta_access'), | ||||
| ] | ||||
|  |  | |||
|  | @ -14,6 +14,9 @@ from opennebula_api.serializers import VirtualMachineTemplateSerializer | |||
| class LandingProgramView(TemplateView): | ||||
|     template_name = "datacenterlight/landing.html" | ||||
| 
 | ||||
| class SuccessView(TemplateView): | ||||
|     template_name = "datacenterlight/success.html" | ||||
| 
 | ||||
| class PricingView(TemplateView): | ||||
|     template_name = "datacenterlight/pricing.html" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue