summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/softwareProduct/components/network/nicEditorComponents/Network.jsx
blob: 43afdbed3a320191638e8455b048d217dbf1900b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*!
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
import React from 'react';
import i18n from 'nfvo-utils/i18n/i18n.js';
import Input from 'nfvo-components/input/validation/Input.jsx';
import GridSection from 'nfvo-components/grid/GridSection.jsx';
import GridItem from 'nfvo-components/grid/GridItem.jsx';

const Network = ({networkValues}) => {
	return (
		<GridSection title={i18n('Network')}>
				<GridItem>
					<Input
						label={i18n('Internal')}
						disabled
						checked={true}
						data-test-id='nic-internal'
						className='network-radio disabled'
						type='radio'/>
				</GridItem>
				<GridItem>
					<Input
						label={i18n('External')}
						disabled
						checked={false}
						data-test-id='nic-external'
						className='network-radio disabled'
						type='radio'/>
				</GridItem>
				<GridItem colSpan={2}>
					<Input
						label={i18n('Network')}
						data-test-id='nic-network'
						type='select'
						className='input-options-select'
						groupClassName='bootstrap-input-options'
						disabled={true} >
						{networkValues.map(val => <option key={val.enum} value={val.enum}>{val.title}</option>)}
					</Input>
				</GridItem>
		</GridSection>
	);
};

Network.PropTypes = {
	networkValues: React.PropTypes.array
};

export default  Network;
#0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
.upload-modal-body-content {
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 10px;
  .title {
    @extend .body-1-medium;
  }
  .file-name {
    padding-left: 5px;
    @extend .body-1-medium;
  }
}


.software-product-view {
  display: flex;
  height:100%;

  .description {
    @extend .body-1;
    // overflow: hidden;
    padding-right: 20px;
    // text-overflow: ellipsis;
    // display: -webkit-box;
    // -webkit-line-clamp: 2;
    // -webkit-box-orient: vertical;

    .missing-license {
      display: flex;
      align-items: baseline;
      .svg-icon.exclamation-triangle-full {
        fill: $orange;
      }
      .warning-text {
        position: relative;
        top: -2px;
      }
      .svg-icon-wrapper {
        margin-right: 7px;
        margin-left: 3px;
        .svg-icon {
          height: 17px;
          width: 17px;
        }
      }
    }
  }
  .name {
    @extend .body-1-medium;
  }
  .software-product-landing-view-right-side {
    @extend .flex;
    overflow-y: hidden;
    .list-editor-view {
      .list-editor-view-title {
        margin-bottom: 0;
      }
    }
  }
  .software-product-landing-view {
    transition: border .2s;
    padding-bottom: 50px;


    .list-editor-view {
      padding-top: 50px;
      padding-left: 0;
      padding-right: 0;
    }
    .software-product-landing-view-top {
      .details-container {
        @extend .flex-column;

        .single-detail-section {

          @extend  .flex-column;
          &.title-section {
            flex: 0.8;
            @extend .heading-5-medium;
          }
          &.title-text {
            margin-bottom: 24px;
          }
          .description {
              @include multiline-ellipsis();
          }
        }
        .title {
          @extend .body-3;
          color: $gray;
          &.extra-large {
            min-width: 130px;
          }
        }
        .details-section {
          display: flex;
        }
        .multiple-details-section {
          @extend .flex-column;
          justify-content: space-between;
          .detail-col {
            padding-bottom: 10px;
          }
        }
      }
      .row {
        margin: 0;
        display: flex;
        .details-panel {
          flex: 1;
          margin-right: 50px;
          &:last-child {
            margin-right: 0;
          }
        }
        .col-md-6 {
          padding: 0;

          overflow-wrap: break-word;
          &:first-child {
            padding-right: 25px;
          }
          &:last-child {
            padding-left: 25px;
          }
        }
        .title {
          @extend .body-1-medium;
        }
        .software-product-landing-view-heading-title {
          @extend .section-title;
          color: $dark-gray;
          padding-bottom: 20px;
          &:first-child {
            padding-bottom: 20px;
          }
        }
        .software-product-landing-view-top-block {
          cursor: pointer;
          border: 1px solid $light-gray;
          padding: 20px 18px 0 18px;
          height: 215px;
          display: flex;
          justify-content: space-between;
          background-color: $white;
          &:hover {
            @extend .box-hover;
          }
          .col-md-6 {
            @extend .body-1;
          }
          .software-product-landing-view-top-block-col {
            @extend .body-1;
            flex: 0.8;
            display: flex;
            justify-content: space-between;
            flex-direction: column;
            .description {
              overflow: hidden;
              padding-right: 20px;
            }
            .attachment-details {
              padding-bottom: 10px;
            }
            .attachment-details-count {
              color: $light-blue;
            }
          }
          .software-product-landing-view-top-block-col-upl {
            @extend .flex;
            text-align: center;
            flex-direction: column;
            justify-content: center;
            border: 2px dashed $light-gray;
            margin-bottom: 20px;
            @extend .body-1;
            align-items: center;
            .upload-btn {
              padding: 15px 55px;

            }
            .drag-text {
              color: $blue;
              font-weight: bolder;
            }
            .or-text {
              margin-top: 10px;
              margin-bottom: 10px;
            }
          }
        }
      }
    }
  }
}

.vsp-details-page {
  .vsp-general-tab {
    .validation-form-content {
      margin: 0;
    }
    .validation-buttons {
      margin: 43px 0;
      padding: 0 52px;
    }
    .validation-form-content {
      .vsp-general-tab-inline-section {
        display: flex;

        .vsp-general-tab-sub-section:not(:last-of-type) {
          margin-right: 40px;
        }
        .field-section {
          width: 440px;
        }
        .form-group textarea {
          height: 192px;
        }
        select optgroup[label] {
          color: $dark-blue;
        }
        option {
          color: $dark-gray;
        }
        .Select, .input-options {
          width: 440px;
        }
      }
    }
    .validation-buttons {
      position: fixed;
      display: block;
      bottom: 0;
      width: 66%;
    }
    .validation-input-wrapper {
      select.form-control {
        width: 100%;
      }
    }
  }
}