Subversion Repositories SmartDukaan

Rev

Rev 3499 | Rev 5203 | Go to most recent revision | 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>
3405 mandeep.dh 44
            #if($action.getUserId())
45
            #else
3339 mandeep.dh 46
            <tr >
47
                <td ><label>Customer Mobile No:</label></td>
3405 mandeep.dh 48
                <td ><input id="customerMobileNumber" name="customerMobileNumber" type="text"></td>
49
                <td> </td>
50
                <td ><label>Customer Email Id:</label></td>
51
                <td ><input id="customerEmailId" name="customerEmailId" type="text"></td>
3339 mandeep.dh 52
            </tr>
3405 mandeep.dh 53
            #end
3339 mandeep.dh 54
            <tr >
55
                <td ><label>Description:</label></td>
3405 mandeep.dh 56
                <td colspan="4"><textarea id="description" name="description" rows="3" cols="90" class="required"></textarea></td>
3339 mandeep.dh 57
            </tr>
58
            <tr >
3405 mandeep.dh 59
                <td colspan="2"></td>
60
                <td colspan="3"><input type="submit" value="Create" /></td>
3339 mandeep.dh 61
            </tr>
62
        </table>
63
    </form>
64
</div>
65
#end