Commit 3a2fb802 authored by Grigor Aghabalyan's avatar Grigor Aghabalyan
Browse files

Feat: add SingleView form

parent ac56c2a8
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
C5356A3D242FC9F900EFD310 /* Language.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5356A3C242FC9F900EFD310 /* Language.swift */; }; C5356A3D242FC9F900EFD310 /* Language.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5356A3C242FC9F900EFD310 /* Language.swift */; };
C5356A41242FCB4700EFD310 /* LanguageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5356A3F242FCB4600EFD310 /* LanguageCell.swift */; }; C5356A41242FCB4700EFD310 /* LanguageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5356A3F242FCB4600EFD310 /* LanguageCell.swift */; };
C5356A42242FCB4700EFD310 /* LanguageCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = C5356A40242FCB4600EFD310 /* LanguageCell.xib */; }; C5356A42242FCB4700EFD310 /* LanguageCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = C5356A40242FCB4600EFD310 /* LanguageCell.xib */; };
C54206282430AC53001D858F /* SingleFormViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C54206262430AC53001D858F /* SingleFormViewController.swift */; };
C54206292430AC53001D858F /* SingleFormViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = C54206272430AC53001D858F /* SingleFormViewController.xib */; };
C5D2A725242B077100825031 /* FormsService.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A724242B077100825031 /* FormsService.swift */; }; C5D2A725242B077100825031 /* FormsService.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A724242B077100825031 /* FormsService.swift */; };
C5D2A727242B0A2300825031 /* FormsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A726242B0A2300825031 /* FormsResponse.swift */; }; C5D2A727242B0A2300825031 /* FormsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A726242B0A2300825031 /* FormsResponse.swift */; };
C5D2A729242B12F200825031 /* FormResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A728242B12F200825031 /* FormResponse.swift */; }; C5D2A729242B12F200825031 /* FormResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A728242B12F200825031 /* FormResponse.swift */; };
...@@ -77,6 +79,8 @@ ...@@ -77,6 +79,8 @@
C5356A3C242FC9F900EFD310 /* Language.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Language.swift; sourceTree = "<group>"; }; C5356A3C242FC9F900EFD310 /* Language.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Language.swift; sourceTree = "<group>"; };
C5356A3F242FCB4600EFD310 /* LanguageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LanguageCell.swift; sourceTree = "<group>"; }; C5356A3F242FCB4600EFD310 /* LanguageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LanguageCell.swift; sourceTree = "<group>"; };
C5356A40242FCB4600EFD310 /* LanguageCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LanguageCell.xib; sourceTree = "<group>"; }; C5356A40242FCB4600EFD310 /* LanguageCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LanguageCell.xib; sourceTree = "<group>"; };
C54206262430AC53001D858F /* SingleFormViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SingleFormViewController.swift; sourceTree = "<group>"; };
C54206272430AC53001D858F /* SingleFormViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SingleFormViewController.xib; sourceTree = "<group>"; };
C5D2A724242B077100825031 /* FormsService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormsService.swift; sourceTree = "<group>"; }; C5D2A724242B077100825031 /* FormsService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormsService.swift; sourceTree = "<group>"; };
C5D2A726242B0A2300825031 /* FormsResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormsResponse.swift; sourceTree = "<group>"; }; C5D2A726242B0A2300825031 /* FormsResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormsResponse.swift; sourceTree = "<group>"; };
C5D2A728242B12F200825031 /* FormResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormResponse.swift; sourceTree = "<group>"; }; C5D2A728242B12F200825031 /* FormResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormResponse.swift; sourceTree = "<group>"; };
...@@ -196,6 +200,15 @@ ...@@ -196,6 +200,15 @@
path = Cells; path = Cells;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
C54206252430AC28001D858F /* Single */ = {
isa = PBXGroup;
children = (
C54206262430AC53001D858F /* SingleFormViewController.swift */,
C54206272430AC53001D858F /* SingleFormViewController.xib */,
);
path = Single;
sourceTree = "<group>";
};
C5D69141242AA091004268C3 = { C5D69141242AA091004268C3 = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -328,6 +341,7 @@ ...@@ -328,6 +341,7 @@
C5D69187242AAC05004268C3 /* Form */ = { C5D69187242AAC05004268C3 /* Form */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
C54206252430AC28001D858F /* Single */,
C5D69196242AAD2C004268C3 /* Create */, C5D69196242AAD2C004268C3 /* Create */,
C5D6918C242AAC73004268C3 /* FormList */, C5D6918C242AAC73004268C3 /* FormList */,
); );
...@@ -490,6 +504,7 @@ ...@@ -490,6 +504,7 @@
C5D691D1242AFEB0004268C3 /* DatePickerViewController.xib in Resources */, C5D691D1242AFEB0004268C3 /* DatePickerViewController.xib in Resources */,
C5D69190242AAC86004268C3 /* FormListViewController.xib in Resources */, C5D69190242AAC86004268C3 /* FormListViewController.xib in Resources */,
C5356A35242FBAF800EFD310 /* SettingsViewController.xib in Resources */, C5356A35242FBAF800EFD310 /* SettingsViewController.xib in Resources */,
C54206292430AC53001D858F /* SingleFormViewController.xib in Resources */,
C5D691B0242AC607004268C3 /* WelcomeViewController.xib in Resources */, C5D691B0242AC607004268C3 /* WelcomeViewController.xib in Resources */,
C5D69157242AA094004268C3 /* Assets.xcassets in Resources */, C5D69157242AA094004268C3 /* Assets.xcassets in Resources */,
C5D69155242AA091004268C3 /* Main.storyboard in Resources */, C5D69155242AA091004268C3 /* Main.storyboard in Resources */,
...@@ -552,6 +567,7 @@ ...@@ -552,6 +567,7 @@
C5D69179242AA58F004268C3 /* BaseResponse.swift in Sources */, C5D69179242AA58F004268C3 /* BaseResponse.swift in Sources */,
C5D691C0242AE5E2004268C3 /* FormCreateResponse.swift in Sources */, C5D691C0242AE5E2004268C3 /* FormCreateResponse.swift in Sources */,
C5D69199242AAD3F004268C3 /* FormCreateViewController.swift in Sources */, C5D69199242AAD3F004268C3 /* FormCreateViewController.swift in Sources */,
C54206282430AC53001D858F /* SingleFormViewController.swift in Sources */,
C5D6917F242AA5D9004268C3 /* CheckBaseHelper.swift in Sources */, C5D6917F242AA5D9004268C3 /* CheckBaseHelper.swift in Sources */,
C5356A34242FBAF800EFD310 /* SettingsViewController.swift in Sources */, C5356A34242FBAF800EFD310 /* SettingsViewController.swift in Sources */,
C5356A39242FC1F900EFD310 /* LanguageViewController.swift in Sources */, C5356A39242FC1F900EFD310 /* LanguageViewController.swift in Sources */,
...@@ -742,7 +758,7 @@ ...@@ -742,7 +758,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 10; CURRENT_PROJECT_VERSION = 11;
DEVELOPMENT_TEAM = JY829SQQAV; DEVELOPMENT_TEAM = JY829SQQAV;
INFOPLIST_FILE = App16/Info.plist; INFOPLIST_FILE = App16/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0; IPHONEOS_DEPLOYMENT_TARGET = 12.0;
...@@ -764,7 +780,7 @@ ...@@ -764,7 +780,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 10; CURRENT_PROJECT_VERSION = 11;
DEVELOPMENT_TEAM = JY829SQQAV; DEVELOPMENT_TEAM = JY829SQQAV;
INFOPLIST_FILE = App16/Info.plist; INFOPLIST_FILE = App16/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0; IPHONEOS_DEPLOYMENT_TARGET = 12.0;
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
Copyright © 2020 X-TECH. All rights reserved. Copyright © 2020 X-TECH. All rights reserved.
*/ */
"OK" = "Ok";
"FIRST_NAME" = "Fist name"; "FIRST_NAME" = "Fist name";
"LAST_NAME" = "Last name"; "LAST_NAME" = "Last name";
"MIDDLE_NAME" = "Middle name"; "MIDDLE_NAME" = "Middle name";
...@@ -30,3 +32,5 @@ ...@@ -30,3 +32,5 @@
"LANGUAGE" = "Language"; "LANGUAGE" = "Language";
"LANGUAGES" = "Languages"; "LANGUAGES" = "Languages";
"CANCEL" = "Cancel"; "CANCEL" = "Cancel";
"Please fill in all fields" = "Please fill in all fields";
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
Copyright © 2020 X-TECH. All rights reserved. Copyright © 2020 X-TECH. All rights reserved.
*/ */
"OK" = "Լավ";
"FIRST_NAME" = "Անուն"; "FIRST_NAME" = "Անուն";
"LAST_NAME" = "Ազգանուն"; "LAST_NAME" = "Ազգանուն";
"MIDDLE_NAME" = "հայրանուն"; "MIDDLE_NAME" = "հայրանուն";
...@@ -30,3 +32,5 @@ ...@@ -30,3 +32,5 @@
"LANGUAGE" = "Լեզու"; "LANGUAGE" = "Լեզու";
"LANGUAGES" = "Լեզուներ"; "LANGUAGES" = "Լեզուներ";
"CANCEL" = "Չեղարկել"; "CANCEL" = "Չեղարկել";
"Please fill in all fields" = "Խնդում ենք լրացրեք բոլոր դաշտերը";
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
Copyright © 2020 X-TECH. All rights reserved. Copyright © 2020 X-TECH. All rights reserved.
*/ */
"OK" = "Ok";
"FIRST_NAME" = "Имя"; "FIRST_NAME" = "Имя";
"LAST_NAME" = "Фамилия"; "LAST_NAME" = "Фамилия";
"MIDDLE_NAME" = "Отчество"; "MIDDLE_NAME" = "Отчество";
...@@ -30,3 +32,5 @@ ...@@ -30,3 +32,5 @@
"LANGUAGE" = "Язык"; "LANGUAGE" = "Язык";
"LANGUAGES" = "Языки"; "LANGUAGES" = "Языки";
"CANCEL" = "Отменить"; "CANCEL" = "Отменить";
"Please fill in all fields" = "Пожалуйста, заполните все поля";
...@@ -50,34 +50,17 @@ class FormCreateViewController: UIViewController { ...@@ -50,34 +50,17 @@ class FormCreateViewController: UIViewController {
super.viewDidLoad() super.viewDidLoad()
setUI() setUI()
}
switch formViewType {
case .creta: private func setUI() {
createButton.isHidden = false
self.title = "CREATE_FORM".localized()
curentDate.text = date
case .viewFromList:
self.title = "FORM".localized()
createButton.isHidden = true
setData(response: data)
case .viewFromQr:
self.title = "FORM".localized()
createButton.isHidden = true
retriveCurentForm()
}
if let firstName = UserDefaultsHelper.getString(for: .firstName), if let firstName = UserDefaultsHelper.getString(for: .firstName),
let lastName = UserDefaultsHelper.getString(for: .lstName), let lastName = UserDefaultsHelper.getString(for: .lstName),
let middleName = UserDefaultsHelper.getString(for: .middleName) { let middleName = UserDefaultsHelper.getString(for: .middleName) {
nameLabel.text = "\(firstName) \(lastName) \(middleName)" nameLabel.text = "\(firstName) \(lastName) \(middleName)"
} }
}
private func setUI() {
self.title = "CREATE_FORM".localized()
createButton.setTitle("CREATE".localized(), for: .normal) createButton.setTitle("CREATE".localized(), for: .normal)
outDateTimeTextLabel.text = "OUT_ADDRESS".localized() outDateTimeTextLabel.text = "OUT_ADDRESS".localized()
outAddressTextLabel.text = "OUT_DATETIME".localized() outAddressTextLabel.text = "OUT_DATETIME".localized()
...@@ -117,7 +100,7 @@ class FormCreateViewController: UIViewController { ...@@ -117,7 +100,7 @@ class FormCreateViewController: UIViewController {
|| outAddressTextFiled.text == "" || outAddressTextFiled.text == ""
|| destinationAddressTextField.text == "" || planneDateTimeTextField.text == "" { || destinationAddressTextField.text == "" || planneDateTimeTextField.text == "" {
let alertController = AlertControllerHelper.showAlert(title: nil, message: "Խնդում ենք լրացրեք բոլոր դաշտերը") let alertController = AlertControllerHelper.showAlert(title: nil, message: "Please fill in all fields".localized())
self.present(alertController, animated: true, completion: nil) self.present(alertController, animated: true, completion: nil)
}else { }else {
createForm() createForm()
...@@ -173,58 +156,4 @@ class FormCreateViewController: UIViewController { ...@@ -173,58 +156,4 @@ class FormCreateViewController: UIViewController {
} }
} }
} }
private func retriveCurentForm() {
activityIndicator.isHidden = false
activityIndicator.startAnimating()
let form = CurentFormRequestForm(deviceToken: UIDevice.current.identifierForVendor?.uuidString)
CurrentFormService.shered.retrive(data: form) { (responseData) in
switch responseData {
case .base(response: let baseResposne):
self.activityIndicator.stopAnimating()
CheckBaseHelper.checkBaseResponse(baseResposne, viewController: self)
case .success(let response):
self.activityIndicator.stopAnimating()
DispatchQueue.main.async {
self.setData(response: response.data )
}
case .isOffline:
self.activityIndicator.stopAnimating()
return
case .conflict:
self.activityIndicator.stopAnimating()
return
}
}
}
private func setData(response: FormResponse?) {
destinationAddressTextField.isUserInteractionEnabled = false
planneDateTimeTextField.isUserInteractionEnabled = false
destinationTypeTextField.isUserInteractionEnabled = false
destinationAddressTextField.isUserInteractionEnabled = false
outDateButtonAction.isUserInteractionEnabled = false
planneDateTimeButton.isUserInteractionEnabled = false
outAddressTextFiled.isUserInteractionEnabled = false
outDateTimeTextFiled.isUserInteractionEnabled = false
planneDateTimeTextField.isUserInteractionEnabled = false
outDateTimeTextFiled.text = response?.outDatetime
outAddressTextFiled.text = response?.outAddress
destinationAddressTextField.text = response?.visitingAddressAndName
planneDateTimeTextField.text = response?.plannedReturnDatetime
destinationTypeTextField.text = response?.visitingReason
curentDate.text = response?.createdAt
}
} }
...@@ -96,9 +96,8 @@ extension FormListViewController: UITableViewDelegate { ...@@ -96,9 +96,8 @@ extension FormListViewController: UITableViewDelegate {
private func openCreateFormView(index: Int) { private func openCreateFormView(index: Int) {
let controller = FormCreateViewController() let controller = SingleFormViewController()
controller.formViewType = .viewFromList controller.formData = dataSource[index]
controller.data = dataSource[index]
self.navigationController?.navigationBar.topItem?.title = " " self.navigationController?.navigationBar.topItem?.title = " "
self.navigationController?.pushViewController(controller, animated: true) self.navigationController?.pushViewController(controller, animated: true)
} }
......
//
// SingleFormViewController.swift
// App16
//
// Created by Grigor Aghabalyan on 3/29/20.
// Copyright © 2020 X-TECH. All rights reserved.
//
import UIKit
class SingleFormViewController: UIViewController {
// MARK: - IBOutlets
@IBOutlet weak var fistNameTextLabel: UILabel!
@IBOutlet weak var lastNameTextLabel: UILabel!
@IBOutlet weak var meddleNameTextLabel: UILabel!
@IBOutlet weak var outDateTimeTextLabel: UILabel!
@IBOutlet weak var outAddressTextLabel: UILabel!
@IBOutlet weak var destinationAddressTextLabel: UILabel!
@IBOutlet weak var planneDateTimeTextLabel: UILabel!
@IBOutlet weak var destinationTypeTextLabel: UILabel!
@IBOutlet weak var fistNameLabel: UILabel!
@IBOutlet weak var lastNameLabel: UILabel!
@IBOutlet weak var meddleNameLabel: UILabel!
@IBOutlet weak var outDateTimeLabel: UILabel!
@IBOutlet weak var outAddressLabel: UILabel!
@IBOutlet weak var destinationAddressLabel: UILabel!
@IBOutlet weak var planneDateTimeLabel: UILabel!
@IBOutlet weak var destinationTypeLabel: UILabel!
@IBOutlet weak var curentDateLabel: UILabel!
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
// MARK: - Variables
var formData: FormResponse?
// MARK: - LifeCycle
override func viewDidLoad() {
super.viewDidLoad()
setUI()
if let data = formData {
setData(response: data)
}else {
retriveCurentForm()
}
}
private func setUI() {
self.title = "FORM".localized()
fistNameLabel.text = "FIRST_NAME".localized()
lastNameLabel.text = "LAST_NAME".localized()
meddleNameLabel.text = "MEDDLE_NAME".localized()
outDateTimeTextLabel.text = "OUT_ADDRESS".localized()
outAddressTextLabel.text = "OUT_DATETIME".localized()
destinationAddressTextLabel.text = "Address of the place of visit/Title".localized()
planneDateTimeTextLabel.text = "Estimated Return Time".localized()
destinationTypeTextLabel.text = "Purpose of the visit".localized()
}
private func setData(response: FormResponse?) {
fistNameLabel.text = response?.firstName
lastNameLabel.text = response?.lastName
meddleNameLabel.text = response?.middleName
outDateTimeLabel.text = response?.outDatetime
outAddressLabel.text = response?.outAddress
destinationAddressLabel.text = response?.visitingAddressAndName
planneDateTimeLabel.text = response?.plannedReturnDatetime
destinationTypeLabel.text = response?.visitingReason
curentDateLabel.text = response?.createdAt
}
private func retriveCurentForm() {
activityIndicator.isHidden = false
activityIndicator.startAnimating()
let form = CurentFormRequestForm(deviceToken: UIDevice.current.identifierForVendor?.uuidString)
CurrentFormService.shered.retrive(data: form) { (responseData) in
switch responseData {
case .base(response: let baseResposne):
self.activityIndicator.stopAnimating()
CheckBaseHelper.checkBaseResponse(baseResposne, viewController: self)
case .success(let response):
self.activityIndicator.stopAnimating()
DispatchQueue.main.async {
self.setData(response: response.data )
}
case .isOffline:
self.activityIndicator.stopAnimating()
return
case .conflict:
self.activityIndicator.stopAnimating()
return
}
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SingleFormViewController" customModule="App16" customModuleProvider="target">
<connections>
<outlet property="activityIndicator" destination="2jZ-Ov-vfe" id="ubO-SH-RyJ"/>
<outlet property="curentDateLabel" destination="AMp-Uu-6Uz" id="Dd3-g9-rf3"/>
<outlet property="destinationAddressLabel" destination="dFY-Fg-5ey" id="jUu-Od-mQg"/>
<outlet property="destinationAddressTextLabel" destination="xZ8-3X-510" id="g0Q-zI-qJP"/>
<outlet property="destinationTypeLabel" destination="Fp6-KL-k7b" id="poJ-WU-caX"/>
<outlet property="destinationTypeTextLabel" destination="FRR-cy-C7x" id="2E6-Zj-SBR"/>
<outlet property="fistNameLabel" destination="WED-XV-flv" id="ocs-M2-RcO"/>
<outlet property="fistNameTextLabel" destination="tjf-Tm-PjB" id="gEv-jn-6dE"/>
<outlet property="lastNameLabel" destination="AXi-sL-sMZ" id="0DE-im-oD8"/>
<outlet property="lastNameTextLabel" destination="s7o-lD-hvK" id="N9T-6z-tJ1"/>
<outlet property="meddleNameLabel" destination="HRA-Qy-ZS6" id="pll-W3-3mO"/>
<outlet property="meddleNameTextLabel" destination="Rsy-cU-te6" id="AqH-yb-zRT"/>
<outlet property="outAddressLabel" destination="stN-Va-V7k" id="Ezq-lL-hWL"/>
<outlet property="outAddressTextLabel" destination="ZS1-fE-gbB" id="Ep2-Bh-vD3"/>
<outlet property="outDateTimeLabel" destination="z1V-vL-zDJ" id="ivA-6r-2Gy"/>
<outlet property="outDateTimeTextLabel" destination="ng0-bj-MQu" id="Ny1-Ib-S3g"/>
<outlet property="planneDateTimeLabel" destination="RrA-3F-rXL" id="VCj-Qg-GCj"/>
<outlet property="planneDateTimeTextLabel" destination="Bwe-Xv-qi4" id="9Yh-DK-5uD"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="1050"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="t3k-sV-bIn">
<rect key="frame" x="0.0" y="44" width="414" height="1006"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cex-RL-sEj">
<rect key="frame" x="0.0" y="0.0" width="414" height="839.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" alpha="0.41999998688697815" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="- -" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AMp-Uu-6Uz">
<rect key="frame" x="41" y="8" width="333" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sJU-zk-J59" customClass="IQPreviousNextView" customModule="IQKeyboardManagerSwift">
<rect key="frame" x="40" y="361.5" width="334" height="50"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ESw-Fm-9u1">
<rect key="frame" x="0.0" y="48" width="334" height="2"/>
<color key="backgroundColor" red="0.35294117650000001" green="0.35294117650000001" blue="0.35294117650000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="2" id="8VB-kZ-1Iw"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z1V-vL-zDJ">
<rect key="frame" x="25" y="15" width="284" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.96078431369999995" green="0.96078431369999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="EgO-hM-ZL4"/>
<constraint firstItem="ESw-Fm-9u1" firstAttribute="leading" secondItem="sJU-zk-J59" secondAttribute="leading" id="NPR-ne-yGV"/>
<constraint firstAttribute="trailing" secondItem="z1V-vL-zDJ" secondAttribute="trailing" constant="25" id="WsK-Qu-Uha"/>
<constraint firstItem="z1V-vL-zDJ" firstAttribute="leading" secondItem="sJU-zk-J59" secondAttribute="leading" constant="25" id="qAo-so-Fyv"/>
<constraint firstItem="ESw-Fm-9u1" firstAttribute="top" secondItem="z1V-vL-zDJ" secondAttribute="bottom" constant="12" id="rvm-PT-oLe"/>
<constraint firstItem="z1V-vL-zDJ" firstAttribute="top" secondItem="sJU-zk-J59" secondAttribute="top" constant="15" id="tWr-Wl-Npo"/>
<constraint firstAttribute="trailing" secondItem="ESw-Fm-9u1" secondAttribute="trailing" id="vMb-Nb-laM"/>
<constraint firstAttribute="bottom" secondItem="ESw-Fm-9u1" secondAttribute="bottom" id="yzc-3i-uko"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="4"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Ելքի ժամ" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ng0-bj-MQu">
<rect key="frame" x="62" y="335.5" width="312" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b7a-e2-fL4" customClass="IQPreviousNextView" customModule="IQKeyboardManagerSwift">
<rect key="frame" x="40" y="463.5" width="334" height="49.5"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bAa-4h-aH0">
<rect key="frame" x="0.0" y="47.5" width="334" height="2"/>
<color key="backgroundColor" red="0.35294117650000001" green="0.35294117650000001" blue="0.35294117650000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="2" id="YB6-pm-uE1"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="stN-Va-V7k">
<rect key="frame" x="25" y="15" width="284" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.96078431369999995" green="0.96078431369999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="stN-Va-V7k" firstAttribute="leading" secondItem="b7a-e2-fL4" secondAttribute="leading" constant="25" id="5n7-BG-lI6"/>
<constraint firstItem="bAa-4h-aH0" firstAttribute="top" secondItem="stN-Va-V7k" secondAttribute="bottom" constant="12" id="Z36-f2-BhA"/>
<constraint firstItem="stN-Va-V7k" firstAttribute="top" secondItem="b7a-e2-fL4" secondAttribute="top" constant="15" id="dfP-RE-qUf"/>
<constraint firstItem="bAa-4h-aH0" firstAttribute="leading" secondItem="b7a-e2-fL4" secondAttribute="leading" id="l71-6U-PYm"/>
<constraint firstAttribute="trailing" secondItem="bAa-4h-aH0" secondAttribute="trailing" id="nJs-LT-roc"/>
<constraint firstAttribute="bottom" secondItem="bAa-4h-aH0" secondAttribute="bottom" id="nQ5-ta-tO1"/>
<constraint firstAttribute="trailing" secondItem="stN-Va-V7k" secondAttribute="trailing" constant="25" id="oV7-ip-WJ2"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="4"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Ելքի հասցե" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZS1-fE-gbB">
<rect key="frame" x="62" y="436.5" width="312" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ozh-Hv-Byf" customClass="IQPreviousNextView" customModule="IQKeyboardManagerSwift">
<rect key="frame" x="40" y="664.5" width="334" height="49.5"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vZD-YV-9nz">
<rect key="frame" x="0.0" y="47.5" width="334" height="2"/>
<color key="backgroundColor" red="0.35294117650000001" green="0.35294117650000001" blue="0.35294117650000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="2" id="xpf-sf-KGO"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dFY-Fg-5ey">
<rect key="frame" x="25" y="15" width="284" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>