Subversion Repositories SmartDukaan

Rev

Rev 5203 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3339 mandeep.dh 1
<script>
2
$(document).ready(function() {
3
    $("#create-activity-form").validate();
4
});
5
</script>
6
#set($messages = $action.getActionErrors())
7
#if($messages && $messages.size() != 0)
8
    #foreach($message in $messages)
9
        $message <br/>
10
    #end
11
#else
12
<div>
13
    <h1>Create new Activity</h1>
14
    <form id="create-activity-form" action="">
15
        <table>
16
            <colgroup>
17
                <col width="200px"/>
3405 mandeep.dh 18
                <col width="250px"/>
19
                <col width="120px"/>
20
                <col width="200px"/>
21
                <col width="300px"/>
3339 mandeep.dh 22
            </colgroup>
23
            <tr >
24
                <td ><label>Type:</label></td>
3405 mandeep.dh 25
                <td colspan="2">
3339 mandeep.dh 26
                <select id="activity-type" name="type" class="width-activity-type">
27
                    #foreach( $type in $action.getActivityTypes() )
28
                        #if($type.name() == "OTHER")
29
                            <option value="$type.name()" selected="selected">$type.name()</option>
3499 mandeep.dh 30
                        #elseif($type.name() == "CALLED_CUSTOMER" || $type.name() == "RECEIVED_CALL_FROM_CUSTOMER")
3339 mandeep.dh 31
                            <option value="$type.name()">$type.name()</option>
32
                        #end
33
                    #end
34
                </select>
35
                </td>
3405 mandeep.dh 36
                #if($action.getUserId())
4204 mandeep.dh 37
                    <td></td>
38
                    <td><input name="userId" value="$action.getUserId()" type="hidden" /> </td>
3405 mandeep.dh 39
                #else
40
                    <td ><label>Customer Name:</label></td>
41
                    <td ><input id="customerName" name="customerName" type="text"></td>
42
                #end
3339 mandeep.dh 43
            </tr>
5203 amar.kumar 44
 
3339 mandeep.dh 45
            <tr >
46
                <td ><label>Customer Mobile No:</label></td>
3405 mandeep.dh 47
                <td ><input id="customerMobileNumber" name="customerMobileNumber" type="text"></td>
48
                <td> </td>
5203 amar.kumar 49
				#if($action.getUserId())
50
				#else
51
					<td ><label>Customer Email Id:</label></td>
52
					<td ><input id="customerEmailId" name="customerEmailId" type="text"></td>
53
				#end
3339 mandeep.dh 54
            </tr>
5203 amar.kumar 55
 
56
			<tr >
57
				<td ><label></label></td>
58
                <td colspan="2">
59
                <select id="common-activity-desc" name="commonDescription" class="width-activity-type">
60
					<option value="" selected="selected"></option>
16208 manish.sha 61
					#if($action.isProfitMandiAgent())
62
                    #foreach( $desc in $action.getPMActivityCommonDescriptionMatrix() )
5203 amar.kumar 63
                            <option value="$desc.name()">$desc.name()</option>
16208 manish.sha 64
					#end
65
					#else
66
					#foreach( $desc in $action.getActivityCommonDescriptionMatrix() )
67
                            <option value="$desc.name()">$desc.name()</option>
68
					#end
69
					#end
5203 amar.kumar 70
                </select>
71
                </td>
72
            </tr>
3339 mandeep.dh 73
            <tr >
74
                <td ><label>Description:</label></td>
3405 mandeep.dh 75
                <td colspan="4"><textarea id="description" name="description" rows="3" cols="90" class="required"></textarea></td>
3339 mandeep.dh 76
            </tr>
77
            <tr >
3405 mandeep.dh 78
                <td colspan="2"></td>
79
                <td colspan="3"><input type="submit" value="Create" /></td>
3339 mandeep.dh 80
            </tr>
81
        </table>
82
    </form>
83
</div>
84
#end