6282f652b2
Modification of template to allow multilanguage support. Alsa fixing columns overflow. BibLibre bug #5939 Tests: It works. Messages strings can now be extracted and placed in .po file for translation. Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
131 lines
5.9 KiB
HTML
131 lines
5.9 KiB
HTML
<!-- snippet for form to set borrower and patron category messaging preferences -->
|
|
<script type="text/javascript">//<![CDATA[
|
|
$(document).ready(function(){
|
|
$(".none").click(function(){
|
|
if($(this).attr("checked")){
|
|
var rowid = $(this).attr("id");
|
|
newid = Number(rowid.replace("none",""))
|
|
$("#sms"+newid).attr("checked","");
|
|
$("#email"+newid).attr("checked","");
|
|
$("#digest"+newid).attr("checked","");
|
|
$("#rss"+newid).attr("checked","");
|
|
}
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
|
|
<input type="hidden" name="modify" value="yes" />
|
|
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
|
|
<table>
|
|
<tr><th></th>
|
|
<th>Days in advance</th>
|
|
<!-- TMPL_IF NAME="SMSSendDriver" --><th>SMS</th><!-- /TMPL_IF -->
|
|
<th>Email</th><th>Digests only?</th>
|
|
<!-- <th>RSS</th> -->
|
|
<!-- TMPL_UNLESS NAME="messaging_form_inactive" --><th>Do not notify</th><!-- /TMPL_UNLESS -->
|
|
</tr>
|
|
<!-- TMPL_LOOP name="messaging_preferences" -->
|
|
<tr>
|
|
<td><!-- TMPL_IF NAME="Item DUE" -->Item DUE
|
|
<!-- TMPL_ELSIF NAME="Advance Notice" -->Advance Notice
|
|
<!-- TMPL_ELSIF NAME="Upcoming Events" -->Upcoming Events
|
|
<!-- TMPL_ELSIF NAME="Hold Filled" -->Hold Filled
|
|
<!-- TMPL_ELSIF NAME="Item Check-in" -->Item Check-in
|
|
<!-- TMPL_ELSIF NAME="Item Checkout" -->Item Checkout
|
|
<!-- TMPL_ELSE -->Unknown <!-- /TMPL_IF --></td>
|
|
<!-- TMPL_IF NAME="takes_days" -->
|
|
<td>
|
|
<!-- TMPL_IF NAME="messaging_form_inactive" -->
|
|
<select name="<!-- TMPL_VAR NAME="message_attribute_id" -->-DAYS" disabled="disabled">
|
|
<!-- TMPL_ELSE -->
|
|
<select name="<!-- TMPL_VAR NAME="message_attribute_id" -->-DAYS">
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_LOOP name="select_days" -->
|
|
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="day" -->" selected="selected"><!-- TMPL_VAR NAME="day" --></option><!-- TMPL_ELSE -->
|
|
<option value="<!-- TMPL_VAR NAME="day" -->"><!-- TMPL_VAR NAME="day" --></option>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</td>
|
|
<!-- TMPL_ELSE -->
|
|
<td>-</td>
|
|
<!-- /TMPL_IF -->
|
|
<!-- <!-- TMPL_IF NAME="transport_sms" -->
|
|
<!-- TMPL_IF NAME="SMSSendDriver" --><td>
|
|
<!-- TMPL_IF NAME="messaging_form_inactive" -->
|
|
<input type="checkbox"
|
|
id="sms<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
name="<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
value="sms" <!-- TMPL_VAR NAME="transport_sms" --> disabled="disabled" />
|
|
<!-- TMPL_ELSE -->
|
|
<input type="checkbox"
|
|
id="sms<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
name="<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
value="sms" <!-- TMPL_VAR NAME="transport_sms" --> onclick = "$('#none'+'<!-- TMPL_VAR NAME="message_attribute_id" -->').attr('checked','');" />
|
|
<!-- /TMPL_IF -->
|
|
</td><!-- /TMPL_IF -->
|
|
<!-- TMPL_ELSE -->
|
|
<td>-</td>
|
|
<!-- /TMPL_IF --> -->
|
|
|
|
<!-- TMPL_IF NAME="transport_email" -->
|
|
<td>
|
|
<!-- TMPL_IF NAME="messaging_form_inactive" -->
|
|
<input type="checkbox"
|
|
id="email<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
name="<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
value="email" <!-- TMPL_VAR NAME="transport_email" --> disabled="disabled" />
|
|
<!-- TMPL_ELSE -->
|
|
<input type="checkbox"
|
|
id="email<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
name="<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
value="email" <!-- TMPL_VAR NAME="transport_email" --> onclick = "$('#none'+'<!-- TMPL_VAR NAME="message_attribute_id" -->').attr('checked','');" />
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<!-- TMPL_ELSE -->
|
|
<td>-</td>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="has_digest" -->
|
|
<td>
|
|
<!-- TMPL_IF NAME="messaging_form_inactive" -->
|
|
<input type="checkbox"
|
|
id="digest<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
value="<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
name="digest" <!-- TMPL_VAR NAME="digest" --> disabled="disabled" />
|
|
<!-- TMPL_ELSE -->
|
|
<input type="checkbox"
|
|
id="digest<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
value="<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
name="digest" <!-- TMPL_VAR NAME="digest" --> onclick = "$('#none'+'<!-- TMPL_VAR NAME="message_attribute_id" -->').attr('checked','');" />
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<!-- TMPL_ELSE -->
|
|
<td>-</td>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- <!-- TMPL_IF NAME="transport_rss" -->
|
|
<td>
|
|
<!-- TMPL_IF NAME="messaging_form_inactive" -->
|
|
<input type="checkbox"
|
|
id="rss<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
name="<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
value="rss" <!-- TMPL_VAR NAME="transport_rss" --> disabled="disabled" />
|
|
<!-- TMPL_ELSE -->
|
|
<input type="checkbox"
|
|
id="rss<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
name="<!-- TMPL_VAR NAME="message_attribute_id" -->"
|
|
value="rss" <!-- TMPL_VAR NAME="transport_rss" --> onclick = "$('#none'+'<!-- TMPL_VAR NAME="message_attribute_id" -->').attr('checked','');" />
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<!-- TMPL_ELSE -->
|
|
<td>-</td>
|
|
<!-- /TMPL_IF --> -->
|
|
|
|
<!-- TMPL_UNLESS NAME="messaging_form_inactive" -->
|
|
<td><input type="checkbox" class="none" id="none<!-- TMPL_VAR NAME="message_attribute_id" -->" /></td>
|
|
<!-- /TMPL_UNLESS -->
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|