[5927] | 1 | <%var isOwner = parseInt(data.signature.isOwner) ? '' : 'readonly="readonly"'%> |
---|
[5341] | 2 | <form method="POST" action="calendarSignature:configure"> |
---|
| 3 | <input type="hidden" name="signature" value="<%=data.signature.id%>" /> |
---|
| 4 | |
---|
| 5 | <fieldset class="configurations-basic"> |
---|
| 6 | <legend class="">Básico</legend> |
---|
| 7 | |
---|
| 8 | <p class="input-group"> |
---|
| 9 | <label for="name">Nome da agenda:</label> |
---|
[5927] | 10 | <input name="name" value="<%=data.calendar.name%>" <%= isOwner %> type="text" class=""/> |
---|
[5341] | 11 | </p> |
---|
| 12 | |
---|
| 13 | <p class="input-group"> |
---|
| 14 | <label for="description">Descrição:</label> |
---|
[5927] | 15 | <input name="description" value="<%=data.calendar.description%>" <%= isOwner %> type="text" class=""/> |
---|
[5341] | 16 | </p> |
---|
| 17 | |
---|
| 18 | <p class="input-group"> |
---|
| 19 | <label for="duration">Duração padrão de evento:</label> |
---|
[5927] | 20 | <input name="duration" value="<%=data.calendar.defaultDuration%>" <%= isOwner %> type="text" class="number"/> |
---|
[5341] | 21 | </p> |
---|
| 22 | |
---|
| 23 | <p class="input-group"> |
---|
| 24 | <label for="timezone">Fuso horário da agenda:</label> |
---|
[5927] | 25 | <%if(data.signature.isOwner == 0){%> |
---|
| 26 | <input name="timezone" value="<%=data.calendar.timezone%>" size="50" readonly="readonly" type="text" class=""/> |
---|
| 27 | <%}else{%> |
---|
[5341] | 28 | <select name="timezone"> </select> |
---|
[5927] | 29 | <%}%> |
---|
[5341] | 30 | </p> |
---|
| 31 | |
---|
| 32 | <p class="input-group"> |
---|
| 33 | <label for="location">URL:</label> |
---|
[5927] | 34 | <input name="location" value="<%=data.calendar.location%>" <%= isOwner %> type="text" class=""/> |
---|
[5341] | 35 | </p> |
---|
| 36 | |
---|
| 37 | </fieldset> |
---|
| 38 | |
---|
| 39 | <fieldset class="configurations-colors"> |
---|
| 40 | <legend class="">Cores dos eventos desta agenda</legend> |
---|
| 41 | |
---|
| 42 | <div class="calendar-colorpicker"></div> |
---|
| 43 | </fieldset> |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | <fieldset class="configurations-alarms"> |
---|
| 47 | <legend class="">Lembretes</legend> |
---|
| 48 | |
---|
| 49 | <p class="input-group"> |
---|
| 50 | <label for="acceptInvitation">Lembretes</label> |
---|
| 51 | |
---|
| 52 | <label>Por padrão, lembrar-me por:</label> |
---|
| 53 | <ul class="preferences-alarms-list"> |
---|
| 54 | |
---|
| 55 | <%if(data.signature.numberDefaultAlarm <= 0){ %> |
---|
| 56 | |
---|
| 57 | <!-- <li class="input-group"> |
---|
| 58 | <select name="alarmType[]"> |
---|
| 59 | <option value="alert">Alerta</option> |
---|
| 60 | <option value="mail" selected="selected">E-mail</option> |
---|
| 61 | <option value="sms">SMS</option> |
---|
| 62 | </select> |
---|
| 63 | <input type="text" name="alarmTime[]" class="number input-small" value=""/> |
---|
| 64 | <select name="alarmUnit[]"> |
---|
| 65 | <option value="d" selected="selected">Dias</option> |
---|
| 66 | <option value="H">Horas</option> |
---|
| 67 | <option value="m">Minutos</option> |
---|
| 68 | </select> |
---|
| 69 | <input type="hidden" name="alarmId[]" value="" /> |
---|
| 70 | <label>antes de cada evento.</label> |
---|
| 71 | <a class="button remove small">Excluir</a> |
---|
| 72 | </li>--> |
---|
| 73 | <%}else{ |
---|
| 74 | for(var i = 0; i < data.signature.numberDefaultAlarm; i++){%> |
---|
| 75 | <li class="input-group"> |
---|
| 76 | <select name="alarmType[]"> |
---|
| 77 | <option value="alert" <%= data.signature.defaultAlarms[i].type=='alert' ? 'selected="selected"':'' %>>Alerta</option> |
---|
| 78 | <option value="mail" <%= data.signature.defaultAlarms[i].type=='mail' ? 'selected="selected"':'' %>>E-mail</option> |
---|
| 79 | <!-- <option value="sms" <%= data.signature.defaultAlarms[i].type=='sms' ? 'selected="selected"':'' %>>SMS</option>--> |
---|
| 80 | </select> |
---|
| 81 | <input type="text" name="alarmTime[]" class="number input-small" value="<%= data.signature.defaultAlarms[i].time %>"/> |
---|
| 82 | <select name="alarmUnit[]"> |
---|
| 83 | <option value="d" <%= data.signature.defaultAlarms[i].unit=='d' ? 'selected="selected"':'' %>>Dias</option> |
---|
| 84 | <option value="H" <%= data.signature.defaultAlarms[i].unit=='H' ? 'selected="selected"':'' %>>Horas</option> |
---|
| 85 | <option value="m" <%= data.signature.defaultAlarms[i].unit=='m' ? 'selected="selected"':'' %>>Minutos</option> |
---|
| 86 | </select> |
---|
| 87 | <input type="hidden" name="alarmId[]" value="<%=data.signature.defaultAlarms[i].id%>" /> |
---|
| 88 | <label>antes de cada evento.</label> |
---|
| 89 | <a class="button remove small">Excluir</a> |
---|
| 90 | </li> |
---|
| 91 | <%}%> |
---|
| 92 | <%}%> |
---|
| 93 | </ul> |
---|
| 94 | </p> |
---|
| 95 | |
---|
| 96 | <a class="button add button-add-alarms">Adicionar lembrete</a> |
---|
| 97 | </fieldset> |
---|
| 98 | <!-- |
---|
| 99 | <fieldset> |
---|
| 100 | <legend class="">Configurações de celular</legend> |
---|
| 101 | |
---|
| 102 | <label class="fields-left">Status:</label> |
---|
| 103 | <label class="fields-right">Número de telefone validado com sucesso.</label> |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | <p class="input-group"> |
---|
| 108 | <label>País:</label> |
---|
| 109 | <select class="medium"> |
---|
| 110 | <option value="br">Brasil</option> |
---|
| 111 | </select> |
---|
| 112 | </p> |
---|
| 113 | |
---|
| 114 | <p class="input-group"> |
---|
| 115 | <label>Telefone:</label> |
---|
| 116 | <input type="text" name="celphone" class="phone input-medium" value=""/> |
---|
| 117 | </p> |
---|
| 118 | |
---|
| 119 | <p class="input-group"> |
---|
| 120 | <label>Operadora:</label> |
---|
| 121 | <select class="medium" name="operator"> |
---|
| 122 | <option value="br">Tim</option> |
---|
| 123 | <option value="br">Vivo</option> |
---|
| 124 | <option value="br">Claro</option> |
---|
| 125 | <option value="br">Oi</option> |
---|
| 126 | </select> |
---|
| 127 | </p> |
---|
| 128 | |
---|
| 129 | <p class="input-group"> |
---|
| 130 | <label>Código de confirmação:</label> |
---|
| 131 | <input type="text" name="celCodeConfirmation" class="number input-medium" value=""/> |
---|
| 132 | </p> |
---|
| 133 | </fieldset> |
---|
| 134 | --> |
---|
| 135 | |
---|
| 136 | <fieldset class="configurations-notifications hidden"> |
---|
| 137 | <legend class="">Notificações</legend> |
---|
| 138 | <p class="input-group"> |
---|
| 139 | <label for="addMessage">Mensagem para notificação de eventos adicionados:</label> |
---|
| 140 | <textarea rows="5" cols="40" name="msgAdd"><%=data.signature.msgAdd%></textarea> |
---|
| 141 | </p> |
---|
| 142 | |
---|
| 143 | <p class="input-group"> |
---|
| 144 | <label for="cancelMessage">Mensagem para notificação de eventos cancelados:</label> |
---|
| 145 | <textarea rows="5" cols="40" name="msgCancel"><%=data.signature.msgCancel%></textarea> |
---|
| 146 | </p> |
---|
| 147 | |
---|
| 148 | <p class="input-group"> |
---|
| 149 | <label for="updateMessage">Mensagem para notificação de eventos modificados:</label> |
---|
| 150 | <textarea rows="5" cols="40" name="msgUpdate"><%=data.signature.msgUpdate%></textarea> |
---|
| 151 | </p> |
---|
| 152 | |
---|
| 153 | <p class="input-group"> |
---|
| 154 | <label for="answerMessage">Mensagem para notificação de suas respostas:</label> |
---|
| 155 | <textarea rows="5" cols="40" name="msgReply"><%=data.signature.msgReply%></textarea> |
---|
| 156 | </p> |
---|
| 157 | |
---|
| 158 | <p class="input-group"> |
---|
| 159 | <label for="alarmMessage">Mensagem para notificação de seus alarmes:</label> |
---|
| 160 | <textarea rows="5" cols="40" name="msgAlarm"><%=data.signature.msgAlarm%></textarea> |
---|
| 161 | </p> |
---|
| 162 | </fieldset> |
---|
| 163 | |
---|
| 164 | </form> |
---|