2020-06-09 15:44:20 +02:00
---
layout: examples
2021-04-27 14:38:44 +02:00
title: مثال إتمام الشراء
2020-06-09 15:44:20 +02:00
direction: rtl
extra_css:
- "../checkout/form-validation.css"
extra_js:
- src: "../checkout/form-validation.js"
body_class: "bg-light"
---
< div class = "container" >
< main >
< div class = "py-5 text-center" >
< img class = "d-block mx-auto mb-4" src = "/docs/{{< param docs_version >}}/assets/brand/bootstrap-logo.svg" alt = "" width = "72" height = "57" >
2021-04-27 14:38:44 +02:00
< h2 > نموذج إتمام الشراء< / h2 >
2020-06-09 15:44:20 +02:00
< p class = "lead" > فيما يلي مثال على نموذج تم إنشاؤه بالكامل باستخدام عناصر تحكم النموذج في Bootstrap. لكل مجموعة نماذج مطلوبة حالة تحقق يمكن تشغيلها بمحاولة إرسال النموذج دون استكماله.< / p >
< / div >
< div class = "row g-3" >
< div class = "col-md-5 col-lg-4 order-md-last" >
< h4 class = "d-flex justify-content-between align-items-center mb-3" >
2021-04-27 14:38:44 +02:00
< span class = "text-muted" > عربة التسوق< / span >
2020-06-09 15:44:20 +02:00
< span class = "badge bg-secondary rounded-pill" > 3< / span >
< / h4 >
< ul class = "list-group mb-3" >
< li class = "list-group-item d-flex justify-content-between lh-sm" >
< div >
< h6 class = "my-0" > اسم المنتج< / h6 >
< small class = "text-muted" > وصف مختصر< / small >
< / div >
< span class = "text-muted" > $12< / span >
< / li >
< li class = "list-group-item d-flex justify-content-between lh-sm" >
< div >
< h6 class = "my-0" > المنتج الثاني< / h6 >
< small class = "text-muted" > وصف مختصر< / small >
< / div >
< span class = "text-muted" > $8< / span >
< / li >
< li class = "list-group-item d-flex justify-content-between lh-sm" >
< div >
< h6 class = "my-0" > البند الثالث< / h6 >
< small class = "text-muted" > وصف مختصر< / small >
< / div >
< span class = "text-muted" > $5< / span >
< / li >
< li class = "list-group-item d-flex justify-content-between bg-light" >
< div class = "text-success" >
< h6 class = "my-0" > رمز ترويجي< / h6 >
< small > EXAMPLECODE< / small >
< / div >
< span class = "text-success" > -$5< / span >
< / li >
< li class = "list-group-item d-flex justify-content-between" >
< span > مجموع (USD)< / span >
< strong > $20< / strong >
< / li >
< / ul >
< form class = "card p-2" >
< div class = "input-group" >
< input type = "text" class = "form-control" placeholder = "رمز ترويجي" >
2021-04-27 14:38:44 +02:00
< button type = "submit" class = "btn btn-secondary" > تحقق< / button >
2020-06-09 15:44:20 +02:00
< / div >
< / form >
< / div >
< div class = "col-md-7 col-lg-8" >
2021-04-27 14:38:44 +02:00
< h4 class = "mb-3" > عنوان الفوترة< / h4 >
2020-06-09 15:44:20 +02:00
< form class = "needs-validation" novalidate >
< div class = "row g-3" >
< div class = "col-sm-6" >
2021-04-27 14:38:44 +02:00
< label for = "firstName" class = "form-label" > الاسم الأول< / label >
2020-06-09 15:44:20 +02:00
< input type = "text" class = "form-control" id = "firstName" placeholder = "" value = "" required >
< div class = "invalid-feedback" >
2021-04-27 14:38:44 +02:00
يرجى إدخال اسم أول صحيح.
2020-06-09 15:44:20 +02:00
< / div >
< / div >
< div class = "col-sm-6" >
2021-04-27 14:38:44 +02:00
< label for = "lastName" class = "form-label" > اسم العائلة< / label >
2020-06-09 15:44:20 +02:00
< input type = "text" class = "form-control" id = "lastName" placeholder = "" value = "" required >
< div class = "invalid-feedback" >
2021-04-27 14:38:44 +02:00
يرجى إدخال اسم عائلة صحيح.
2020-06-09 15:44:20 +02:00
< / div >
< / div >
< div class = "col-12" >
< label for = "username" class = "form-label" > اسم المستخدم< / label >
2020-12-14 13:33:20 +01:00
< div class = "input-group has-validation" >
2020-06-09 15:44:20 +02:00
< span class = "input-group-text" > @< / span >
< input type = "text" class = "form-control" id = "username" placeholder = "اسم المستخدم" required >
< div class = "invalid-feedback" >
اسم المستخدم الخاص بك مطلوب.
< / div >
< / div >
< / div >
< div class = "col-12" >
2021-04-27 14:38:44 +02:00
< label for = "email" class = "form-label" > البريد الإلكتروني < span class = "text-muted" > (اختياري)< / span > < / label >
2020-06-09 15:44:20 +02:00
< input type = "email" class = "form-control" id = "email" placeholder = "you@example.com" >
< div class = "invalid-feedback" >
2021-04-27 14:38:44 +02:00
يرجى إدخال عنوان بريد إلكتروني صحيح لتصلكم تحديثات الشحن.
2020-06-09 15:44:20 +02:00
< / div >
< / div >
< div class = "col-12" >
2021-04-27 14:38:44 +02:00
< label for = "address" class = "form-label" > العنوان< / label >
< input type = "text" class = "form-control" id = "address" placeholder = "1234 الشارع الأول" required >
2020-06-09 15:44:20 +02:00
< div class = "invalid-feedback" >
يرجى إدخال عنوان الشحن الخاص بك.
< / div >
< / div >
< div class = "col-12" >
2021-04-27 14:38:44 +02:00
< label for = "address2" class = "form-label" > عنوان 2 < span class = "text-muted" > (اختياري)< / span > < / label >
< input type = "text" class = "form-control" id = "address2" placeholder = "شقة 24" >
2020-06-09 15:44:20 +02:00
< / div >
< div class = "col-md-5" >
2021-04-27 14:38:44 +02:00
< label for = "country" class = "form-label" > البلد< / label >
2020-06-09 15:44:20 +02:00
< select class = "form-select" id = "country" required >
2021-04-27 14:38:44 +02:00
< option value = "" > اختر...< / option >
2020-06-09 15:44:20 +02:00
< option > الولايات المتحدة الأمريكية< / option >
< / select >
< div class = "invalid-feedback" >
2021-04-27 14:38:44 +02:00
يرجى اختيار بلد صحيح.
2020-06-09 15:44:20 +02:00
< / div >
< / div >
< div class = "col-md-4" >
2021-04-27 14:38:44 +02:00
< label for = "state" class = "form-label" > المنطقة< / label >
2020-06-09 15:44:20 +02:00
< select class = "form-select" id = "state" required >
2021-04-27 14:38:44 +02:00
< option value = "" > اختر...< / option >
2020-06-09 15:44:20 +02:00
< option > كاليفورنيا< / option >
< / select >
< div class = "invalid-feedback" >
2021-04-27 14:38:44 +02:00
يرجى اختيار اسم منطقة صحيح.
2020-06-09 15:44:20 +02:00
< / div >
< / div >
< div class = "col-md-3" >
< label for = "zip" class = "form-label" > الرمز البريدي< / label >
< input type = "text" class = "form-control" id = "zip" placeholder = "" required >
< div class = "invalid-feedback" >
الرمز البريدي مطلوب.
< / div >
< / div >
< / div >
< hr class = "my-4" >
< div class = "form-check" >
< input type = "checkbox" class = "form-check-input" id = "same-address" >
2021-04-27 14:38:44 +02:00
< label class = "form-check-label" for = "same-address" > عنوان الشحن هو نفس عنوان الفوترة الخاص بي< / label >
2020-06-09 15:44:20 +02:00
< / div >
< div class = "form-check" >
< input type = "checkbox" class = "form-check-input" id = "save-info" >
< label class = "form-check-label" for = "save-info" > احفظ هذه المعلومات في المرة القادمة< / label >
< / div >
< hr class = "my-4" >
2021-04-27 14:38:44 +02:00
< h4 class = "mb-3" > طريقة الدفع< / h4 >
2020-06-09 15:44:20 +02:00
< div class = "my-3" >
< div class = "form-check" >
< input id = "credit" name = "paymentMethod" type = "radio" class = "form-check-input" checked required >
2021-04-27 14:38:44 +02:00
< label class = "form-check-label" for = "credit" > بطاقة ائتمان< / label >
2020-06-09 15:44:20 +02:00
< / div >
< div class = "form-check" >
2021-04-27 14:38:44 +02:00
< input id = "cash" name = "paymentMethod" type = "radio" class = "form-check-input" required >
< label class = "form-check-label" for = "cash" > نقد< / label >
2020-06-09 15:44:20 +02:00
< / div >
< div class = "form-check" >
< input id = "paypal" name = "paymentMethod" type = "radio" class = "form-check-input" required >
< label class = "form-check-label" for = "paypal" > PayPal< / label >
< / div >
< / div >
< div class = "row gy-3" >
< div class = "col-md-6" >
< label for = "cc-name" class = "form-label" > الاسم على البطاقة< / label >
< input type = "text" class = "form-control" id = "cc-name" placeholder = "" required >
< small class = "text-muted" > الاسم الكامل كما هو معروض على البطاقة< / small >
< div class = "invalid-feedback" >
الاسم على البطاقة مطلوب
< / div >
< / div >
< div class = "col-md-6" >
2021-04-27 14:38:44 +02:00
< label for = "cc-number" class = "form-label" > رقم البطاقة< / label >
2020-06-09 15:44:20 +02:00
< input type = "text" class = "form-control" id = "cc-number" placeholder = "" required >
< div class = "invalid-feedback" >
رقم بطاقة الائتمان مطلوب
< / div >
< / div >
< div class = "col-md-3" >
2021-04-27 14:38:44 +02:00
< label for = "cc-expiration" class = "form-label" > تاريخ انتهاء الصلاحية< / label >
2020-06-09 15:44:20 +02:00
< input type = "text" class = "form-control" id = "cc-expiration" placeholder = "" required >
< div class = "invalid-feedback" >
تاريخ انتهاء الصلاحية مطلوب
< / div >
< / div >
< div class = "col-md-3" >
2021-04-27 14:38:44 +02:00
< label for = "cc-cvv" class = "form-label" > الرمز الثلاثي (CVV)< / label >
2020-06-09 15:44:20 +02:00
< input type = "text" class = "form-control" id = "cc-cvv" placeholder = "" required >
< div class = "invalid-feedback" >
رمز الحماية مطلوب
< / div >
< / div >
< / div >
< hr class = "my-4" >
2021-04-27 14:38:44 +02:00
< button class = "w-100 btn btn-primary btn-lg" type = "submit" > الاستمرار بالدفع< / button >
2020-06-09 15:44:20 +02:00
< / form >
< / div >
< / div >
< / main >
< footer class = "my-5 pt-5 text-muted text-center text-small" >
< p class = "mb-1" > © {{< year > }}-2017 اسم الشركة< / p >
< ul class = "list-inline" >
2021-04-27 14:38:44 +02:00
< li class = "list-inline-item" > < a href = "#" > سياسة الخصوصية< / a > < / li >
< li class = "list-inline-item" > < a href = "#" > اتفاقية الاستخدام< / a > < / li >
< li class = "list-inline-item" > < a href = "#" > الدعم الفني< / a > < / li >
2020-06-09 15:44:20 +02:00
< / ul >
< / footer >
< / div >