Merge remote-tracking branch 'origin/master'
# Conflicts: # .gitignore # src/membership/forms.py # src/membership/templates/membership/membership_form.html # src/membership/templates/membership/register_form.html
This commit is contained in:
BIN
src/content/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
src/content/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
BIN
src/events/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
src/events/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
BIN
src/kasu/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
src/kasu/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
BIN
src/mahjong_ranking/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
src/mahjong_ranking/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
BIN
src/maistar_ranking/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
src/maistar_ranking/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
BIN
src/membership/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
src/membership/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
@@ -1,37 +0,0 @@
|
|||||||
{% extends "base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Edit Userprofile" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block teaser %}<h1>{% trans "Edit Userprofile" %}</h1>{% endblock %}
|
|
||||||
|
|
||||||
{% block maincontent %}
|
|
||||||
<form method="post" action="" enctype="multipart/form-data" class="grid_12 clearfix">
|
|
||||||
<fieldset>
|
|
||||||
<legend>{% trans "Edit Userprofile" %}</legend>
|
|
||||||
{% csrf_token %}
|
|
||||||
{% include 'form.html' %}
|
|
||||||
<p class="buttonbar">
|
|
||||||
<button type="reset"><span class="fa fa-undo"></span> {% trans "Reset" %}</button>
|
|
||||||
<button type="submit"><span class="fa fa-hdd-o"></span> {% trans "Save" %}</button>
|
|
||||||
</p>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
<script type="text/javascript">
|
|
||||||
function togglePersonalData(event) {
|
|
||||||
var membership = document.getElementById("id_membership").checked;
|
|
||||||
var input_elements = ["id_first_name", "id_last_name", "id_birthday"];
|
|
||||||
for (var i = 0; i < input_elements.length; i++) {
|
|
||||||
element_id = input_elements[i]
|
|
||||||
element = document.getElementById(element_id);
|
|
||||||
element.disabled = !membership;
|
|
||||||
if (membership == 0) {element.value = ""};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded',function() {document.querySelector('#id_membership').onchange=togglePersonalData;},false);
|
|
||||||
togglePersonalData();
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block buttonbar %}{% endblock %}
|
|
||||||
BIN
src/utils/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
src/utils/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
Reference in New Issue
Block a user