mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-13 05:06:53 +03:00
Tweaks
This commit is contained in:
parent
92b091ea16
commit
a02707e12f
|
@ -247,7 +247,7 @@ class DocumentingHTMLRenderer(BaseRenderer):
|
||||||
serializers.EmailField: forms.EmailField,
|
serializers.EmailField: forms.EmailField,
|
||||||
serializers.CharField: forms.CharField,
|
serializers.CharField: forms.CharField,
|
||||||
serializers.BooleanField: forms.BooleanField,
|
serializers.BooleanField: forms.BooleanField,
|
||||||
serializers.PrimaryKeyRelatedField: forms.ChoiceField,
|
serializers.PrimaryKeyRelatedField: forms.ModelChoiceField,
|
||||||
serializers.ManyPrimaryKeyRelatedField: forms.ModelMultipleChoiceField
|
serializers.ManyPrimaryKeyRelatedField: forms.ModelMultipleChoiceField
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
<div class="control-group {% if field.errors %}error{% endif %}">
|
<div class="control-group {% if field.errors %}error{% endif %}">
|
||||||
{{ field.label_tag|add_class:"control-label" }}
|
{{ field.label_tag|add_class:"control-label" }}
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{ field|add_class:"input-xxlarge" }}
|
{{ field|add_class:"input-xlarge" }}
|
||||||
<span class="help-inline">{{ field.help_text }}</span>
|
<span class="help-inline">{{ field.help_text }}</span>
|
||||||
{{ field.errors|add_class:"help-block" }}
|
{{ field.errors|add_class:"help-block" }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
<div class="control-group {% if field.errors %}error{% endif %}">
|
<div class="control-group {% if field.errors %}error{% endif %}">
|
||||||
{{ field.label_tag|add_class:"control-label" }}
|
{{ field.label_tag|add_class:"control-label" }}
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{ field|add_class:"input-xxlarge" }}
|
{{ field|add_class:"input-xlarge" }}
|
||||||
<span class='help-inline'>{{ field.help_text }}</span>
|
<span class='help-inline'>{{ field.help_text }}</span>
|
||||||
{{ field.errors|add_class:"help-block" }}
|
{{ field.errors|add_class:"help-block" }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user