CLOUDSTACK-3531: Add isrouting checkbox to register template dialog

This commit is contained in:
Brian Federle 2013-07-30 11:09:47 -07:00
parent 6070a8b370
commit 4e3dc2622d
4 changed files with 14 additions and 0 deletions

View File

@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
label.routing=Routing
label.about=About
label.app.name=CloudStack
label.about.app=About CloudStack

View File

@ -25,6 +25,7 @@ under the License.
<% long now = System.currentTimeMillis(); %>
<script language="javascript">
dictionary = {
'label.routing': '<fmt:message key="label.routing" />',
'message.validate.invalid.characters': '<fmt:message key="message.validate.invalid.characters" />',
'label.about': '<fmt:message key="label.about" />',
'label.about.app': '<fmt:message key="label.about.app" />',

View File

@ -797,6 +797,7 @@ cloudStack.preFilter = {
if (isAdmin()) {
args.$form.find('.form-item[rel=isPublic]').css('display', 'inline-block');
args.$form.find('.form-item[rel=isFeatured]').css('display', 'inline-block');
args.$form.find('.form-item[rel=isrouting]').css('display', 'inline-block');
} else {
if (g_userPublicTemplateEnabled == "true") {
args.$form.find('.form-item[rel=isPublic]').css('display', 'inline-block');

View File

@ -384,6 +384,11 @@
docID: 'helpRegisterTemplateFeatured',
isBoolean: true,
isHidden: true
},
isrouting: {
label: 'label.routing',
isBoolean: true,
isHidden: true
}
}
},
@ -414,6 +419,12 @@
});
}
if (args.$form.find('.form-item[rel=isrouting]').is(':visible')) {
$.extend(data, {
isrouting: (args.data.isrouting === 'on')
});
}
//VMware only (starts here)
if (args.$form.find('.form-item[rel=rootDiskControllerType]').css("display") != "none" && args.data.rootDiskControllerType != "") {
$.extend(data, {