Skip to Content.
Sympa Menu

en - [sympa-users] custom_attributes not saved from a mobile phone browser

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Gautier Auburtin <address@concealed>
  • To: sympa-users <address@concealed>
  • Subject: [sympa-users] custom_attributes not saved from a mobile phone browser
  • Date: Sun, 24 Sep 2017 13:29:58 +0200 (CEST)

Hi all,

I noticed that custom_attributes are not saved when the subscriber confirms its subscription with a mobile phone browser (and when he edits its preferences with a mobile phone browser)
The custom attributes are saved from any PC browser, but when i use adaptive version in firefox or chrome, they are not saved too.
The custom attributes are text field.

We are using Sympa 6.2.16

The content of the TTL template edit_attributes.tt2 seems good to me.

Do you have any idea ?

Regards,

Gautier

<!-- $Id: edit_attributes.tt2 12241 2015-06-20 03:34:12Z sikeda $ -->
[% IF list_conf.custom_attribute && list_conf.custom_attribute.size > 0 %]
<div class="block">
<i>[%|loc%]Additional information[%END%]</i>
<table class="responsive">
[% FOREACH k IN list_conf.custom_attribute %]
<tr><td  class="text_left"><label for=""custom_attribute.[%" k.id %]">[%|loc(k.name)%]%1:[% END %]<br/>
<i>[% k.comment %]</i>
</label></td><td>
[% SET m = subscriber.custom_attribute.item(k.id).value %]
[% IF k.type == 'string' %]<input type="text" name="custom_attribute.[% k.id %]" id="custom_attribute.[% k.id %]" value="[% subscriber.custom_attribute.item(k.id).value %]" size="40" />
[% ELSIF k.type == 'integer' %]<input type="text" name="custom_attribute.[% k.id %]" id="custom_attribute.[% k.id %]" value="[% subscriber.custom_attribute.item(k.id).value %]" size="10" />
[% ELSIF k.type == 'text' %]<textarea cols="50" rows="5" name="custom_attribute.[% k.id %]" id="custom_attribute.[% k.id %]" value="[% subscriber.custom_attribute.item(k.id).value %]" size="500">[% subscriber.custom_attribute.item(k.id).value %]</textarea>
[% ELSIF k.type == 'enum' %]<select name="custom_attribute.[% k.id %]"><option value=""></option>
[% FOREACH l IN k.enum_values.split(',') %]
<option [% IF l == "$m" %]selected[% END %] value="[% l %]">[% l %]</option><br>
[% END %]
</select>
[% ELSE %]
[% subscriber.custom_attribute.item(k.id).value %]
[% END %] [% IF k.optional == 'required' %]*[% END %]
<!-- (k.id:[% k.id %]) (m:[% m | html %]) (k.type:[% k.type %]) --></td></tr>[% END %]
</table>
<i>[%|loc%]*: Required element[%END%]</i>
</div>

[% END %]
<!-- end edit_attributes.tt2 -->

Gautier Auburtin
Chargé d'urbanisation numérique

Campus Condorcet
20 avenue George Sand - 93210 Saint-Denis La Plaine
01 55 93 93 89

www.campus-condorcet.fr
Abonnez-vous à la Lettre d'information





Archive powered by MHonArc 2.6.19+.

Top of Page