summaryrefslogtreecommitdiff
path: root/src/views/SystemDescription/Info/SystemDescription.vue
blob: 558c70eff05291f9fdc6f7853f67e486ccc806ef (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<template>
  <b-container
    :style="{ display: 'flex', 'flex-direction': 'column' }"
    fluid="xxl pt-0 m-0"
  >
    <page-title />
    <!-- System table -->
    <div class="main-container">
      <div class="page-collapse-decorator">
        <b-button
          v-b-toggle.toggle-collapse_1
          variant="link"
          class="collapse-button semi-bold-16px"
        >
          {{ $t('SystemDescription.title.ServerConfig') }}
          <component :is="iconChevronUp" class="icon-expand" />
        </b-button>
        <b-collapse id="toggle-collapse_1" class="nav-item__nav">
          <table-system ref="system" />
          <!-- Notes Administration -->
          <section class="notes-section">
            <div class="semi-bold-12px textarea-description">
              <span>{{ $t('SystemDescription.title.Notes') }}</span>
            </div>
            <div class="textarea-container">
              <div class="buttons-container">
                <button class="notes-button">
                  <img
                    src="@/assets/images/textarea-buttons/button-icon-bold.svg"
                  />
                </button>
                <button class="notes-button">
                  <img
                    src="@/assets/images/textarea-buttons/button-icon-cursive.svg"
                  />
                </button>
                <button class="notes-button">
                  <img
                    src="@/assets/images/textarea-buttons/button-icon-underline.svg"
                  />
                </button>
                <button class="notes-button">
                  <img
                    src="@/assets/images/textarea-buttons/button-icon-crossline.svg"
                  />
                </button>
                <button class="notes-button">
                  <img
                    src="@/assets/images/textarea-buttons/button-icon-link.svg"
                  />
                </button>
                <div class="line"></div>
                <button class="notes-button">
                  <img
                    src="@/assets/images/textarea-buttons/button-icon-list.svg"
                  />
                </button>
                <button class="notes-button">
                  <img
                    src="@/assets/images/textarea-buttons/button-icon-number-list.svg"
                  />
                </button>
              </div>
              <textarea
                id=""
                name="area"
                placeholder="Тут будет текст который ввел администратор и работать в качестве блокнота"
                cols="30"
                rows="10"
                class="notes-textarea"
              ></textarea>
            </div>
          </section>
        </b-collapse>
      </div>
      <!-- Control -->
      <div class="page-collapse-decorator">
        <b-button
          v-b-toggle.toggle-collapse_2
          variant="link"
          class="collapse-button semi-bold-16px"
        >
          {{ $t('SystemDescription.title.Control') }}
          <component :is="iconChevronUp" class="icon-expand" />
        </b-button>
        <b-collapse id="toggle-collapse_2" class="nav-item__nav">
          <control-system />
        </b-collapse>
      </div>
    </div>
  </b-container>
</template>

<script>
import PageTitle from '@/components/Global/PageTitle';
import TableSystem from './InventoryTableSystem';
import ControlSystem from '@/components/Global/SilaComponents/InventoryControlSystem';
import iconChevronUp from '@carbon/icons-vue/es/chevron--up/16';

export default {
  components: {
    PageTitle,
    ControlSystem,
    TableSystem,
  },
  data() {
    return {
      text: '',
      iconChevronUp: iconChevronUp,
    };
  },
};
</script>
<style lang="scss" scoped>
//nav items style
.nav-item,
.nav-link {
  padding: 0;
}

.nav-item {
  list-style-type: none;
}

a {
  color: $text-primary !important;
  &:hover {
    color: $text-primary !important;
  }
}
//section style
.notes-section {
  display: flex;
  flex-direction: column;
}

.textarea-description {
  margin: 5px 0 10px 2rem;
}

.buttons-container {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
}

.notes-button {
  width: 2rem;
  height: 2rem;
  margin: 22px 0 22px 25px;
  background-color: $surface-secondary;
  border: none;
  &:hover {
    border-radius: 8px;
    background-color: $faint-secondary-primary-5-hover;
  }
}

.line {
  display: inline-block;
  width: 1px;
  height: 2rem;
  margin: 22px 0 22px 25px;
  border-left: 1px solid rgba(26, 62, 91, 0.2);
}

.textarea-container {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  margin: 0 1rem 1rem 1rem;
  background-color: $surface-secondary;
}

.notes-textarea {
  resize: none;
  border: none;
  flex: 0 0 auto;
  margin: 0 1rem 1rem 1rem;
  border-radius: 8px;
  background-color: $white;
}
</style>