I'm working in my first responsive solution .... with plenty of doubts
This's my html code in the component
- Code: Select all
<div class="container-fluid">
<section class="container">
<div class="container-page">
<div class="col-md-6">
<h3 class="dark-grey">Registro</h3>
<div class="form-group col-lg-12">
<label>Usuario</label>
<input type="text" class="form-control" ng-model="model.usuarioID" svy-autoapply>
</div>
<div class="form-group col-lg-6">
<label>Contraseña</label>
<input type="password" class="form-control" ng-model="model.pwd1ID" svy-autoapply>
</div>
<div class="form-group col-lg-6">
<label>Repita contraseña</label>
<input type="password" class="form-control" ng-model="model.pwd2ID" svy-autoapply>
</div>
<div class="form-group col-lg-6">
<label>Correo Electrónico</label>
<input type="text" class="form-control" ng-model="model.email1ID" svy-autoapply>
</div>
<div class="form-group col-lg-6">
<label>Repita Correo Electrónico</label>
<input type="text" class="form-control" ng-model="model.email2ID" svy-autoapply>
</div>
</div>
<div class="col-md-6">
<h3 class="dark-grey">Términos y condiciones</h3>
<p>
By clicking on "Register" you agree to The Company's' Terms and Conditions
</p>
<p>
While rare, prices are subject to change based on exchange rate fluctuations -
should such a fluctuation happen, we may request an additional payment. You have the option to request a full refund or to pay the new price. (Paragraph 13.5.8)
</p>
<p>
Should there be an error in the description or pricing of a product, we will provide you with a full refund (Paragraph 13.5.6)
</p>
<p>
Acceptance of an order by us is dependent on our suppliers ability to provide the product. (Paragraph 13.5.6)
</p>
<button type="button" class="btn btn-success" svy-click="handlers.alta_t900_usuarios($event)" svy-autoapply>Registrar</button>
</div>
</div>
</section>
</div>
This is the spec file
- Code: Select all
{
"name": "pethistory-ph-Sign-Up-Form",
"displayName": "Formulario de Registro Usuario",
"version": 1,
"definition": "pethistory/phSignUpForm/phSignUpForm.js",
"libraries": [],
"model":
{
"userID" : {"type" : "dataprovider", "pushToServer": "allow"},
"pwd1ID" : {"type" : "dataprovider", "pushToServer": "allow"},
"pwd2ID" : {"type" : "dataprovider", "pushToServer": "allow"},
"email1ID" : {"type" : "dataprovider", "pushToServer": "allow"},
"email2ID" : {"type" : "dataprovider", "pushToServer": "allow"}
},
"handlers":
{
"alta_t900_usuarios" : "function"
}
}
How can do the magic to send the parameters userID, pwd1ID, pw2ID, email1ID and email2ID to the function 'alta_t900_usuarios'
( alta_t900_usuarios = sign up user .... translated to english)
to process them in the form function ?
Best regards. Roberto Blasco