~ubuntu-branches/ubuntu/trusty/horizon/trusty-updates

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/admin/networks/ports/forms.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-03-06 16:53:28 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20140306165328-w2vgmtfriqlhp27m
Tags: 1:2014.1~b3-0ubuntu1
* New upstream milestone release.
* d/static/*: Refreshed assets for new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    admin_state = forms.BooleanField(label=_("Admin State"),
45
45
                                     initial=True, required=False)
46
46
    device_id = forms.CharField(max_length=100, label=_("Device ID"),
47
 
                                help_text='Device ID attached to the port',
 
47
                                help_text=_("Device ID attached to the port"),
48
48
                                required=False)
49
49
    device_owner = forms.CharField(max_length=100, label=_("Device Owner"),
50
 
                                help_text='Device owner attached to the port',
51
 
                                required=False)
 
50
                                   help_text=_("Device owner attached to the "
 
51
                                               "port"),
 
52
                                   required=False)
52
53
 
53
54
    def handle(self, request, data):
54
55
        try:
77
78
class UpdatePort(project_forms.UpdatePort):
78
79
    #tenant_id = forms.CharField(widget=forms.HiddenInput())
79
80
    device_id = forms.CharField(max_length=100, label=_("Device ID"),
80
 
                                help_text='Device ID attached to the port',
 
81
                                help_text=_("Device ID attached to the port"),
81
82
                                required=False)
82
83
    device_owner = forms.CharField(max_length=100, label=_("Device Owner"),
83
 
                                help_text='Device owner attached to the port',
84
 
                                required=False)
 
84
                                   help_text=_("Device owner attached to the "
 
85
                                               "port"),
 
86
                                   required=False)
85
87
    failure_url = 'horizon:admin:networks:detail'
86
88
 
87
89
    def handle(self, request, data):