Skip to content

Commit

Permalink
Description clean-up for volume actions
Browse files Browse the repository at this point in the history
Some minor description clean-ups for volume action
'change volume type' and 'upload to image' to remove
'From here you can'.

Also remove unecessary 'required=True' for the field.

Closes-Bug: #1364623

Change-Id: Ia8c1a593e80abf193f26f7cb97bc1ba383383399
  • Loading branch information
Gloria Gu committed Sep 5, 2014
1 parent 326e692 commit 43b4dd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Expand Up @@ -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>
Expand Down
Expand Up @@ -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>
Expand Down
Expand Up @@ -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)
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit 43b4dd8

Please sign in to comment.