<style>
  .no-click {
    pointer-events: none;
}
</style>

<form action="" method="post" name="hm" id="hm-ClaForm" enctype="multipart/form-data" >

    <input type="hidden" name="pos" id="pos" value="[% $pos %]" />
    <input type="hidden" name="sort" id="sort" value="[% $sort %]" />
    <input type="hidden" name="sortorder" id="sortorder" value="[% $sortorder %]" />


  <!-- ###CONTENT### begin -->
  <div class="card panel-fcs-border shadow-sm">
    <div class="card-header">
      <span class="fcs-card-title h2">
        [% $user->gettext('Terminkalender') %]
      </span>
    </div>
    <div class="card-body">
      <div class="row">
        <div class="col-lg-2">
            [% if $event == "planing" %]

                <div class="card panel-info shadow-sm rounded">
                    <div class="card-header">
                        <span class="fcs-card-title h3">
                            [% $user->gettext('Aufgabenverwaltung') %]
                        </span>
                    </div>
                    <div class="card-body text-center">
                        <div class="form-group row mb-3">
                            <label class="col-lg-5 control-label">Tickets je </label>
                            <div class="col-lg-7">
                                <select class="form-control">
                                    <option>Supporter</option>
                                    <option>Gruppen</option>
                                    <option>Projekte</option>
                                </select>
                            </div>
                        </div>
<br/>
                        <div class="form-group row mb-3">
                            <label class="col-lg-5 control-label">Supporter</label>
                            <div class="col-lg-7">
                                <select class="form-control">
                                    <option>Alle</option>
                                    <option>Köpke, Jan</option>
                                </select>
                            </div>
                        </div>
<br/>
                        <div class="form-group row mb-3">
                            <label class="col-lg-5 control-label">Tickettypen</label>
                            <div class="col-lg-7">
                                <select class="form-control">
                                    <option>Alle</option>
                                    <option>Bugs</option>
                                </select>
                            </div>
                        </div>

                    </div>
                </div>

                [% else %]

          <div class="card panel-info shadow-sm rounded">
            <div class="card-body text-center">

                <a href="[% $action %]&amp;class=event&amp;date=[% $date %]" class="btn btn-outline-primary" >[% $user->gettext('Termin einrichten') %]</a>
                [% if $user->hasRight(61) %]
                    <a href="[% $action %]&amp;event=device&amp;class=event&amp;date=[% $date %]" class="btn btn-outline-danger">[% $user->gettext('Asset reservieren') %]</a>
                [% /if %]

            </div>
          </div>
          [% include file=$modulePath|cat:"/minical.tpl" %]
          <div class="card panel-info shadow-sm rounded">
            <div class="card-header">
              <span class="fcs-card-title">[%$user->gettext('Legend')%]</span>
            </div>
            <div class="card-body text-center">
              <div class="btn-group-vertical">
              <button class="btn btn-info no-click">[% $user->FullName %]</button>
              <button class="btn btn-outline-success no-click">[% $user->gettext("&Ouml;ffentliche") %]</button>
              <button class="btn btn-outline-danger no-click">[% $user->gettext("Ticketf&auml;lligkeit") %]</bittp>
              <button class="btn btn-warning no-click">[% $user->gettext("Zurückgestellt bis") %]</butt>
              <button class="btn no-click">[% $user->gettext("Geschlossen") %]</button>
              </div>
            </div>
          </div>
              [% /if %]
        </div>
        <div class="col-lg-10">
          <div class="card panel-info shadow-sm rounded">
            <div class="card-body">
              <div class="row">
                <div class="col-lg-6 text-left">
                  <div class="btn-group">
                    <a href="[% $action %]&amp;event=[% $event %]&amp;date=[% $smarty.now|date_format:"%Y%m%d" %]" class="btn btn-outline-secondary">[% $user->gettext('Heute') %]


                    </a>
                    <button class="btn btn-outline-secondary no-click">
                      [% if $event == "day" %][% $day.day %]. [% $day.monthname %] [% $day.year %][% /if %]
                     [% if $event == "nextfour" %][% $nextfour.day[0] %].[% if $nextfour.month[0] != $nextfour.month[3] %] [% $nextfour.monthname[0] %].[% /if %][% if $nextfour.year[0] != $nextfour.year[3] %] [% $nextfour.year[0] %][% /if %] - [% $nextfour.day[3] %]. [% $nextfour.monthname[3] %]. [% $nextfour.year[3] %][% /if %]
                     [% if $event == "week" %][% $week.day[0] %].[% if $week.month[0] != $week.month[6] %] [% $week.monthname[0] %].[% /if %][% if $week.year[0] != $week.year[6] %] [% $week.year[0] %][% /if %] - [% $week.day[6] %]. [% $week.monthname[6] %]. [% $week.year[6] %][% /if %]
                     [% if $event == "planing" %][% $week.day[0] %].[% if $week.month[0] != $week.month[6] %] [% $week.monthname[0] %].[% /if %][% if $week.year[0] != $week.year[6] %] [% $week.year[0] %][% /if %] - [% $week.day[13] %]. [% $week.monthname[13] %]. [% $week.year[13] %][% /if %]
                     [% if $event == "month" %][% $month.navigation.active.name %] [% $month.navigation.active.year %][% /if %]
                     [% if $event == "overview" %][% $overview_date %][% /if %]</button>
                  </div>

                  <div class="btn-group">
                                      <a href="[% $action %]&amp;event=[% $event %]&amp;date=[% $last %]" class="btn btn-outline-secondary"><span class="fa fa-chevron-left"></span></a>
                    <a href="[% $action %]&amp;event=[% $event %]&amp;date=[% $next %]" class="btn btn-outline-secondary" ><span class="fa fa-chevron-right"></span></a>
              </div>
                </div>
                <div class="col-lg-6 text-end">
                  <div class="btn-group">
                    <a href="[% $action %]&amp;event=overview&amp;date=[% $date %]" class="btn btn-outline-secondary">[% $user->gettext('Termin&uuml;bersicht') %]</a>
                    <a href="[% $action %]&amp;event=nextfour&amp;date=[% $date %]" class="btn btn-outline-secondary">[% $user->gettext('Die n&auml;chsten 4 Tage') %]</a>
                    <a href="[% $action %]&amp;event=month&amp;date=[% $date %]" class="btn btn-outline-secondary">[% $user->gettext('Monat') %]</a>
                    <a href="[% $action %]&amp;event=week&amp;date=[% $date %]" class="btn btn-outline-secondary">[% $user->gettext('Woche') %]</a>
                    <a href="[% $action %]&amp;event=day&amp;date=[% $date %]" class="btn btn-outline-secondary">[% $user->gettext('Tag') %]</a>

                    [%* <a href="[% $action %]&amp;event=planing&amp;date=[% $date %]" class="btn btn-outline-secondary">[% $user->gettext('Planung') %]</a> *%]

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

          <div class="card panel-info shadow-sm rounded">
            <div class="card-header">
              <span class="fcs-card-title h4">[%$user->gettext('Kalender')%]</span>
            </div>
            <div class="card-body">
               [% if $event == "day" %][% include file=$modulePath|cat:"/daycal.tpl" %][% /if %]
              [% if $event == "nextfour" %][% include file=$modulePath|cat:"/fourdayscal.tpl" %][% /if %]
              [% if $event == "week" %][% include file=$modulePath|cat:"/weekcal.tpl" %][% /if %]
              [% if $event == "month" %][% include file=$modulePath|cat:"/monthcal.tpl" %][% /if %]
              [% if $event == "overview" %][% include file=$modulePath|cat:"/overview.tpl" %][% /if %]
              [% if $event == "planing" %][% include file=$modulePath|cat:"/planingcal.tpl" %][% /if %]
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</form>

