diff --git a/machines/forms.py b/machines/forms.py
index 7ff85695..6112a182 100644
--- a/machines/forms.py
+++ b/machines/forms.py
@@ -210,17 +210,17 @@ class NsForm(ModelForm):
class DelNsForm(Form):
ns = forms.ModelMultipleChoiceField(queryset=Ns.objects.all(), label="Enregistrements NS actuels", widget=forms.CheckboxSelectMultiple)
-class TextForm(ModelForm):
+class TxtForm(ModelForm):
class Meta:
model = Text
fields = '__all__'
def __init__(self, *args, **kwargs):
prefix = kwargs.pop('prefix', self.Meta.model.__name__)
- super(TextForm, self).__init__(*args, prefix=prefix, **kwargs)
+ super(TxtForm, self).__init__(*args, prefix=prefix, **kwargs)
-class DelTextForm(Form):
- text = forms.ModelMultipleChoiceField(queryset=Text.objects.all(), label="Enregistrements Text actuels", widget=forms.CheckboxSelectMultiple)
+class DelTxtForm(Form):
+ txt = forms.ModelMultipleChoiceField(queryset=Text.objects.all(), label="Enregistrements Txt actuels", widget=forms.CheckboxSelectMultiple)
class NasForm(ModelForm):
class Meta:
diff --git a/machines/templates/machines/aff_text.html b/machines/templates/machines/aff_txt.html
similarity index 84%
rename from machines/templates/machines/aff_text.html
rename to machines/templates/machines/aff_txt.html
index f3ada132..fd7c5ee6 100644
--- a/machines/templates/machines/aff_text.html
+++ b/machines/templates/machines/aff_txt.html
@@ -25,21 +25,21 @@ with this program; if not, write to the Free Software Foundation, Inc.,
-
Zone concernée
-
Enregistrement
-
+
Zone concernée
+
Enregistrement
+
- {% for text in text_list %}
+ {% for txt in txt_list %}
-
{{ text.zone }}
-
{{ text.dns_entry }}
+
{{ txt.zone }}
+
{{ txt.dns_entry }}
{% if is_infra %}
- {% include 'buttons/edit.html' with href='machines:edit-text' id=text.id %}
+ {% include 'buttons/edit.html' with href='machines:edit-txt' id=txt.id %}
{% endif %}
- {% include 'buttons/history.html' with href='machines:history' name='text' id=text.id %}
+ {% include 'buttons/history.html' with href='machines:history' name='txt' id=txt.id %}
{% endfor %}
diff --git a/machines/templates/machines/index_extension.html b/machines/templates/machines/index_extension.html
index 20587d85..88eb5411 100644
--- a/machines/templates/machines/index_extension.html
+++ b/machines/templates/machines/index_extension.html
@@ -47,12 +47,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Supprimer un enregistrement NS
{% endif %}
{% include "machines/aff_ns.html" with ns_list=ns_list %}
-