Merge "Description clean-up for volume actions"

This commit is contained in:
Jenkins 2014-09-09 16:01:22 +00:00 committed by Gerrit Code Review
commit 29f3782352
3 changed files with 4 additions and 6 deletions

View File

@ -17,7 +17,7 @@
<div class="right">
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}
From here you can change the volume type of a volume after its creation.
Change the volume type of a volume after its creation.
This is equivalent to the <tt>cinder retype</tt> command.
{% endblocktrans %}
</p>

View File

@ -17,7 +17,7 @@
<div class="right">
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}
From here you can upload the volume to the Image Service as an image.
Upload the volume to the Image Service as an image.
This is equivalent to the <tt>cinder upload-to-image</tt> command.
{% endblocktrans %}
</p>

View File

@ -520,8 +520,7 @@ class UploadToImageForm(forms.SelfHandlingForm):
name = forms.CharField(label=_('Volume Name'),
widget=forms.TextInput(
attrs={'readonly': 'readonly'}))
image_name = forms.CharField(max_length="255", label=_('Image Name'),
required=True)
image_name = forms.CharField(max_length="255", label=_('Image Name'))
disk_format = forms.ChoiceField(label=_('Disk Format'),
widget=forms.Select(),
required=False)
@ -617,8 +616,7 @@ class RetypeForm(forms.SelfHandlingForm):
name = forms.CharField(label=_('Volume Name'),
widget=forms.TextInput(
attrs={'readonly': 'readonly'}))
volume_type = forms.ChoiceField(label=_('Type'),
required=True)
volume_type = forms.ChoiceField(label=_('Type'))
MIGRATION_POLICY_CHOICES = [('never', _('Never')),
('on-demand', _('On Demand'))]
migration_policy = forms.ChoiceField(label=_('Migration Policy'),