source: branches/2.4/prototype/modules/filters/edit-filter.ejs @ 6754

Revision 6754, 9.0 KB checked in by niltonneto, 12 years ago (diff)

Ticket #0000 - Copiadas as alterações do Trunk. Versão final da 2.4.1.

RevLine 
[5801]1<%
2        var specialFolders = {
3                INBOX: {name:'Caixa de Entrada', classe:'inbox'},
4                Inbox: {name:'Caixa de Entrada', classe:'inbox'},
5                Trash: {name:'Lixeira', classe:'trash'},
6                Drafts:{name:'Rascunhos', classe:'drafts'},
7                Spam:  {name:'Spam', classe:'spam'},
8                Sent:  {name:'Enviados', classe:'sent'}
9        };
10%>
[5539]11<form action="filter:detail" method="POST">
[6348]12        <input type="hidden" class="imapDelimiter" value="<%= data.delimiter %>"></input>
[5539]13        <div class="rule-details-container">
[5801]14                <h3><a href="#"><%= get_lang("Criteria")%></a></h3>
[5539]15                <div>
16                        <fieldset>
[5801]17                                <label class="small"><%= get_lang("Name of the rule")%></label>
[5539]18                                <input type="text" name="name" />
19                        </fieldset>
20                        <fieldset>
[5801]21                                <label class="small"><%= get_lang("Sender")%></label>
[5539]22                                <select name="criteriaOperator[]">
[5930]23                                        <option value="*"><%= get_lang("contains the phrase")%></option>
[5894]24                                        <option value="="><%= get_lang("is equal to")%></option>
[5801]25                                        <option value="!*"><%= get_lang("doesn't contain the phrase")%></option>
26                                        <option value="^"><%= get_lang("starting with")%></option>
27                                        <option value="$"><%= get_lang("ends with")%></option>
[5539]28
29                                </select>
30                                <input type="text" name="criteriaValue[]" />
[5648]31                                <input type="hidden" name="criteriaType[]" value="from"/>
[5539]32                        </fieldset>
33                        <fieldset>
[5801]34                                <label class="small"><%= get_lang("Receiver")%></label>
[5539]35                                <select name="criteriaOperator[]">
[5930]36                                        <option value="*"><%= get_lang("contains the phrase")%></option>
[5894]37                                        <option value="="><%= get_lang("is equal to")%></option>
[5801]38                                        <option value="!*"><%= get_lang("doesn't contain the phrase")%></option>
39                                        <option value="^"><%= get_lang("starting with")%></option>
40                                        <option value="$"><%= get_lang("ends with")%></option>
[5539]41                                </select>
42                                <input type="text" name="criteriaValue[]" />
[5648]43                                <input type="hidden" name="criteriaType[]" value="to"/>
[5539]44                        </fieldset>
45                        <fieldset>
[5801]46                                <label class="small"><%= get_lang("Subject")%></label>
[5539]47                                <select name="criteriaOperator[]">
[5930]48                                        <option value="*"><%= get_lang("contains the phrase")%></option>
[5894]49                                        <option value="="><%= get_lang("is equal to")%></option>
[5801]50                                        <option value="!*"><%= get_lang("doesn't contain the phrase")%></option>
51                                        <option value="^"><%= get_lang("starting with")%></option>
52                                        <option value="$"><%= get_lang("ends with")%></option>
[5539]53
54                                </select>
55                                <input type="text" name="criteriaValue[]" />
56                                <input type="hidden" name="criteriaType[]" value="subject"/>
57                        </fieldset>
58                        <fieldset>
[5801]59                                <label class="small"><%= get_lang("Message")%></label>
[5539]60                                <select name="criteriaOperator[]">
[5930]61                                        <option value="*"><%= get_lang("contains the phrase")%></option>
[5894]62                                        <option value="="><%= get_lang("is equal to")%></option>
[5801]63                                        <option value="!*"><%= get_lang("doesn't contain the phrase")%></option>
64                                        <option value="^"><%= get_lang("starting with")%></option>
65                                        <option value="$"><%= get_lang("ends with")%></option>
[5539]66                                </select>
67                                <input type="text" name="criteriaValue[]" />
68                                <input type="hidden" name="criteriaType[]" value="body"/>
69                        </fieldset>
70                        <fieldset>
[6001]71                                <label class="small"><%= get_lang("Size")%>(KB)</label>
[5539]72                                <select name="criteriaOperator[]">
[6000]73                                        <option value=">"><%= get_lang("is over than")%></option>
74                                        <option value="<"><%= get_lang("is under than")%></option>
[5539]75                                </select>
[6126]76                                <input type="text" class="sizeRule" name="criteriaValue[]" />
[5539]77                                <input type="hidden" name="criteriaType[]" value="size"/>
78                        </fieldset>
79                        <fieldset>
[6348]80                                <input type="hidden" name="criteriaOperator[]" value="^"></input>
81                                <input type="checkbox" name="criteriaValue[]" value="*.*" class="hasAttachment"/>
82                                <input type="hidden" name="criteriaType[]" value="hasAttachment"/>
[6041]83                                <label><%= get_lang("The message has attachment")%></label>
[5539]84                        </fieldset>
85                        <fieldset class="fields-isexact">
86                                <fieldset>
[5591]87                                        <input type="radio" name="isExact" value="and" checked="checked"/>
[5801]88                                        <label><%= get_lang("Attend all the criteria")%></label>
[5539]89                                </fieldset>
90                                <fieldset>
91                                        <input type="radio" name="isExact" value="or"/>
[5801]92                                        <label><%= get_lang("Attend any of the criteria")%></label>
[5539]93                                </fieldset>
94                        </fieldset>
95                        <div class="menu-container">
[5801]96                                <a class="button cancel" href="#"><%= get_lang("Cancel")%></a>
97                                <a class="button forth" href="#"><%= get_lang("Continue")%> &raquo;</a>
[5539]98                        </div>
99                </div>
[5801]100                <h3><a href="#"><%= get_lang("Actions")%></a></h3>
[5539]101                <div>
102                        <ul class="message-tip-container">
[5801]103                                <li class="message-tip"><%= get_lang("Actions to be performed on messages that attend the criteria specified above.")%></li>
104                                <li class="message-tip"><%= get_lang("These actions apply only to new messages arriving.")%></li>
[5539]105                        </ul>
106                        <fieldset class="select-folderlist">
[5591]107                                <input type="radio" name="actionType[]" value="fileinto" checked="checked" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/>
[5801]108                                <label><%= get_lang("Archive in folder")%></label>
[5542]109                                <!--
110                                Aguardando o problema do form do DataLayer ser resolvido.
111                                -->
[5801]112                                <select name="valueFileInto" style="width:150px">
113                                        <%for(var i=0; i < data.folders.length; i++){
114                                                var folder_name = specialFolders[data.folders[i].commonName] ? get_lang(data.folders[i].commonName) : data.folders[i].commonName;
[5542]115                                                if(/^INBOX/.test(data.folders[i].id)){ %>
[5801]116                                                        <option value="<%= data.folders[i].id%>"><%= folder_name%></option>
[5542]117                                        <%
[5801]118                                                }else if(/^user/.test(data.folders[i].id)){
119                                                        var user_name = (data.folders[i].parentFolder.split(data.delimiter)[1] ? (data.folders[i].parentFolder.split(data.delimiter)[1] + data.delimiter) : "");
120                                                %>
121                                                        <option value="<%= data.folders[i].id%>"><%= user_name + folder_name%></option>
122                                                <% }
[5542]123                                        }
124                                        %>
[5539]125                                </select>
[6754]126                                <input type="checkbox" name="actionType[]" value="alertMessage" class="alertMessage"/>
127                                <label><%= get_lang("Alert message filter by sender")%></label>
[5539]128                        </fieldset>
129                        <fieldset>
[5591]130                                <input type="radio" name="actionType[]" value="redirect" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/>
[5801]131                                <label><%= get_lang("Forward to the address")%></label>
[5539]132                                <input type="text" name="addressRedirect" />
133                        </fieldset>
134                        <fieldset>
[5591]135                                <input type="radio" name="actionType[]" value="setflag" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/>
[5801]136                                <label><%= get_lang("Mark as")%></label>
[5542]137                                <!--
138                                Aguardando o problema do form do DataLayer ser resolvido.
139                                -->
[5539]140                                <select name="valueSetFlag">
[5801]141                                        <option value="flagged"><%= get_lang("Flagged")%></option>
142                                        <option value="seen"><%= get_lang("Seen")%></option>
[5539]143                                </select>
144                        </fieldset>
145                        <fieldset>
[5591]146                                <input type="radio" name="actionType[]" value="fileintoTrash" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/>
[5862]147                                <label><%= get_lang("Trash")%></label>
[5539]148                                <input type="hidden" name="actionParameter[]" value="Trash"/>
149                        </fieldset>
150                        <fieldset class="fields-replyto">
[5591]151                                <input type="radio" name="actionType[]" value="reject" onchange="$('.ui-widget-content :checkbox').parent().addClass(' hidden');"/>
[5801]152                                <label><%= get_lang("Reply with a message automatically")%></label>
[5539]153                                <textarea name="messageReject"></textarea>
154                        </fieldset>
155                        <fieldset>
156                                <input type="checkbox" name="actionType[]" value="fileintoInbox"/>
[5801]157                                <label><%= get_lang("Keep a copy of the message at your Inbox")%></label>
[5539]158                                <input type="hidden" name="actionParameter[]" value="INBOX"/>
159                        </fieldset>
160                        <div class="menu-container">   
[5801]161                                <a class="button back"   href="#" >&laquo; <%= get_lang("Previous")%></a>
162                                <a class="button cancel" href="#"><%= get_lang("Cancel")%></a>
[5930]163                                <a class="button forth2" href="#"><%= get_lang("Continue")%> &raquo;</a>
[5801]164                                <a class="button submit" href="#"><%= get_lang("Save")%></a>
[5539]165                        </div>
166                </div>
[5930]167               
168                <h3><a href="#"><%= get_lang("Apply filter")%></a></h3>
169                <div>
170                        <fieldset>
[6387]171                                <div id="filtergrid-container" class="empty-container">
172                                        <span class="message"><%= 'nenhuma mensagem pesquisada' %></span>
173                                </div>
[5930]174                                <fieldset class="fields-search-messages" style="border: none;">
[6041]175                                        <span class="button ui-button-text-only search menu-container"><%= get_lang("Search Inbox")%></span>
[5930]176                                </fieldset>
177                        </fieldset>
178                        <div class="menu-container">   
179                                <a class="button back2"   href="#" >&laquo; <%= get_lang("Previous")%></a>
180                                <a class="button cancel" href="#"><%= get_lang("Cancel")%></a>
181                                <a class="button submit" href="#"><%= get_lang("Save")%></a>
182                        </div>
183                </div>
[5539]184        </div>
185        <div class="vacation-details-container hidden">
186                <fieldset>
[5801]187                        <label><%= get_lang("Type a reply message")%></label>
[5539]188                        <ul class="message-tip-container">
[5801]189                                <li class="message-tip"><%= get_lang("All messages will be answered automatically with the message indicated.")%></li>
[5539]190                        </ul>
191                        <textarea class="filter-textarea" name="vacation"></textarea>
192                </fieldset>
193                        <div class="menu-container">   
[6128]194                              <a class="button back"   href="#" title="<%= get_lang("Cancel and returns the previous screen")%>">&laquo; <%= get_lang("Previous")%></a>
195                              <a class="button submit" href="#" title="<%= get_lang("Save and returns the previous screen")%>"><%= get_lang("Save")%></a>
[5539]196                        </div>
197        </div>
198</form>
Note: See TracBrowser for help on using the repository browser.