You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

75 lines
3.8 KiB

<?xml version="1.0" encoding="utf-8"?>
<!-- Template for form labour on skill form-->
<odoo>
<template id="online_labour_supply_form" name="Labour Supply">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="container">
<div class="col-md-6">
<h1 class="head">
<b>Labour Supply</b>
</h1>
<div class="image"/>
</div>
<div class="col-md-6 body">
<form action="/labour_supply/submit" method="POST">
<input type="hidden" name="csrf_token"
t-att-value="request.csrf_token()"/>
<div>
<h3>Fill the details</h3>
</div>
<t t-if="alert">
<div style="width: 500px;">
<p class="alert alert-danger" role="alert">
Invalid date
</p>
</div>
</t>
<label class="col-form-label col-sm-auto s_website_form_label"
style="width:200px">
<span class="s_website_form_label_content">
Customer
</span>
<span class="s_website_form_mark">*</span>
<select name="customer_id" class="link-style"
required="1">
<t t-foreach="customer" t-as="customer_id">
<option t-att-value="customer_id.partner_id.id">
<t t-esc="customer_id.name"/>
</option>
</t>
</select>
</label>
<br/>
<label class="col-form-label col-sm-auto s_website_form_label"
style="width:200px">
<span class="s_website_form_label_content">
Expected From Date
</span>
<span class="s_website_form_mark">*</span>
<input type="date" class="link-style"
name="from_date" min="today"
required="True"/>
</label>
<br/>
<label class="col-form-label col-sm-auto s_website_form_label"
style="width:200px">
<span class="s_website_form_label_content">
Expected To Date
</span>
<span class="s_website_form_mark">*</span>
<input type="date" class="link-style"
name="to_date" min="today"
required="True"/>
</label>
<br/>
<button class="button" type="submit">Add Skill
Requirement
</button>
</form>
</div>
</div>
</div>
</t>
</template>
</odoo>