- Timestamp:
- 07/26/12 09:44:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/prototype/modules/calendar/templates/event_list.ejs
r6857 r6880 1 <% 2 3 var decoder = {status: {1: 'Sem ações', 2: 'Em processo', 3: 'Completo', 4: 'Cancelado'}, priority: {1: 'Alta', 2: 'Normal', 3: 'Baixa'}} 4 5 %> 6 1 7 <div title="<%=data.tab_title%>" class="events-list events-list-win active"> 2 8 … … 46 52 var img_type = ""; 47 53 var title_type = ""; 48 if(_event.type == 1){54 if(_event.type == '1'){ 49 55 img_type = "../prototype/modules/calendar/img/event.png"; 50 56 title_type = "Evento"; 51 }if(_event.type == 2){57 }if(_event.type == '2'){ 52 58 img_type = "../prototype/modules/calendar/img/task.png"; 53 59 title_type = "Tarefa"; 54 }if(_event.type == 3){60 }if(_event.type == '3'){ 55 61 img_type = "../prototype/modules/calendar/img/activity_icon.jpg"; 56 62 title_type = "Atividade"; … … 105 111 <%if(_event.allDay){%> 106 112 <p class="input-group date-info"> 107 <label>Duração </label>113 <label>Duração:</label> 108 114 <span class="">Dia inteiro</span> 109 115 </p> … … 123 129 </p> 124 130 <%}%> 125 <%if(_event.type == 1){131 <%if(_event.type == '1'){ 126 132 if(_event.repeat ){%> 127 133 <p class="input-group"> … … 131 137 <%}}%> 132 138 <p class="input-group"> 133 <label>Lembretes </label>139 <label>Lembretes:</label> 134 140 <% if(_event.alarms) { 135 141 var string_alarm = ""; 136 if(_event.type == 1)142 if(_event.type == '1') 137 143 string_alarm = 'do evento'; 138 if(_event.type == 2)144 if(_event.type == '2') 139 145 string_alarm = 'da tarefa'; 140 if(_event.type == 2)146 if(_event.type == '3') 141 147 string_alarm = 'da atividade'; 142 148 %> … … 148 154 <% } %> 149 155 </p> 150 <%if(_event.type == 1){%>151 <p class="input-group"> 152 <label>Local </label>156 <%if(_event.type == '1'){%> 157 <p class="input-group"> 158 <label>Local:</label> 153 159 <span><%= _event.location %></span> 154 160 </p> 155 161 <%}%> 156 162 <p class="input-group"> 157 <label>Descrição 163 <label>Descrição:</label> 158 164 <span class="large" ><%= _event.description %></span> 159 165 </p> 160 <%if(_event.type != 1){%>161 <p class="input-group"> 162 <label>Prioridade 163 <span><%= _event.priority%></span>164 </p> 165 <p class="input-group"> 166 <label> Porcentagem de Conlusão</label>167 <span><%= _event.percent %></span>168 </p> 169 <p class="input-group"> 170 <label>Status 171 <span><%= _event.status%></span>166 <%if(_event.type != '1'){%> 167 <p class="input-group"> 168 <label>Prioridade:</label> 169 <span><%= decoder['priority'][_event.priority] %></span> 170 </p> 171 <p class="input-group"> 172 <label>% Conlusão:</label> 173 <span><%= _event.percentage %>%</span> 174 </p> 175 <p class="input-group"> 176 <label>Status:</label> 177 <span><%= decoder['status'][_event.status] %></span> 172 178 </p> 173 179 <% } %> … … 176 182 <span><%= _event.privacy %></span> 177 183 </p> --> 178 <%if(_event.type == 1){%>179 <p class="input-group"> 180 <label>Organizador </label>184 185 <p class="input-group"> 186 <label>Organizador:</label> 181 187 <span class="large"><%= _event.organizer.user ? _event.organizer.user.name : _event.organizer.name %> (<%= _event.organizer.user ? _event.organizer.user.mail : _event.organizer.mail %>)</span> 182 188 </p> 183 <%} 184 if(_event.type != 3){%>185 <p class="input-group"> 186 <label>Participantes </label>189 190 <%if(_event.type != '3'){%> 191 <p class="input-group"> 192 <label>Participantes:</label> 187 193 <% if(_event.attendee) { %> 188 194 <span class="large" > … … 194 200 </p> 195 201 <%} 196 if(_event.type == 3){%>202 if(_event.type == '3'){%> 197 203 <p class="input-group"> 198 204 <label>Tarefas</label> … … 205 211 <% } %> 206 212 </p> 207 <%} 208 if(_event.type == 1){%>209 <p class="input-group"> 210 <label>Presença </label>213 <%}%> 214 215 <p class="input-group"> 216 <label>Presença:</label> 211 217 <span> 212 213 214 215 216 217 218 219 220 221 222 </p> 223 <%}%> 218 <% var status_name; 219 if (_event.status == 1) 220 status_name = "Eu vou"; 221 else if (_event.status == 2) 222 status_name = "Talvez"; 223 else if (_event.status == 3) 224 status_name = "Eu não vou"; 225 %> 226 <%= status_name %> 227 </span> <!-- Ta hardcodificado isso aqui? --> 228 </p> 229 224 230 </fieldset> 225 231 <div class="menu-container footer-container">
Note: See TracChangeset
for help on using the changeset viewer.