You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2012/07/26 23:05:06 UTC
[21/50] git commit: CS-15391: Add required fields validation when
Edit on the Details tab for Infrastructure/Zones, Infrastructure/Pods.
CS-15391: Add required fields validation when Edit on the Details tab for Infrastructure/Zones, Infrastructure/Pods.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/2b1758b2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/2b1758b2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/2b1758b2
Branch: refs/heads/rbd
Commit: 2b1758b2338e9da31f282c869842525ac604553a
Parents: 63f6308
Author: olgasmola <ol...@gmail.com>
Authored: Fri Jun 29 11:59:19 2012 +0300
Committer: olgasmola <ol...@gmail.com>
Committed: Wed Jul 25 11:48:25 2012 +0300
----------------------------------------------------------------------
ui/scripts/system.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/2b1758b2/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 6d3b765..712c122 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -3494,14 +3494,14 @@
fields: [
{
- name: { label: 'label.zone', isEditable: true }
+ name: { label: 'label.zone', isEditable: true, validation: { required: true } }
},
{
id: { label: 'label.id' },
allocationstate: { label: 'label.allocation.state' },
- dns1: { label: 'label.dns.1', isEditable: true },
+ dns1: { label: 'label.dns.1', isEditable: true, validation: { required: true } },
dns2: { label: 'label.dns.2', isEditable: true },
- internaldns1: { label: 'label.internal.dns.1', isEditable: true },
+ internaldns1: { label: 'label.internal.dns.1', isEditable: true, validation: { required: true } },
internaldns2: { label: 'label.internal.dns.2', isEditable: true },
domainname: { label: 'label.domain' },
networktype: { label: 'label.network.type' },
@@ -5922,14 +5922,14 @@
title: 'label.details',
fields: [
{
- name: { label: 'label.name', isEditable: true }
+ name: { label: 'label.name', isEditable: true, validation: { required: true } }
},
{
id: { label: 'label.id' },
- netmask: { label: 'label.netmask', isEditable: true },
- startip: { label: 'label.start.IP', isEditable: true },
+ netmask: { label: 'label.netmask', isEditable: true, validation: { required: true } },
+ startip: { label: 'label.start.IP', isEditable: true, validation: { required: true } },
endip: { label: 'label.end.IP', isEditable: true },
- gateway: { label: 'label.gateway', isEditable: true },
+ gateway: { label: 'label.gateway', isEditable: true, validation: { required: true } },
allocationstate: {
converter: function(str) {
// For localization