From 6888339cdb678c017cd23d542f15942a5047330e Mon Sep 17 00:00:00 2001
From: Andrew <saintruler@gmail.com>
Date: Tue, 23 Jul 2019 12:42:26 +0400
Subject: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0?=
 =?UTF-8?q?=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=D0=B0=20LES?=
 =?UTF-8?q?S=20=D0=B4=D0=BB=D1=8F=20=D0=BD=D0=B5=D0=BA=D0=BE=D1=82=D0=BE?=
 =?UTF-8?q?=D1=80=D1=8B=D1=85=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5?=
 =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=B2.=20=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=20?=
 =?UTF-8?q?=D0=BB=D0=B8=D1=88=D0=BD=D0=B8=D0=B9=20=D1=82=D0=B5=D0=B3=20<fo?=
 =?UTF-8?q?rm>=20=D0=B8=D0=B7=20EditFromBox.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 day9/task5_vue/src/components/EditFormBox.vue | 165 +++++++++++++-------------
 1 file changed, 81 insertions(+), 84 deletions(-)

(limited to 'day9/task5_vue/src/components/EditFormBox.vue')

diff --git a/day9/task5_vue/src/components/EditFormBox.vue b/day9/task5_vue/src/components/EditFormBox.vue
index c994656..f18bf69 100644
--- a/day9/task5_vue/src/components/EditFormBox.vue
+++ b/day9/task5_vue/src/components/EditFormBox.vue
@@ -1,107 +1,105 @@
 <template>
     <div class="backgroundTint shown">
         <div class="contentBox shown">
-            <form ref="tableForm" action="/api/actionNotChanged" method="post">
-                <div class="formRow">
-                    <div class="formRow-label">service_id</div>
-
-                    <div class="formRow-input">
-                        <input
-                                v-if="formType === 'update'"
-                                type="text" ref="service_id" class="formInput"
-                                readonly="readonly" v-bind:value="tableRow['service_id']">
-                        <input
-                                v-else-if="formType === 'create'"
-                                type="text" ref="service_id" class="formInput"
-                                v-bind:value="tableRow['service_id']">
-                    </div>
+            <div class="formRow">
+                <div class="formRow-label">service_id</div>
+
+                <div class="formRow-input">
+                    <input
+                            v-if="formType === 'update'"
+                            type="text" ref="service_id" class="formInput"
+                            readonly="readonly" v-bind:value="tableRow['service_id']">
+                    <input
+                            v-else-if="formType === 'create'"
+                            type="text" ref="service_id" class="formInput"
+                            v-bind:value="tableRow['service_id']">
                 </div>
+            </div>
 
-                <div class="formRow">
-                    <div class="formRow-label"> servtype </div>
-                    <div class="formRow-input">
-                        <input type="text" ref="servtype" class="formInput" v-bind:value="tableRow['servtype']">
-                    </div>
+            <div class="formRow">
+                <div class="formRow-label"> servtype </div>
+                <div class="formRow-input">
+                    <input type="text" ref="servtype" class="formInput" v-bind:value="tableRow['servtype']">
                 </div>
+            </div>
 
-                <div class="formRow">
-                    <div class="formRow-label"> subtype </div>
-                    <div class="formRow-input">
-                        <input type="text" ref="subtype" class="formInput" v-bind:value="tableRow['subtype']">
-                    </div>
+            <div class="formRow">
+                <div class="formRow-label"> subtype </div>
+                <div class="formRow-input">
+                    <input type="text" ref="subtype" class="formInput" v-bind:value="tableRow['subtype']">
                 </div>
+            </div>
 
-                <div class="formRow">
-                    <div class="formRow-label"> user_id </div>
-                    <div class="formRow-input">
-                        <input type="text" ref="user_id" class="formInput" v-bind:value="tableRow['user_id']">
-                    </div>
+            <div class="formRow">
+                <div class="formRow-label"> user_id </div>
+                <div class="formRow-input">
+                    <input type="text" ref="user_id" class="formInput" v-bind:value="tableRow['user_id']">
                 </div>
+            </div>
 
-                <div class="formRow">
-                    <div class="formRow-label"> referrer_user_id </div>
-                    <div class="formRow-input">
-                        <input type="text" ref="referrer_user_id" class="formInput" v-bind:value="tableRow['referrer_user_id']">
-                    </div>
+            <div class="formRow">
+                <div class="formRow-label"> referrer_user_id </div>
+                <div class="formRow-input">
+                    <input type="text" ref="referrer_user_id" class="formInput" v-bind:value="tableRow['referrer_user_id']">
                 </div>
-
-                <div class="formRow">
-                    <div class="formRow-label"> state </div>
-                    <div class="formRow-input">
-                        <select ref="state" v-bind:value="tableRow['state']">
-                            <option>N</option>
-                            <option>A</option>
-                            <option>S</option>
-                            <option>D</option>
-                            <option>O</option>
-                        </select>
-                    </div>
+            </div>
+
+            <div class="formRow">
+                <div class="formRow-label"> state </div>
+                <div class="formRow-input">
+                    <select ref="state" v-bind:value="tableRow['state']">
+                        <option>N</option>
+                        <option>A</option>
+                        <option>S</option>
+                        <option>D</option>
+                        <option>O</option>
+                    </select>
                 </div>
+            </div>
 
-                <div class="formRow">
-                    <div class="formRow-label"> creation_date </div>
-                    <div class="formRow-input">
-                        <input type="date" ref="creation_date" class="formInput" v-bind:value="tableRow['creation_date']">
-                    </div>
+            <div class="formRow">
+                <div class="formRow-label"> creation_date </div>
+                <div class="formRow-input">
+                    <input type="date" ref="creation_date" class="formInput" v-bind:value="tableRow['creation_date']">
                 </div>
-                <div class="formRow">
-                    <div class="formRow-label"> creation_time </div>
-                    <div class="formRow-input">
-                        <input type="time" ref="creation_time" class="formInput" v-bind:value="tableRow['creation_time']">
-                    </div>
+            </div>
+            <div class="formRow">
+                <div class="formRow-label"> creation_time </div>
+                <div class="formRow-input">
+                    <input type="time" ref="creation_time" class="formInput" v-bind:value="tableRow['creation_time']">
                 </div>
-
-                <div class="formRow">
-                    <div class="formRow-label"> creation_request_sent_date </div>
-                    <div class="formRow-input" style="display: flex; flex-direction: row">
-                        <input
-                                type="date" ref="creation_request_sent_date"
-                                class="formInput" style="width: 50%;"
-                                v-bind:value="tableRow['creation_request_sent_date'].split(' ')[0]">
-                        <input
-                                type="time" ref="creation_request_sent_time"
-                                class="formInput" style="width: 50%;"
-                                v-bind:value="tableRow['creation_request_sent_date'].split(' ')[1]">
-                    </div>
-                    <div class="formRow-error" v-if="validationResponse.creation_request_sent_date !== null">
-                        {{ validationResponse.creation_request_sent_date }}
-                    </div>
+            </div>
+
+            <div class="formRow">
+                <div class="formRow-label"> creation_request_sent_date </div>
+                <div class="formRow-input" style="display: flex; flex-direction: row">
+                    <input
+                            type="date" ref="creation_request_sent_date"
+                            class="formInput" style="width: 50%;"
+                            v-bind:value="tableRow['creation_request_sent_date'].split(' ')[0]">
+                    <input
+                            type="time" ref="creation_request_sent_time"
+                            class="formInput" style="width: 50%;"
+                            v-bind:value="tableRow['creation_request_sent_date'].split(' ')[1]">
                 </div>
+                <div class="formRow-error" v-if="validationResponse.creation_request_sent_date !== null">
+                    {{ validationResponse.creation_request_sent_date }}
+                </div>
+            </div>
 
-                <div class="formRow">
-                    <div class="formRow-label"> notified_about_expiration </div>
-                    <div class="formRow-input">
-                        <input type="text" ref="notified_about_expiration" class="formInput" v-bind:value="tableRow['notified_about_expiration']">
-                    </div>
+            <div class="formRow">
+                <div class="formRow-label"> notified_about_expiration </div>
+                <div class="formRow-input">
+                    <input type="text" ref="notified_about_expiration" class="formInput" v-bind:value="tableRow['notified_about_expiration']">
                 </div>
+            </div>
 
-                <div class="formButtons">
-                    <button type="button" @click="cancelCallback">Cancel</button>
+            <div class="formButtons">
+                <button type="button" @click="cancelCallback">Cancel</button>
 
-                    <button type="button" v-if="formType === 'update'" @click="submitForm">Update</button>
-                    <button type="button" v-else-if="formType === 'create'" @click="submitForm">Create</button>
-                </div>
-            </form>
+                <button type="button" v-if="formType === 'update'" @click="submitForm">Update</button>
+                <button type="button" v-else-if="formType === 'create'" @click="submitForm">Create</button>
+            </div>
         </div>
     </div>
 </template>
@@ -259,7 +257,6 @@
     .contentBox {
         padding: 20px;
         width: 500px;
-        height: 695px;
         background-color: #f0f0f0;
         border-radius: 10px;
         box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
-- 
cgit v1.2.3

