mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3531: Add isrouting checkbox to register template dialog
This commit is contained in:
parent
6070a8b370
commit
4e3dc2622d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" />',
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue