<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description"
          content="Cuba admin is super flexible, powerful, clean &amp; modern responsive bootstrap 5 admin template with unlimited possibilities.">
    <meta name="keywords"
          content="admin template, Cuba admin template, dashboard template, flat admin template, responsive admin template, web app">
    <meta name="author" content="pixelstrap">
    <link rel="icon" href="/RTL/superAdmin/images/favicon.png" type="image/x-icon">
    <link rel="shortcut icon" href="/RTL/superAdmin/images/favicon.png" type="image/x-icon">
    <title>آنسه تیم</title>
    <!-- Google font-->
    <link href="https://fonts.googleapis.com/css?family=Rubik:400,400i,500,500i,700,700i&amp;display=swap"
          rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900&amp;display=swap"
          rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/font-awesome.css">
    <!-- ico-font-->
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/vendors/icofont.css">
    <!-- Themify icon-->
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/vendors/themify.css">
    <!-- Flag icon-->
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/vendors/flag-icon.css">
    <!-- Feather icon-->
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/vendors/feather-icon.css">
    <!-- Plugins css start-->
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/vendors/scrollbar.css">
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/vendors/prism.css">
    <!-- Plugins css Ends-->
    <!-- Bootstrap css-->
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/vendors/bootstrap.css">
    <!-- App css-->
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/style.css">
    <link id="color" rel="stylesheet" href="/RTL/superAdmin/css/color-1.css" media="screen">
    <!-- Responsive css-->
    <link rel="stylesheet" type="text/css" href="/RTL/superAdmin/css/responsive.css">
</head>
<body class="rtl">
<!-- tap on top starts-->
<div class="tap-top"><i data-feather="chevrons-up"></i></div>
<!-- tap on tap ends-->
<!-- page-wrapper Start-->
<div class="page-wrapper compact-wrapper" id="pageWrapper">
    <!-- Page Header Start-->

    <%- include('../../../partials/header') %>

    <!-- Page Sidebar Ends-->
    <div class="page-body">
        <div class="container-fluid">
            <div class="page-title">
                <div class="row">
                    <div class="col-6">
                        <h3>مدیریت دسته بندی دپارتمان ها


                        </h3>
                    </div>
                    <div class="col-12">
                        <ol class="breadcrumb" style="-webkit-box-pack: start!important;">
                            <li class="breadcrumb-item"><a href="/<%= lan.ShortName %>/dashboard"><i
                                            data-feather="home"></i></a></li>
                            <li class="breadcrumb-item">دپارتمان ها</li>
                            <li class="breadcrumb-item"> دسته بندی دپارتمان ها</li>
                            <li class="breadcrumb-item"> محتوای چندزبانه دسته بندی دپارتمان ها</li>
                            <li class="breadcrumb-item active">مدیریت محتوای چندزبانه دسته بندی دپارتمان ها</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- Container-fluid starts-->
        <!-- Container-fluid starts-->
        <div class="container-fluid">
            <div class="row">
                <div class="col-sm-12 col-xl-12">
                    <div class="row">
                        <div class="col-sm-10" style="margin:0 auto">
                            <div class="card">
                                <div class="card-header">
                                    <h5>ثبت محتوای چند زبانه برای دسته‌بندی های دپارتمان در سامانه آنسه تیم</h5><span>برای مشاهده لیست دپارتمان ها میتوانید از  <a
                                                href="/<%= lan.ShortName %>/departman/list">اینجا </a> کلیک کنید</span>
                                </div>
                                <div class="card-body">
                                    <form class="form-space theme-form row"
                                          action="/<%= lan.ShortName %>/departmanTypeDocument/edit/<%= departmanType._id %>/<%= departmanTypeDocument._id %>"
                                          method="post">

                                        <div class="col-sm-6">
                                            <label class="form-label">زبان</label>
                                            <select class="form-control" name="Language" id="Language" type="text"
                                                    placeholder="زبان" required>
                                                <% for(var i = 0; i < languages.length; i++) { %>
                                                    <% if(languages[i]._id.equals(departmanTypeDocument.Language._id)) { %>
                                                        <option value="<%= languages[i]._id %>" selected><%= languages[i].Name %></option>
                                                    <% } else { %>
                                                        <option value="<%= languages[i]._id %>"><%= languages[i].Name %></option>
                                                    <% } %>
                                                <% } %>
                                            </select>
                                        </div>

                                        <div class="col-sm-6">
                                            <label class="form-label">نام دسته‌بندی</label>
                                            <input class="form-control" name="Name" id="Name" type="text"
                                                   placeholder="نام دسته بندی" required
                                                   value="<%= departmanTypeDocument.Name %>">
                                        </div>

                                        <div class="col-sm-6">
                                            <label class="form-label">MetaTitle</label>
                                            <input class="form-control" name="MetaTitle" id="MetaTitle" type="text"
                                                   placeholder="MetaTitle" required
                                                   value="<%= departmanTypeDocument.MetaTitle %>">
                                        </div>

                                        <div class="col-sm-6">
                                            <label class="form-label">کلمات کلیدی</label>
                                            <input class="form-control" name="Keyword" id="Keyword" type="text"
                                                   placeholder="کلمات کلیدی" required
                                                   value="<%= departmanTypeDocument.Keyword %>">
                                        </div>

                                        <div class="col-sm-12">
                                            <label class="form-label">MetaDescription</label>
                                            <textarea class="form-control" name="MetaDescription" id="MetaDescription"
                                                      type="text"
                                                      placeholder="MetaDescription" required
                                                      ><%= departmanTypeDocument.MetaDescription %></textarea>
                                        </div>

                                        <div class="col-sm-12">
                                            <label class="form-label">توضیحات کوتاه</label>
                                            <textarea class="form-control" name="SmallCaption" id="SmallCaption"
                                                      type="text"
                                                      placeholder="توضیحات کوتاه" required
                                                      ><%= departmanTypeDocument.SmallCaption %></textarea>
                                        </div>


                                        <div class="col-sm-12">
                                            <label class="form-label">توضیحات</label>
                                            <textarea class="form-control" name="Caption" id="Caption" type="text"
                                                      placeholder="توضیحات" required><%= departmanTypeDocument.Caption %></textarea>
                                        </div>


                                        <div class="mb-3">
                                            <label class="form-label" for="content">متن دسته بندی دپارتمان</label>
                                            <textarea name="content" id="editor" required>
                                               <%- departmanTypeDocument.content %>
                                           </textarea>
                                        </div>


                                        <div class="col-sm-3 m-4">
                                            <a href="#" class="btn btn-info" id="ChooseFiles" data-bs-toggle="modal" data-bs-target="#printModal" onclick="albumPopup(lan='<%= lan.ShortName %>', btn='ChooseFiles', albumFiles='AlbumFiles', multi=true, exist=true, model='departmanTypeDocument', modelId='<%= departmanTypeDocument._id %>', modelFilesName='Files')">انتخاب تصاویر</a>
                                        </div>
                                        <div id="AlbumFiles">

                                        </div>

                                        <div class="card-footer text-end">
                                            <button class="btn btn-primary" type="submit">ثبت دسته بندی</button>
                                            <a href="/departmanType/admin/list" class="btn btn-secondary">بازگشت</a>
                                            <a href="/departmanType/admin/list" class="btn btn-success">مشاهده دسته‌بندی
                                                دپارتمان ها</a>
                                        </div>

                                    </form>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>


            </div>

        </div>
        <!-- Container-fluid Ends-->

        <!-- Container-fluid Ends-->
    </div>
    <!-- popup -->
    <%- include("../../../partials/popup") %>
    <!-- popup-->
    <!-- footer start-->
    <%- include("../../../partials/footer") %>

</div>

<!-- latest jquery-->
<script src="/RTL/superAdmin/js/jquery-3.5.1.min.js"></script>
<!-- Bootstrap js-->
<script src="/RTL/superAdmin/js/bootstrap/bootstrap.bundle.min.js"></script>
<!-- feather icon js-->
<script src="/RTL/superAdmin/js/icons/feather-icon/feather.min.js"></script>
<script src="/RTL/superAdmin/js/icons/feather-icon/feather-icon.js"></script>
<!-- scrollbar js-->
<script src="/RTL/superAdmin/js/scrollbar/simplebar.js"></script>
<script src="/RTL/superAdmin/js/scrollbar/custom.js"></script>
<!-- Sidebar jquery-->
<script src="/RTL/superAdmin/js/config.js"></script>
<!-- Plugins JS start-->
<script src="/RTL/superAdmin/js/sidebar-menu.js"></script>
<script src="/RTL/superAdmin/js/prism/prism.min.js"></script>
<script src="/RTL/superAdmin/js/clipboard/clipboard.min.js"></script>
<script src="/RTL/superAdmin/js/custom-card/custom-card.js"></script>
<script src="/RTL/superAdmin/js/tooltip-init.js"></script>
<!-- Plugins JS Ends-->
<!-- Theme js-->
<script src="/RTL/superAdmin/js/script.js"></script>
<!-- login js-->
<script src="/RTL/superAdmin/js/tiny/tinymce.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.min.js"></script>
<!-- Plugin used-->
<script src="/RTL/superAdmin/js/anse/albumPopup.js"></script>

<script>
    tinymce.init({ selector: '#editor',
        plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
        toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table | align lineheight | numlist bullist indent outdent | emoticons charmap | removeformat',
    });
</script>

<script>
    window.onload = function () {
        getModelFiles(lan='<%= lan.ShortName %>', albumFiles='AlbumFiles', model='departmanTypeDocument', modelId='<%= departmanTypeDocument._id %>', modelFilesName='Files')
    }
</script>

</body>
</html>
