812 lines
55 KiB
XML
812 lines
55 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
|
|
<record id="menu_campaign_view" model="website.menu">
|
|
<field name="name">حملات التبرع</field>
|
|
<field name="url">/campaign/view2</field>
|
|
<field name="parent_id" ref="website.main_menu"/>
|
|
<field name="sequence" type="int">22</field>
|
|
</record>
|
|
|
|
|
|
<template id="tmp_campaign_form" name="Partner Form">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="container">
|
|
<div class="col-md-12">
|
|
|
|
<form action="/campaign/form/submit">
|
|
<div dir="rtl" class="form-group">
|
|
<label for="name">مجال التبرع:</label>
|
|
<!-- <select width="200px" name="group_selection" style="padding:3px">-->
|
|
<!-- <t t-foreach="selection_options" t-as="option">-->
|
|
<!-- <t t-row="option"/>-->
|
|
|
|
<!-- </t>-->
|
|
|
|
<!-- </select>-->
|
|
<!-- <input width="50%" type="text" class="form-control" name="مجال التبرع"-->
|
|
<!-- id="مجال التبرع"-->
|
|
<!-- required="true"/>-->
|
|
<select name="مجال التبرع" t-attf-class="form-control">
|
|
<!-- <option value="كفاله يتيم">كفاله يتيم</option> -->
|
|
<t t-foreach="categories" t-as="categ">
|
|
<option t-att-value="categ.id">
|
|
<t t-esc="categ.name"/>
|
|
</option>
|
|
</t>
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
<div dir="rtl" class="form-group">
|
|
<label for="name">اسم الحمله:</label>
|
|
<input width="50%" type="text" class="form-control" name="اسم الحمله"
|
|
id="اسم الحمله" required="true"/>
|
|
</div>
|
|
<script>
|
|
|
|
function toEnglishNumber() {
|
|
var strNum = document.getElementById('المبلغ المستهدف').value;
|
|
var ar = '٠١٢٣٤٥٦٧٨٩'.split('');
|
|
var en = '0123456789'.split('');
|
|
strNum = strNum.replace(/[٠١٢٣٤٥٦٧٨٩]/g, x => en[ar.indexOf(x)]);
|
|
strNum = strNum.replace(/[^\d]/g, '');
|
|
console.log(strNum);
|
|
document.getElementById('المبلغ المستهدف').value = strNum;
|
|
}
|
|
</script>
|
|
<div dir="rtl" class="form-group">
|
|
<label for="name">المبلغ المستهدف:</label>
|
|
<input onkeyup="toEnglishNumber()" width="50%" type="text" class="form-control"
|
|
name="المبلغ المستهدف"
|
|
data-val="true"
|
|
id="المبلغ المستهدف" required="true"
|
|
autocomplete="off" maxlength="9" inputmode="numeric"
|
|
pattern="[0-9]*"
|
|
/>
|
|
</div>
|
|
<!-- <div dir="rtl" class="form-group">-->
|
|
<!-- <label for="name"> تأكيد الحملة:</label>-->
|
|
<!-- <input type="boolean" class="form-control" name="تأكيد الحملة"-->
|
|
<!-- id="تأكيد الحملة" required="true" />-->
|
|
<!-- </div>-->
|
|
<div align="right" style="padding-top:30px">
|
|
<button align="right" width="100px" type="submit" class="btn btn-primary">إنشاء
|
|
</button>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="tmp_campaign_form_success" name="Customer Form Successfully Submitted">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="container">
|
|
<div class="col-md-12">
|
|
<div align="center" class="alert alert-success">
|
|
سيتم مراجعة الطلب وإشعارك خلال 24 ساعة
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
<template id="campaigns3" name="Campaigns3">
|
|
<!-- <link rel="stylesheet" href="/ensan_campaign/static/src/css/stylesheet.css"/>-->
|
|
<t t-call="website.layout">
|
|
<!-- <link rel="stylesheet" href="/ensan_campaign/static/src/css/stylesheet.css"/>-->
|
|
<!-- <t t-set="additional_title">Campaigns</t>-->
|
|
<!-- <t t-set="grid_block_name">Grid</t>-->
|
|
<!-- <t t-set="product_block_name">Campaign</t>-->
|
|
|
|
<!-- Qweb variable defining the class suffix for navbar items.
|
|
Change accordingly to the derired visual result (eg. `primary`, `dark`...)-->
|
|
|
|
<t t-set="navClass" t-valuef="light"/>
|
|
<div width="33%" align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view">
|
|
<div align="right" style="">
|
|
<button style="color:black;background-color:white;" class="btn btn-primary" align="right" width="100%" type="back">بإنتظار
|
|
الإعتماد
|
|
</button>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div width="33%" align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view2">
|
|
<div align="right" style="">
|
|
<button style="color:black;background-color:white;" align="right" width="100%"
|
|
type="back" class="btn btn-primary">حملات نشطة
|
|
</button>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div width="33%" align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view3">
|
|
<div align="right" style="">
|
|
<button class="btn btn-primary"
|
|
align="right" width="100%" type="back">حملات غير نشطة
|
|
</button>
|
|
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<form action="/campaign/form/">
|
|
<!-- <div align="left" style="padding-left:80px;padding-top:40px">-->
|
|
<!-- <button action="/campaign/form" type="create" class="btn btn-primary">أنشئ حملتك الان +</button>-->
|
|
|
|
<!-- </div>-->
|
|
<!-- <div dir="ltr" align="left" style="width:200px;padding-left:70px;padding-top:40px">-->
|
|
<!-- <button style="width:150px;" action="/campaign/form" type="create"-->
|
|
<!-- class="btn btn-primary">-->
|
|
<!-- أنشئ حملتك الان +-->
|
|
<!-- </button>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
<div action="/campaign/form" id="wrap" class="js_sale o_wsale_products_page">
|
|
<div action="/campaign/form" class="oe_structure oe_empty oe_structure_not_nearest"
|
|
id="oe_structure_website_sale_products_1"/>
|
|
<div action="/campaign/form" class="container oe_website_sale pt-2">
|
|
<div action="/campaign/form"
|
|
class="row o_wsale_products_main_row align-items-start flex-nowrap">
|
|
<!-- <button type="create" class="btn btn-primary">Create</button>-->
|
|
<div dir="rtl" align="right" height="auto" width="100%"
|
|
style="0px;padding-top:0px;margin-top:0px;width:100%;height:auto"
|
|
class="shopping-cart">
|
|
|
|
|
|
<!-- Title -->
|
|
<!-- <div style="display:inline-block;float:left;">-->
|
|
<!-- <div style=" font-size: 28px;color: #43484D;font-weight: bold;" dir="ltr" align="left" >-->
|
|
<!-- Campaigns-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<div align="left" style="display:inline-block;float:left;padding-top:30px;">
|
|
<div dir="rtl" style="width:200px;;">
|
|
<button style="width:150px;" action="/campaign/form" type="create"
|
|
class="btn btn-primary">
|
|
أنشئ حملتك الان
|
|
</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<t t-if="campaigns">
|
|
<t t-foreach="campaigns" t-as="campaign">
|
|
|
|
|
|
<table dir="rtl" align="right" class="table" >
|
|
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" rowspan="3" width="5%">
|
|
<img src="/ensan_campaign/static/src/img/kafala.png" width="100" height="100" />
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%" >
|
|
<span width="10%" t-esc="campaign.campaign_name"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">المبلغ المستهدف</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%">المبلغ المتبقي</td>
|
|
</tr>
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.category_id.name"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.donation_amount"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.remaining_amount"/>
|
|
</td>
|
|
</tr>
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<t t-if="campaign.state=='نشطة'">
|
|
<span style="color:green;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
<t t-if="campaign.state=='غير نشطة'">
|
|
<span style="color:red;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
<t t-if="campaign.state=='بإنتظار الإعتماد'">
|
|
<span style="color:brown;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
</td>
|
|
<td style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%"></td>
|
|
<td style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<!-- <table dir="rtl" align="right" width="50%">-->
|
|
<!-- <tr dir="rtl" align="right">-->
|
|
<!-- <td width="33%" dir="rtl" align="right">-->
|
|
<!-- <img style="padding-top:0px;margin-top:0px"-->
|
|
<!-- t-att-src="'/ensan_campaign/static/src/img/kafala.png'"-->
|
|
<!-- width="50%" height="50%"/>-->
|
|
<!-- </td>-->
|
|
<!-- <td style="text-align:right;padding-top:0px; vertical-align: top;" width="33%" dir="rtl" align="right">-->
|
|
<!-- المبلغ المستهدف-->
|
|
|
|
<!-- </td>-->
|
|
<!-- <td style="text-align:right;padding-top:0px; vertical-align: top;" width="33%" dir="rtl" align="right">-->
|
|
<!-- المبلغ المتبقي-->
|
|
<!-- </td>-->
|
|
|
|
<!-- </tr>-->
|
|
<!-- </table>-->
|
|
|
|
|
|
|
|
<!-- ........................................-->
|
|
|
|
<!-- <div dir="rtl" align="right" class="item-custom">-->
|
|
<!-- <div dir="rtl" align="right" style="padding-left:2%"-->
|
|
<!-- class="image-custom">-->
|
|
<!-- <img style="padding-top:0px;margin-top:0px"-->
|
|
<!-- t-att-src="'/ensan_campaign/static/src/img/kafala.png'"-->
|
|
<!-- width="100%" height="100%"/>-->
|
|
<!-- </div>-->
|
|
|
|
<!-- <div dir="rtl" align="right" class="description-custom">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;"-->
|
|
<!-- t-esc="campaign.campaign_name"/>-->
|
|
<!-- <t t-if="campaign.category_id != false">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;"-->
|
|
<!-- t-esc="campaign.category_id.name"/>-->
|
|
<!-- </t>-->
|
|
<!-- <t t-if="campaign.state=='نشطة'">-->
|
|
<!-- <span style="color:green;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- <t t-if="campaign.state=='غير نشطة'">-->
|
|
<!-- <span style="color:red;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- <t t-if="campaign.state=='بإنتظار الإعتماد'">-->
|
|
<!-- <span style="color:brown;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- </div>-->
|
|
<!-- <div dir="rtl" align="right">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;padding-top:0px;padding-right:40px">-->
|
|
<!-- المبلغ المستهدف-->
|
|
<!-- </span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span></span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span align="right"-->
|
|
<!-- style=" font-size: 14px;color: #43484D;font-weight: 400;margin-top:30px;padding-right:45px;text-align:center "-->
|
|
<!-- t-esc="campaign.donation_amount"/>-->
|
|
<!-- <span align="right">ر.س</span>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
<!-- <div dir="rtl" align="right">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;padding-top:0px;padding-right:40px">-->
|
|
<!-- المبلغ المتبقي-->
|
|
<!-- </span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span></span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span align="right"-->
|
|
<!-- style=" font-size: 14px;color: #43484D;font-weight: 400;margin-top:30px;padding-right:45px;text-align:center "-->
|
|
<!-- t-esc="campaign.remaining_amount"/>-->
|
|
<!-- <span align="right">ر.س</span>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
<!-- </div>-->
|
|
</t>
|
|
|
|
</t>
|
|
<t t-else="">
|
|
<div dir="rtl" align="center"
|
|
style="padding-top:25px;padding-bottom:25px;font-weight:bold;font-size;120px">
|
|
<span style="text-align:center">لا توجد حملات غير نشطة</span>
|
|
</div>
|
|
|
|
</t>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<t t-call="website_sale.o_wsale_offcanvas"/>
|
|
</div>
|
|
<div class="oe_structure oe_empty oe_structure_not_nearest"
|
|
id="oe_structure_website_sale_products_2"/>
|
|
</div>
|
|
</form>
|
|
|
|
</t>
|
|
</template>
|
|
|
|
<template id="campaigns2" name="Campaigns2">
|
|
<!-- <link rel="stylesheet" href="/ensan_campaign/static/src/css/stylesheet.css"/>-->
|
|
<t t-call="website.layout">
|
|
<!-- <link rel="stylesheet" href="/ensan_campaign/static/src/css/stylesheet.css"/>-->
|
|
<!-- <t t-set="additional_title">Campaigns</t>-->
|
|
<!-- <t t-set="grid_block_name">Grid</t>-->
|
|
<!-- <t t-set="product_block_name">Campaign</t>-->
|
|
|
|
<!-- Qweb variable defining the class suffix for navbar items.
|
|
Change accordingly to the derired visual result (eg. `primary`, `dark`...)-->
|
|
|
|
<t t-set="navClass" t-valuef="light"/>
|
|
<div align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view">
|
|
<div align="right" style="">
|
|
<button style="color:black;background-color:white;" class="btn btn-primary" align="right" width="100px" type="back">بإنتظار
|
|
الإعتماد
|
|
</button>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view2">
|
|
<div align="right" style="">
|
|
<button align="right" width="100px"
|
|
type="back" class="btn btn-primary">حملات نشطة
|
|
</button>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view3">
|
|
<div align="right" style="">
|
|
<button class="btn btn-primary" style="color:black;background-color:white;"
|
|
align="right" width="100px" type="back">حملات غير نشطة
|
|
</button>
|
|
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<form action="/campaign/form/">
|
|
<!-- <div align="left" style="padding-left:80px;padding-top:40px">-->
|
|
<!-- <button action="/campaign/form" type="create" class="btn btn-primary">أنشئ حملتك الان +</button>-->
|
|
|
|
<!-- </div>-->
|
|
<!-- <div dir="ltr" align="left" style="width:200px;padding-left:70px;padding-top:40px">-->
|
|
<!-- <button style="width:150px;" action="/campaign/form" type="create"-->
|
|
<!-- class="btn btn-primary">-->
|
|
<!-- أنشئ حملتك الان +-->
|
|
<!-- </button>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
<div action="/campaign/form" id="wrap" class="js_sale o_wsale_products_page">
|
|
<div action="/campaign/form" class="oe_structure oe_empty oe_structure_not_nearest"
|
|
id="oe_structure_website_sale_products_1"/>
|
|
<div action="/campaign/form" class="container oe_website_sale pt-2">
|
|
<div action="/campaign/form"
|
|
class="row o_wsale_products_main_row align-items-start flex-nowrap">
|
|
<!-- <button type="create" class="btn btn-primary">Create</button>-->
|
|
<div dir="rtl" align="right" height="auto" width="100%"
|
|
style="0px;padding-top:0px;margin-top:0px;width:100%;height:auto"
|
|
class="shopping-cart">
|
|
|
|
|
|
<!-- Title -->
|
|
<!-- <div style="display:inline-block;float:left;">-->
|
|
<!-- <div style=" font-size: 28px;color: #43484D;font-weight: bold;" dir="ltr" align="left" >-->
|
|
<!-- Campaigns-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<div align="left" style="display:inline-block;float:left;padding-top:30px;">
|
|
<div dir="rtl" style="width:200px;;">
|
|
<button style="width:150px;" action="/campaign/form" type="create"
|
|
class="btn btn-primary">
|
|
أنشئ حملتك الان
|
|
</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<t t-if="campaigns">
|
|
<t t-foreach="campaigns" t-as="campaign">
|
|
<table dir="rtl" align="right" class="table" >
|
|
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" rowspan="3" width="5%">
|
|
<img src="/ensan_campaign/static/src/img/kafala.png" width="100" height="100" />
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%" >
|
|
<span width="10%" t-esc="campaign.campaign_name"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">المبلغ المستهدف</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%">المبلغ المتبقي</td>
|
|
</tr>
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.category_id.name"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.donation_amount"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.remaining_amount"/>
|
|
</td>
|
|
</tr>
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<t t-if="campaign.state=='نشطة'">
|
|
<span style="color:green;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
<t t-if="campaign.state=='غير نشطة'">
|
|
<span style="color:red;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
<t t-if="campaign.state=='بإنتظار الإعتماد'">
|
|
<span style="color:brown;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
</td>
|
|
<td style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%"></td>
|
|
<td style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- <div dir="rtl" align="right" class="item-custom">-->
|
|
<!-- <!– <div class="buttons">–>-->
|
|
<!-- <!– <span class="delete-btn"></span>–>-->
|
|
<!-- <!– <span class="like-btn"></span>–>-->
|
|
<!-- <!– </div>–>-->
|
|
|
|
<!-- <div dir="rtl" align="right" style="padding-left:10px"-->
|
|
<!-- class="image-custom">-->
|
|
<!-- <img style="padding-top:0px;margin-top:0px"-->
|
|
<!-- t-att-src="'/ensan_campaign/static/src/img/kafala.png'"-->
|
|
<!-- width="100%" height="100%"/>-->
|
|
<!-- </div>-->
|
|
|
|
<!-- <div dir="rtl" align="right" class="description-custom">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;"-->
|
|
<!-- t-esc="campaign.campaign_name"/>-->
|
|
<!-- <t t-if="campaign.category_id != false">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;"-->
|
|
<!-- t-esc="campaign.category_id.name"/>-->
|
|
<!-- </t>-->
|
|
|
|
<!-- <t t-if="campaign.state=='نشطة'">-->
|
|
<!-- <span style="color:green;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- <t t-if="campaign.state=='غير نشطة'">-->
|
|
<!-- <span style="color:red;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- <t t-if="campaign.state=='بإنتظار الإعتماد'">-->
|
|
<!-- <span style="color:brown;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- </div>-->
|
|
|
|
<!-- <!– <div class="quantity">–>-->
|
|
<!-- <!– <button class="plus-btn" type="button" name="button">–>-->
|
|
<!-- <!– <img src="ensan_campaign.static/src/img/kafala.png" alt="" />–>-->
|
|
<!-- <!– </button>–>-->
|
|
<!-- <!– <input type="text" name="name" value="1"/>–>-->
|
|
<!-- <!– <button class="minus-btn" type="button" name="button">–>-->
|
|
<!-- <!– <img src="ensan_campaign.static/src/img/kafala.png" alt="" />–>-->
|
|
<!-- <!– </button>–>-->
|
|
<!-- <!– </div>–>-->
|
|
|
|
|
|
<!-- <div dir="rtl" align="right">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;padding-top:0px;padding-right:40px">-->
|
|
<!-- المبلغ المستهدف-->
|
|
<!-- </span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span></span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span align="right"-->
|
|
<!-- style=" font-size: 14px;color: #43484D;font-weight: 400;margin-top:30px;padding-right:45px;text-align:center "-->
|
|
<!-- t-esc="campaign.donation_amount"/>-->
|
|
<!-- <span align="right">ر.س</span>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
<!-- <div dir="rtl" align="right">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;padding-top:0px;padding-right:40px">-->
|
|
<!-- المبلغ المتبقي-->
|
|
<!-- </span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span></span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span align="right"-->
|
|
<!-- style=" font-size: 14px;color: #43484D;font-weight: 400;margin-top:30px;padding-right:45px;text-align:center "-->
|
|
<!-- t-esc="campaign.remaining_amount"/>-->
|
|
<!-- <span align="right">ر.س</span>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
</t>
|
|
|
|
</t>
|
|
<t t-else="">
|
|
<div dir="rtl" align="center"
|
|
style="padding-top:25px;padding-bottom:25px;font-weight:bold;font-size;120px">
|
|
<span style="text-align:center">لا توجد حملات نشطة</span>
|
|
</div>
|
|
|
|
</t>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<t t-call="website_sale.o_wsale_offcanvas"/>
|
|
</div>
|
|
<div class="oe_structure oe_empty oe_structure_not_nearest"
|
|
id="oe_structure_website_sale_products_2"/>
|
|
</div>
|
|
</form>
|
|
|
|
</t>
|
|
</template>
|
|
|
|
<template id="campaigns" name="Campaigns">
|
|
<!-- <link rel="stylesheet" href="/ensan_campaign/static/src/css/stylesheet.css"/>-->
|
|
<t t-call="website.layout">
|
|
<!-- <link rel="stylesheet" href="/ensan_campaign/static/src/css/stylesheet.css"/>-->
|
|
<!-- <t t-set="additional_title">Campaigns</t>-->
|
|
<!-- <t t-set="grid_block_name">Grid</t>-->
|
|
<!-- <t t-set="product_block_name">Campaign</t>-->
|
|
|
|
<!-- Qweb variable defining the class suffix for navbar items.
|
|
Change accordingly to the derired visual result (eg. `primary`, `dark`...)-->
|
|
|
|
<t t-set="navClass" t-valuef="light"/>
|
|
<div align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view">
|
|
<div align="right" style="">
|
|
<button class="btn btn-primary" align="right" width="100px" type="back">بإنتظار
|
|
الإعتماد
|
|
</button>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view2">
|
|
<div align="right" style="">
|
|
<button style="color:black;background-color:white;" align="right" width="100px"
|
|
type="back" class="btn btn-primary">حملات نشطة
|
|
</button>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div align="right" style="float:right;display:inline-block;padding-right:2%;padding-bottom:-100px;">
|
|
<form action="/campaign/view3">
|
|
<div align="right" style="">
|
|
<button class="btn btn-primary" style="color:black;background-color:white;"
|
|
align="right" width="100px" type="back">حملات غير نشطة
|
|
</button>
|
|
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<form action="/campaign/form/">
|
|
<!-- <div align="left" style="padding-left:80px;padding-top:40px">-->
|
|
<!-- <button action="/campaign/form" type="create" class="btn btn-primary">أنشئ حملتك الان +</button>-->
|
|
|
|
<!-- </div>-->
|
|
<!-- <div dir="ltr" align="left" style="width:200px;padding-left:70px;padding-top:40px">-->
|
|
<!-- <button style="width:150px;" action="/campaign/form" type="create"-->
|
|
<!-- class="btn btn-primary">-->
|
|
<!-- أنشئ حملتك الان +-->
|
|
<!-- </button>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
<div action="/campaign/form" id="wrap" class="js_sale o_wsale_products_page">
|
|
<div action="/campaign/form" class="oe_structure oe_empty oe_structure_not_nearest"
|
|
id="oe_structure_website_sale_products_1"/>
|
|
<div action="/campaign/form" class="container oe_website_sale pt-2">
|
|
<div action="/campaign/form"
|
|
class="row o_wsale_products_main_row align-items-start flex-nowrap">
|
|
<!-- <button type="create" class="btn btn-primary">Create</button>-->
|
|
<div dir="rtl" align="right" height="auto" width="100%"
|
|
style="0px;padding-top:0px;margin-top:0px;width:100%;height:auto"
|
|
class="shopping-cart">
|
|
|
|
|
|
<!-- Title -->
|
|
<!-- <div style="display:inline-block;float:left;">-->
|
|
<!-- <div style=" font-size: 28px;color: #43484D;font-weight: bold;" dir="ltr" align="left" >-->
|
|
<!-- Campaigns-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<div align="left" style="display:inline-block;float:left;padding-top:30px;">
|
|
<div dir="rtl" style="width:200px;;">
|
|
<button style="width:150px;" action="/campaign/form" type="create"
|
|
class="btn btn-primary">
|
|
أنشئ حملتك الان
|
|
</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<t t-if="campaigns">
|
|
<t t-foreach="campaigns" t-as="campaign">
|
|
<table dir="rtl" align="right" class="table" >
|
|
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" rowspan="3" width="5%">
|
|
<img src="/ensan_campaign/static/src/img/kafala.png" width="100" height="100" />
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%" >
|
|
<span width="10%" t-esc="campaign.campaign_name"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">المبلغ المستهدف</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%">المبلغ المتبقي</td>
|
|
</tr>
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.category_id.name"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.donation_amount"/>
|
|
</td>
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%">
|
|
<span style=" font-size: 14px;color: #43484D;font-weight: 400;" t-esc="campaign.remaining_amount"/>
|
|
</td>
|
|
</tr>
|
|
<tr style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;">
|
|
<td dir="rtl" align="right" style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%">
|
|
<t t-if="campaign.state=='نشطة'">
|
|
<span style="color:green;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
<t t-if="campaign.state=='غير نشطة'">
|
|
<span style="color:red;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
<t t-if="campaign.state=='بإنتظار الإعتماد'">
|
|
<span style="color:brown;" t-esc="campaign.state"/>
|
|
|
|
</t>
|
|
</td>
|
|
<td style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="5%"></td>
|
|
<td style="vertical-align: top; border-top: 0px solid #000;border-bottom: 0px solid #000;" width="90%"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- <div dir="rtl" align="right" class="item-custom">-->
|
|
<!-- <!– <div class="buttons">–>-->
|
|
<!-- <!– <span class="delete-btn"></span>–>-->
|
|
<!-- <!– <span class="like-btn"></span>–>-->
|
|
<!-- <!– </div>–>-->
|
|
|
|
<!-- <div dir="rtl" align="right" style="padding-left:10px"-->
|
|
<!-- class="image-custom">-->
|
|
<!-- <img style="padding-top:0px;margin-top:0px"-->
|
|
<!-- t-att-src="'/ensan_campaign/static/src/img/kafala.png'"-->
|
|
<!-- width="100%" height="100%"/>-->
|
|
<!-- </div>-->
|
|
|
|
<!-- <div dir="rtl" align="right" class="description-custom">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;"-->
|
|
<!-- t-esc="campaign.campaign_name"/>-->
|
|
<!-- <t t-if="campaign.category_id != false">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;"-->
|
|
<!-- t-esc="campaign.category_id.name"/>-->
|
|
<!-- </t>-->
|
|
<!-- <t t-if="campaign.state=='نشطة'">-->
|
|
<!-- <span style="color:green;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- <t t-if="campaign.state=='غير نشطة'">-->
|
|
<!-- <span style="color:red;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- <t t-if="campaign.state=='بإنتظار الإعتماد'">-->
|
|
<!-- <span style="color:brown;" t-esc="campaign.state"/>-->
|
|
|
|
<!-- </t>-->
|
|
<!-- </div>-->
|
|
|
|
<!-- <!– <div class="quantity">–>-->
|
|
<!-- <!– <button class="plus-btn" type="button" name="button">–>-->
|
|
<!-- <!– <img src="ensan_campaign.static/src/img/kafala.png" alt="" />–>-->
|
|
<!-- <!– </button>–>-->
|
|
<!-- <!– <input type="text" name="name" value="1"/>–>-->
|
|
<!-- <!– <button class="minus-btn" type="button" name="button">–>-->
|
|
<!-- <!– <img src="ensan_campaign.static/src/img/kafala.png" alt="" />–>-->
|
|
<!-- <!– </button>–>-->
|
|
<!-- <!– </div>–>-->
|
|
|
|
|
|
<!-- <div dir="rtl" align="right">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;padding-top:0px;padding-right:40px">-->
|
|
<!-- المبلغ المستهدف-->
|
|
<!-- </span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span></span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span align="right"-->
|
|
<!-- style=" font-size: 14px;color: #43484D;font-weight: 400;margin-top:30px;padding-right:45px;text-align:center "-->
|
|
<!-- t-esc="campaign.donation_amount"/>-->
|
|
<!-- <span align="right">ر.س</span>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
<!-- <div dir="rtl" align="right">-->
|
|
<!-- <span style=" font-size: 14px;color: #43484D;font-weight: 400;padding-top:0px;padding-right:40px">-->
|
|
<!-- المبلغ المتبقي-->
|
|
<!-- </span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span></span>-->
|
|
<!-- <br/>-->
|
|
<!-- <span align="right"-->
|
|
<!-- style=" font-size: 14px;color: #43484D;font-weight: 400;margin-top:30px;padding-right:45px;text-align:center "-->
|
|
<!-- t-esc="campaign.remaining_amount"/>-->
|
|
<!-- <span align="right">ر.س</span>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
</t>
|
|
|
|
</t>
|
|
<t t-else="">
|
|
<div dir="rtl" align="center"
|
|
style="padding-top:25px;padding-bottom:25px;font-weight:bold;font-size;120px">
|
|
<span style="text-align:center;font-weight:bold;font-size;120px">لا يوجد حملات بإنتظار الإعتماد</span>
|
|
</div>
|
|
|
|
</t>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<t t-call="website_sale.o_wsale_offcanvas"/>
|
|
</div>
|
|
<div class="oe_structure oe_empty oe_structure_not_nearest"
|
|
id="oe_structure_website_sale_products_2"/>
|
|
</div>
|
|
</form>
|
|
|
|
</t>
|
|
</template>
|
|
|
|
|
|
|
|
</data>
|
|
</odoo> |