@page "/main_page/gorevler"
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/froala_editor.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="css/AdminTodosPage.css">
    <title>Document</title>
</head>

<body>
    <select name="" id="" @onchange="ekip_uye_yukle">

        @foreach (var item in gelen_ekipler_list)
        {
            @if(item.ekip_ID==1){
            <option disabled selected value="@item.ekip_ID">@item.ekip_ID @item.ekip_Adi</option>
            }else{
                <option value="@item.ekip_ID">@item.ekip_ID @item.ekip_Adi</option>
            }
        }
    </select>

    <select name="" id="ekip_uyeleri_select" disabled @onchange="ekip_uye_data">
    </select>
    BAŞLANGIÇ TARİHİ <input id="start_date" type="datetime-local" @onchange="(e)=>tarih_getir(1,e)" disabled>
    BİTİŞ TARİHİ <input id="finish_date" type="datetime-local" @onchange="(e)=>tarih_getir(2,e)" disabled>


    <div >
        <textarea @ref="edit"  id="edit" ></textarea>
    </div>
    <br />
    <button class="btn_kullanici btn-primary" @onclick="getEdit" id="kaydet_buton_todos" disabled>KAYDET</button>
    <br />
    <br />
    <br>
    <div id="sutun_isimleri"> 
        <div style="margin-left: 5%;margin-top: -2.5%; font-size: 20px; font-weight: bold; position: absolute;">Gorev ID</div>
        <div style="margin-left: 22%;margin-top: -2.5%; font-size: 20px; font-weight: bold; position: absolute;">Takım ID</div>
        <div style="margin-left: 34.5%;margin-top: -2.5%; font-size: 20px; font-weight: bold; position: absolute;">Gorev Başlama Tarihi</div>
        <div style="margin-left: 51%;margin-top: -2.5%; font-size: 20px; font-weight: bold; position: absolute;">Görev Bitiş Tarihi</div>
        <div style="margin-left: 69%;margin-top: -2.5%; font-size: 20px; font-weight: bold; position: absolute;">Görev İçerik</div>
        <div style="margin-left: 84.5%;margin-top: -2.5%; font-size: 20px; font-weight: bold; position: absolute;">Görev Gönderen ID</div>
    </div>
    <div id="gelen_gorevler">
        @code{
            public MarkupString result ;
        
        }
        @foreach (var item in todo_list_gorev)
        {
            <div class="todos_div"> @item.task_id</div>
            <div class="todos_div">@item.task_team_id</div>
            <div class="todos_div">@item.task_start</div>
            <div class="todos_div">@item.task_finish</div>
            result=new MarkupString(@item.task_content);
            <div class="todos_div">@result</div>
            <div class="todos_div">@item.task_sender_id</div>
        }
    </div>
    <br>
    <br>
    <br>
    <div id="gelen_gorevler_2">
    <div id="sutun_isimleri2"> 
        <div style="margin-left: 5%;margin-top: -1.5%; font-size: 30px; font-weight: bold; position: relative;">Gorev Atanan ID</div>
        <div style="margin-left: 50%;margin-top: -4.5%; font-size: 30px; font-weight: bold; position: relative;">Gore ID</div>
    </div>
    @foreach (var item in todo_list_gorev2)
        {
            <div class="todos_div2"> @item.task_assigment_id</div>
            <div class="todos_div2">@item.task_id</div>
        }
    </div>
</body>

</html>