... | in extra_fields.naml |
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<macro name="extra_profile_fields" requires="user,servlet">
<n.set_local_user.this_user />
<style type="text/css">
#extra_fields_form{
color: purple;
border-radius: 10px;
}
#extra_fields_form div, #extra_fields_form label{
float: left;
clear: both;
border-radius: 10px;
}
#extra_fields_form div{
margin-left: 10px;
margin-top: 5px;
}
#extra_fields_form .sub_but{
padding: 3px;
margin: 3px 10px;
}
.clear{
clear:both;
}
#extra_button{
cursor: pointer;
font-style:italic;
}
</style>
<script type='text/javascript'>
$(document).ready(function(){
$("#extra_button").click(function () {
$("#extra_fields_form").show("slow", function(){
Nabble.resizeFrames();
});
});
});
</script>
<!-- Extra info -->
<n.if.is_submitted_form>
<then>
<n.this_user.set_property name="sex" value="[n.get_parameter name='sex' /]" />
<n.this_user.set_property name="location" value="[n.get_parameter name='location' /]" />
<n.this_user.set_property name="bday" value="[n.get_parameter name='bday' /]" />
</then>
</n.if.is_submitted_form>
<n.this_user.list_extra_fields/>
</macro>
|
Powered by Nabble | NAML |